|
|
|
@ -1462,9 +1462,9 @@ namespace ICSharpCode.NRefactory.CSharp |
|
|
|
var result = new ExpressionStatement (); |
|
|
|
var result = new ExpressionStatement (); |
|
|
|
if (statementExpression.Expression == null) |
|
|
|
if (statementExpression.Expression == null) |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
object expr = statementExpression.Expression.Accept (this); |
|
|
|
var expr = statementExpression.Expression.Accept (this) as Expression; |
|
|
|
if (expr != null) |
|
|
|
if (expr != null) |
|
|
|
result.AddChild ((Expression)expr, ExpressionStatement.Roles.Expression); |
|
|
|
result.AddChild (expr, ExpressionStatement.Roles.Expression); |
|
|
|
var location = LocationsBag.GetLocations (statementExpression); |
|
|
|
var location = LocationsBag.GetLocations (statementExpression); |
|
|
|
if (location != null) |
|
|
|
if (location != null) |
|
|
|
result.AddChild (new CSharpTokenNode (Convert (location[0]), 1), ExpressionStatement.Roles.Semicolon); |
|
|
|
result.AddChild (new CSharpTokenNode (Convert (location[0]), 1), ExpressionStatement.Roles.Semicolon); |
|
|
|
|