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