mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
C#: Extract out/ref information in this(...) constructor calls
This commit is contained in:
@@ -113,11 +113,7 @@ namespace Semmle.Extraction.CSharp.Entities
|
||||
|
||||
trapFile.expr_call(init, target);
|
||||
|
||||
var child = 0;
|
||||
foreach (var arg in initializer.ArgumentList.Arguments)
|
||||
{
|
||||
Expression.Create(Context, arg.Expression, init, child++);
|
||||
}
|
||||
init.PopulateArguments(trapFile, initializer.ArgumentList, 0);
|
||||
}
|
||||
|
||||
private ConstructorDeclarationSyntax? Syntax
|
||||
|
||||
@@ -102,7 +102,7 @@ csharp73.cs:
|
||||
# 46| 1: [IntLiteral] 5
|
||||
# 49| 5: [InstanceConstructor] ExpressionVariables
|
||||
# 49| 3: [ConstructorInitializer] call to constructor ExpressionVariables
|
||||
# 49| 0: [LocalVariableDeclExpr] Int32 x
|
||||
# 49| 0: [LocalVariableAccess,LocalVariableDeclExpr] Int32 x
|
||||
# 50| 4: [BlockStmt] {...}
|
||||
# 51| 0: [ExprStmt] ...;
|
||||
# 51| 0: [MethodCall] call to method WriteLine
|
||||
|
||||
Reference in New Issue
Block a user