Enum CodeElementType
Element types for code AST elements.
public enum CodeElementType- Extension Methods
Fields
- Array = 43
- Array instantiation (declaration). 
- AsOperator = 46
- asoperator expression.
- AssignmentExpression = 41
- Assignment expression. 
- AssignmentStatement = 28
- Assignment statement. 
- Attribute = 6
- Custom attribute. 
- AwaitExpression = 50
- Await expression. 
- AwaitStatement = 29
- Await statement. 
- BinaryOperation = 35
- Binary operation. 
- CallExpression = 48
- Method call expression. 
- CallStatement = 27
- Method call statement. 
- Cast = 45
- Type cast expression. 
- Class = 8
- Class declaration. 
- ClassGroup = 16
- Group of classes 
- Comment = 1
- Commentary node. 
- Constant = 32
- Constant value/literal (including - null).
- Constructor = 10
- Instance constructor declaration. 
- ConstructorGroup = 18
- Group of construcrtors. 
- Default = 42
- Default value expression. 
- EmptyLine = 4
- Represents empty line (used for formatting puroses only). 
- ExternalPropertyOrField = 52
- External property or field declaration. 
- Field = 13
- Field declaration. 
- FieldGroup = 20
- Group of fields. 
- File = 0
- Element, corresponding to single code unit (file). 
- Identifier = 21
- Identifier (name of code element). 
- Import = 3
- Import (using) statement. 
- Index = 44
- Indexed access. 
- Lambda = 31
- Lambda function. 
- MemberAccess = 37
- Type member access. 
- Method = 12
- Method declaration. 
- MethodGroup = 17
- Group of methods. 
- NameOf = 39
- Nameof expression. 
- Namespace = 5
- Namespace declaration. 
- New = 40
- New object creation expression. 
- Parameter = 23
- Method of method (including all types of methods like constructors and lamdas). 
- Pragma = 2
- Compiler pragma. 
- PragmaGroup = 15
- Group of pragma directives. 
- Property = 9
- Property declaration. 
- PropertyGroup = 19
- Group of properties. 
- Reference = 38
- Parameter or variable reference expression. 
- Region = 7
- Code region. 
- RegionGroup = 14
- Group of code regions. 
- ReturnStatement = 25
- Return statement. 
- SuppressNull = 47
- !null-forgiving operator expression.
- TernaryOperation = 36
- Ternary operation. 
- This = 33
- 'This' object reference in instance type members. 
- ThrowExpression = 49
- Throw expression. 
- ThrowStatement = 26
- Throw statement. 
- TypeConstructor = 11
- Type constructor (static constructor) declaration. 
- TypeReference = 30
- Type reference, used in expression context (e.g. in nameof expression or as object element of static member access). 
- TypeToken = 24
- Type reference used in type-only context (e.g. field type or parameter type). For type reference used as expression see TypeReference. 
- UnaryOperation = 34
- Unary operation. 
- Variable = 51
- Variable declaration. 
- XmlComment = 22
- Commentary in xml-doc format.