We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edb42b9 commit c02ccc3Copy full SHA for c02ccc3
codegen/generator/src/Visitors/PaginationVisitor.cs
@@ -152,17 +152,7 @@ nullConditional.Inner is VariableExpression varExpr2 &&
152
}
153
154
// 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;
+ return Snippet.Return(Snippet.New.Instance(newInstance.Type!, newParameters));
166
167
168
return statement;
0 commit comments