Files
codeql/csharp/ql/test/library-tests/csharp7.3/PrintAst.expected
2020-10-20 08:23:57 +02:00

114 lines
5.3 KiB
Plaintext

csharp73.cs:
# 5| [Class] StackAllocs
# 7| 5: [Method] Fn
# 7| -1: [TypeMention] Void
# 8| 4: [BlockStmt] {...}
# 9| 0: [LocalVariableDeclStmt] ... ...;
# 9| 0: [LocalVariableDeclAndInitExpr] Char* arr1 = ...
# 9| -1: [TypeMention] char*
# 9| 0: [LocalVariableAccess] access to local variable arr1
# 9| 1: [Stackalloc] array creation of type Char*
# 9| -2: [TypeMention] char*
# 9| 1: [TypeMention] char
# 9| -1: [ArrayInitializer] { ..., ... }
# 9| 0: [CharLiteral] x
# 9| 1: [CharLiteral] y
# 10| 1: [LocalVariableDeclStmt] ... ...;
# 10| 0: [LocalVariableDeclAndInitExpr] Char* arr2 = ...
# 10| -1: [TypeMention] char*
# 10| 0: [LocalVariableAccess] access to local variable arr2
# 10| 1: [Stackalloc] array creation of type Char*
# 10| -2: [TypeMention] char*
# 10| 1: [TypeMention] char
# 10| -1: [ArrayInitializer] { ..., ... }
# 10| 0: [CharLiteral] x
# 10| 0: [IntLiteral] 1
# 11| 2: [LocalVariableDeclStmt] ... ...;
# 11| 0: [LocalVariableDeclAndInitExpr] Char[] arr3 = ...
# 11| -1: [TypeMention] Char[]
# 11| 0: [LocalVariableAccess] access to local variable arr3
# 11| 1: [ArrayCreation] array creation of type Char[]
# 11| -2: [TypeMention] Char[]
# 11| 1: [TypeMention] char
# 11| -1: [ArrayInitializer] { ..., ... }
# 11| 0: [CharLiteral] x
# 12| 3: [LocalVariableDeclStmt] ... ...;
# 12| 0: [LocalVariableDeclAndInitExpr] Char* arr4 = ...
# 12| -1: [TypeMention] char*
# 12| 0: [LocalVariableAccess] access to local variable arr4
# 12| 1: [Stackalloc] array creation of type Char*
# 12| -1: [TypeMention] char*
# 12| 1: [TypeMention] char
# 12| 0: [IntLiteral] 10
# 13| 4: [LocalVariableDeclStmt] ... ...;
# 13| 0: [LocalVariableDeclAndInitExpr] Char[] arr5 = ...
# 13| -1: [TypeMention] Char[]
# 13| 0: [LocalVariableAccess] access to local variable arr5
# 13| 1: [ArrayCreation] array creation of type Char[]
# 13| -1: [TypeMention] Char[]
# 13| 1: [TypeMention] char
# 13| 0: [IntLiteral] 10
# 14| 5: [LocalVariableDeclStmt] ... ...;
# 14| 0: [LocalVariableDeclAndInitExpr] Int32* arr6 = ...
# 14| -1: [TypeMention] int*
# 14| 0: [LocalVariableAccess] access to local variable arr6
# 14| 1: [Stackalloc] array creation of type Int32*
# 14| -1: [ArrayInitializer] { ..., ... }
# 14| 0: [IntLiteral] 1
# 14| 1: [IntLiteral] 2
# 14| 2: [IntLiteral] 3
# 18| [Class] PinnedReference
# 20| 5: [Method] F
# 20| -1: [TypeMention] Void
# 21| 4: [BlockStmt] {...}
# 22| 0: [LocalVariableDeclStmt] ... ...;
# 22| 0: [LocalVariableDeclAndInitExpr] Span<Byte> buffer = ...
# 22| -1: [TypeMention] Span<Byte>
# 22| 1: [TypeMention] byte
# 22| 0: [LocalVariableAccess] access to local variable buffer
# 22| 1: [Stackalloc] array creation of type Span<Byte>
# 22| -1: [TypeMention] Span<Byte>
# 22| 1: [TypeMention] byte
# 22| 0: [IntLiteral] 10
# 24| 1: [LocalVariableDeclStmt] ... ...;
# 24| 0: [LocalVariableDeclAndInitExpr] Span<Int32> t = ...
# 24| -1: [TypeMention] Span<Int32>
# 24| 1: [TypeMention] int
# 24| 0: [LocalVariableAccess] access to local variable t
# 24| 1: [OperatorCall] call to operator implicit conversion
# 24| 0: [ArrayCreation] array creation of type Int32[]
# 24| -1: [TypeMention] Int32[]
# 24| 1: [TypeMention] int
# 24| 0: [IntLiteral] 10
# 27| 2: [BlockStmt] {...}
# 32| [Class] UnmanagedConstraint<>
#-----| 1: (Type parameters)
# 32| 0: [TypeParameter] T
# 36| [Class] EnumConstraint<>
#-----| 1: (Type parameters)
# 36| 0: [TypeParameter] T
# 40| [Class] DelegateConstraint<>
#-----| 1: (Type parameters)
# 40| 0: [TypeParameter] T
# 44| [Class] ExpressionVariables
# 46| 4: [InstanceConstructor] ExpressionVariables
#-----| 2: (Parameters)
# 46| 0: [Parameter] x
# 46| -1: [TypeMention] int
# 47| 4: [BlockStmt] {...}
# 48| 0: [ExprStmt] ...;
# 48| 0: [AssignExpr] ... = ...
# 48| 0: [ParameterAccess] access to parameter x
# 48| 1: [IntLiteral] 5
# 51| 5: [InstanceConstructor] ExpressionVariables
# 51| 3: [ConstructorInitializer] call to constructor ExpressionVariables
# 51| 0: [LocalVariableDeclExpr] Int32 x
# 52| 4: [BlockStmt] {...}
# 53| 0: [ExprStmt] ...;
# 53| 0: [MethodCall] call to method WriteLine
# 53| -1: [TypeAccess] access to type Console
# 53| 0: [TypeMention] Console
# 53| 0: [InterpolatedStringExpr] $"..."
# 53| 0: [StringLiteral] "x is "
# 53| 1: [LocalVariableAccess] access to local variable x