Skip to content

Commit c02ccc3

Browse files
committed
fb
1 parent edb42b9 commit c02ccc3

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

codegen/generator/src/Visitors/PaginationVisitor.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -152,17 +152,7 @@ nullConditional.Inner is VariableExpression varExpr2 &&
152152
}
153153
}
154154
// Create a new ExpressionStatement with the same children as the original, but with the new parameters.
155-
var newNewInstanceExpression = new NewInstanceExpression(
156-
newInstance.Type,
157-
newParameters);
158-
159-
var newKeywordExpression = new KeywordExpression(
160-
keyword.Keyword,
161-
newNewInstanceExpression);
162-
163-
var newExpressionStatement = new ExpressionStatement(newKeywordExpression);
164-
165-
return newExpressionStatement;
155+
return Snippet.Return(Snippet.New.Instance(newInstance.Type!, newParameters));
166156
}
167157
}
168158
return statement;

0 commit comments

Comments
 (0)