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)
113113
114114 trapFile . expr_call ( init , target ) ;
115115
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 ) ;
121117 }
122118
123119 private ConstructorDeclarationSyntax ? Syntax
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ csharp73.cs:
102102# 46| 1: [IntLiteral] 5
103103# 49| 5: [InstanceConstructor] ExpressionVariables
104104# 49| 3: [ConstructorInitializer] call to constructor ExpressionVariables
105- # 49| 0: [LocalVariableDeclExpr] Int32 x
105+ # 49| 0: [LocalVariableAccess, LocalVariableDeclExpr] Int32 x
106106# 50| 4: [BlockStmt] {...}
107107# 51| 0: [ExprStmt] ...;
108108# 51| 0: [MethodCall] call to method WriteLine
You can’t perform that action at this time.
0 commit comments