Files
codeql/csharp/ql/test/library-tests/csharp7.2/PrintAst.expected
2025-12-02 13:49:16 +01:00

46 lines
1.6 KiB
Plaintext

csharp72.cs:
# 3| [Class] InModifiers
# 5| 6: [Struct] S
# 9| 7: [Method] F
# 9| -1: [TypeMention] Void
#-----| 2: (Parameters)
# 9| 0: [Parameter] s
# 9| -1: [TypeMention] S
# 10| 4: [BlockStmt] {...}
# 13| 8: [Method] CallF
# 13| -1: [TypeMention] Void
# 14| 4: [BlockStmt] {...}
# 15| 0: [LocalVariableDeclStmt] ... ...;
# 15| 0: [LocalVariableDeclAndInitExpr] S s = ...
# 15| -1: [TypeMention] S
# 15| 0: [LocalVariableAccess] access to local variable s
# 15| 1: [ObjectCreation] object creation of type S
# 15| 0: [TypeMention] S
# 16| 1: [ExprStmt] ...;
# 16| 0: [MethodCall] call to method F
# 16| 0: [LocalVariableAccess] access to local variable s
# 20| [Class] RefReadonlyReturns
# 22| 6: [Field] s
# 22| -1: [TypeMention] int
# 24| 7: [Method] F
# 24| -1: [TypeMention] int
# 25| 4: [BlockStmt] {...}
# 26| 0: [ReturnStmt] return ...;
# 26| 0: [RefExpr] ref ...
# 26| 0: [FieldAccess] access to field s
# 29| 8: [DelegateType] Del
# 32| [Struct] ReadonlyStruct
# 36| [RefStruct] RefStruct
# 40| [RefStruct] ReadonlyRefStruct
# 44| [Class] NumericLiterals
# 46| 6: [Field] binaryValue
# 46| -1: [TypeMention] int
# 46| 1: [IntLiteral] 85
# 49| [Class] PrivateProtected
# 51| 6: [Field] X
# 51| -1: [TypeMention] int
# 51| 1: [IntLiteral] 1
# 53| 7: [Method] F
# 53| -1: [TypeMention] Void
# 53| 4: [BlockStmt] {...}