File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
ql/test/library-tests/csharp7.3 Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -113,11 +113,7 @@ protected override void ExtractInitializers(TextWriter trapFile)
113
113
114
114
trapFile . expr_call ( init , target ) ;
115
115
116
- var child = 0 ;
117
- foreach ( var arg in initializer . ArgumentList . Arguments )
118
- {
119
- Expression . Create ( Context , arg . Expression , init , child ++ ) ;
120
- }
116
+ init . PopulateArguments ( trapFile , initializer . ArgumentList , 0 ) ;
121
117
}
122
118
123
119
private ConstructorDeclarationSyntax ? Syntax
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ csharp73.cs:
102
102
# 46| 1: [IntLiteral] 5
103
103
# 49| 5: [InstanceConstructor] ExpressionVariables
104
104
# 49| 3: [ConstructorInitializer] call to constructor ExpressionVariables
105
- # 49| 0: [LocalVariableDeclExpr] Int32 x
105
+ # 49| 0: [LocalVariableAccess, LocalVariableDeclExpr] Int32 x
106
106
# 50| 4: [BlockStmt] {...}
107
107
# 51| 0: [ExprStmt] ...;
108
108
# 51| 0: [MethodCall] call to method WriteLine
You can’t perform that action at this time.
0 commit comments