Files
codeql/csharp/ql/test/library-tests/partial/PrintAst.expected
2026-02-24 14:38:59 +01:00

128 lines
4.8 KiB
Plaintext

Partial.cs:
# 3| [Class] TwoPartClass
# 9| 5: [Method] PartialMethodWithoutBody1
# 9| -1: [TypeMention] Void
# 10| 6: [Method] Method2
# 10| -1: [TypeMention] Void
# 10| 4: [BlockStmt] {...}
# 22| 7: [InstanceConstructor] TwoPartClass
#-----| 2: (Parameters)
# 22| 0: [Parameter] obj
# 22| -1: [TypeMention] object
# 22| 4: [BlockStmt] {...}
# 23| 8: [Method] PartialMethodWithBody1
# 23| -1: [TypeMention] Void
# 23| 4: [BlockStmt] {...}
# 24| 9: [Method] PartialMethodWithBody2
# 24| -1: [TypeMention] object
#-----| 2: (Parameters)
# 24| 0: [Parameter] obj
# 24| -1: [TypeMention] object
# 25| 4: [BlockStmt] {...}
# 26| 0: [ReturnStmt] return ...;
# 26| 0: [ParameterAccess] access to parameter obj
# 28| 10: [Method] Method3
# 28| -1: [TypeMention] Void
# 28| 4: [BlockStmt] {...}
# 29| 11: [Field] _backingField
# 29| -1: [TypeMention] object
# 31| 12: [Property] PartialProperty1
# 31| -1: [TypeMention] object
# 33| 3: [Getter] get_PartialProperty1
# 33| 4: [BlockStmt] {...}
# 33| 0: [ReturnStmt] return ...;
# 33| 0: [FieldAccess] access to field _backingField
# 34| 4: [Setter] set_PartialProperty1
#-----| 2: (Parameters)
# 34| 0: [Parameter] value
# 34| 4: [BlockStmt] {...}
# 34| 0: [ExprStmt] ...;
# 34| 0: [AssignExpr] ... = ...
# 34| 0: [FieldAccess] access to field _backingField
# 34| 1: [ParameterAccess] access to parameter value
# 36| 13: [Field] _backingArray
# 36| -1: [TypeMention] Object[]
# 36| 1: [TypeMention] object
# 38| 14: [Indexer] Item
# 38| -1: [TypeMention] object
#-----| 1: (Parameters)
# 38| 0: [Parameter] index
# 38| -1: [TypeMention] int
# 40| 3: [Getter] get_Item
#-----| 2: (Parameters)
# 38| 0: [Parameter] index
# 40| 4: [BlockStmt] {...}
# 40| 0: [ReturnStmt] return ...;
# 40| 0: [ArrayAccess] access to array element
# 40| -1: [FieldAccess] access to field _backingArray
# 40| 0: [ParameterAccess] access to parameter index
# 41| 4: [Setter] set_Item
#-----| 2: (Parameters)
# 38| 0: [Parameter] index
# 41| 1: [Parameter] value
# 41| 4: [BlockStmt] {...}
# 41| 0: [ExprStmt] ...;
# 41| 0: [AssignExpr] ... = ...
# 41| 0: [ArrayAccess] access to array element
# 41| -1: [FieldAccess] access to field _backingArray
# 41| 0: [ParameterAccess] access to parameter index
# 41| 1: [ParameterAccess] access to parameter value
# 45| 15: [Event] PartialEvent1
# 45| 3: [AddEventAccessor] add_PartialEvent1
#-----| 2: (Parameters)
# 45| 0: [Parameter] value
# 45| 4: [BlockStmt] {...}
# 45| 4: [RemoveEventAccessor] remove_PartialEvent1
#-----| 2: (Parameters)
# 45| 0: [Parameter] value
# 45| 4: [BlockStmt] {...}
# 48| [Class] OnePartPartialClass
# 50| 6: [Method] PartialMethodWithoutBody2
# 50| -1: [TypeMention] Void
# 51| 7: [Method] Method4
# 51| -1: [TypeMention] Void
# 51| 4: [BlockStmt] {...}
# 54| [Class] NonPartialClass
# 56| 5: [InstanceConstructor] NonPartialClass
#-----| 2: (Parameters)
# 56| 0: [Parameter] obj
# 56| -1: [TypeMention] object
# 56| 4: [BlockStmt] {...}
# 57| 6: [Method] Method5
# 57| -1: [TypeMention] Void
# 57| 4: [BlockStmt] {...}
# 58| 7: [Property] Property
# 58| -1: [TypeMention] object
# 58| 3: [Getter] get_Property
# 58| 4: [Setter] set_Property
#-----| 2: (Parameters)
# 58| 0: [Parameter] value
# 59| 8: [Indexer] Item
# 59| -1: [TypeMention] object
#-----| 1: (Parameters)
# 59| 0: [Parameter] index
# 59| -1: [TypeMention] int
# 61| 3: [Getter] get_Item
#-----| 2: (Parameters)
# 59| 0: [Parameter] index
# 61| 4: [BlockStmt] {...}
# 61| 0: [ReturnStmt] return ...;
# 61| 0: [NullLiteral] null
# 62| 4: [Setter] set_Item
#-----| 2: (Parameters)
# 59| 0: [Parameter] index
# 62| 1: [Parameter] value
# 62| 4: [BlockStmt] {...}
# 64| 9: [Event] Event
# 64| -1: [TypeMention] EventHandler
# 64| 3: [AddEventAccessor] add_Event
#-----| 2: (Parameters)
# 64| 0: [Parameter] value
# 64| 4: [RemoveEventAccessor] remove_Event
#-----| 2: (Parameters)
# 64| 0: [Parameter] value
PartialMultipleFiles1.cs:
# 1| [Class] PartialMultipleFiles
PartialMultipleFiles2.cs:
# 1| [Class] PartialMultipleFiles