PythonAstNodeId Class
Contains the AST node IDs for the Python language.
public class PythonAstNodeId : AstNodeIdProviderBase, IAstNodeIdProvider, IIdProvider
- Inheritance:
- object AstNodeIdProviderBase object
- Implements:
- IAstNodeIdProvider IIdProvider
Remarks
This type was generated by the Actipro Language Designer tool v25.1.1.0 (http://www.actiprosoftware.com).
Constructors
PythonAstNodeId()
Initializes an instance of the class.
public PythonAstNodeId()
Properties
MaxId
Gets the maximum AST node ID returned by this provider.
public override int MaxId { get; }
Property Value
- int:
The maximum AST node ID returned by this provider.
MinId
Gets the minimum AST node ID returned by this provider.
public override int MinId { get; }
Property Value
- int:
The minimum AST node ID returned by this provider.
Methods
ContainsId(int)
Returns whether the specified ID value is valid for this AST node ID provider.
public override bool ContainsId(int id)
| Parameter | Type | Description |
|---|---|---|
| id | int | The AST node ID to examine. |
Returns
- bool:
trueif the ID value is valid; otherwise,false
GetDescription(int)
Returns the actual string representation for the specified AST node ID.
public override string GetDescription(int id)
| Parameter | Type | Description |
|---|---|---|
| id | int | The AST node ID to examine. |
Returns
- string:
The actual string representation for the specified AST node ID.
GetKey(int)
Returns the string-based key for the specified AST node ID.
public override string GetKey(int id)
| Parameter | Type | Description |
|---|---|---|
| id | int | The AST node ID to examine. |
Returns
- string:
The string-based key for the specified AST node ID.
Fields
Argument
Gets the Argument AST node ID.
public const int Argument = 14001
AssertStatement
Gets the AssertStatement AST node ID.
public const int AssertStatement = 14002
AssignmentStatement
Gets the AssignmentStatement AST node ID.
public const int AssignmentStatement = 14003
AttributeReferenceExpression
Gets the AttributeReferenceExpression AST node ID.
public const int AttributeReferenceExpression = 14004
AwaitExpression
Gets the AwaitExpression AST node ID.
public const int AwaitExpression = 14005
BinaryOperatorExpression
Gets the BinaryOperatorExpression AST node ID.
public const int BinaryOperatorExpression = 14006
BlockStatement
Gets the BlockStatement AST node ID.
public const int BlockStatement = 14007
BoundName
Gets the BoundName AST node ID.
public const int BoundName = 14008
BreakStatement
Gets the BreakStatement AST node ID.
public const int BreakStatement = 14009
CapturePattern
Gets the CapturePattern AST node ID.
public const int CapturePattern = 14010
CaseBlock
Gets the CaseBlock AST node ID.
public const int CaseBlock = 14011
ClassDeclaration
Gets the ClassDeclaration AST node ID.
public const int ClassDeclaration = 14012
ClassPattern
Gets the ClassPattern AST node ID.
public const int ClassPattern = 14013
CompilationUnit
Gets the CompilationUnit AST node ID.
public const int CompilationUnit = 14000
ComprehensionClauseBase
Gets the ComprehensionClauseBase AST node ID.
public const int ComprehensionClauseBase = 14014
ComprehensionExpression
Gets the ComprehensionExpression AST node ID.
public const int ComprehensionExpression = 14015
ComprehensionFor
Gets the ComprehensionFor AST node ID.
public const int ComprehensionFor = 14016
ComprehensionIf
Gets the ComprehensionIf AST node ID.
public const int ComprehensionIf = 14017
ConditionalExpression
Gets the ConditionalExpression AST node ID.
public const int ConditionalExpression = 14018
ContinueStatement
Gets the ContinueStatement AST node ID.
public const int ContinueStatement = 14019
DeclarationBase
Gets the DeclarationBase AST node ID.
public const int DeclarationBase = 14020
Decorator
Gets the Decorator AST node ID.
public const int Decorator = 14021
DeleteStatement
Gets the DeleteStatement AST node ID.
public const int DeleteStatement = 14022
DictionaryExpression
Gets the DictionaryExpression AST node ID.
public const int DictionaryExpression = 14023
Ellipsis
Gets the Ellipsis AST node ID.
public const int Ellipsis = 14024
ExecuteStatement
Gets the ExecuteStatement AST node ID.
public const int ExecuteStatement = 14025
Expression
Gets the Expression AST node ID.
public const int Expression = 14026
ExpressionStatement
Gets the ExpressionStatement AST node ID.
public const int ExpressionStatement = 14027
ForStatement
Gets the ForStatement AST node ID.
public const int ForStatement = 14028
FromImportStatement
Gets the FromImportStatement AST node ID.
public const int FromImportStatement = 14029
FunctionDeclaration
Gets the FunctionDeclaration AST node ID.
public const int FunctionDeclaration = 14030
GeneratorExpression
Gets the GeneratorExpression AST node ID.
public const int GeneratorExpression = 14031
GlobalStatement
Gets the GlobalStatement AST node ID.
public const int GlobalStatement = 14032
GroupPattern
Gets the GroupPattern AST node ID.
public const int GroupPattern = 14033
IfStatement
Gets the IfStatement AST node ID.
public const int IfStatement = 14034
IfStatementCondition
Gets the IfStatementCondition AST node ID.
public const int IfStatementCondition = 14035
ImportStatement
Gets the ImportStatement AST node ID.
public const int ImportStatement = 14036
InvocationExpression
Gets the InvocationExpression AST node ID.
public const int InvocationExpression = 14037
KeyValueExpression
Gets the KeyValueExpression AST node ID.
public const int KeyValueExpression = 14038
KeyValuePattern
Gets the KeyValuePattern AST node ID.
public const int KeyValuePattern = 14039
KeywordPattern
Gets the KeywordPattern AST node ID.
public const int KeywordPattern = 14040
LambdaExpression
Gets the LambdaExpression AST node ID.
public const int LambdaExpression = 14041
ListExpression
Gets the ListExpression AST node ID.
public const int ListExpression = 14042
LiteralExpression
Gets the LiteralExpression AST node ID.
public const int LiteralExpression = 14043
LiteralPattern
Gets the LiteralPattern AST node ID.
public const int LiteralPattern = 14044
MappingPattern
Gets the MappingPattern AST node ID.
public const int MappingPattern = 14045
MatchStatement
Gets the MatchStatement AST node ID.
public const int MatchStatement = 14046
NonLocalStatement
Gets the NonLocalStatement AST node ID.
public const int NonLocalStatement = 14047
Parameter
Gets the Parameter AST node ID.
public const int Parameter = 14048
ParenthesizedExpression
Gets the ParenthesizedExpression AST node ID.
public const int ParenthesizedExpression = 14049
PassStatement
Gets the PassStatement AST node ID.
public const int PassStatement = 14050
Pattern
Gets the Pattern AST node ID.
public const int Pattern = 14051
PatternCaptureTarget
Gets the PatternCaptureTarget AST node ID.
public const int PatternCaptureTarget = 14052
PatternSet
Gets the PatternSet AST node ID.
public const int PatternSet = 14053
PrintStatement
Gets the PrintStatement AST node ID.
public const int PrintStatement = 14054
RaiseStatement
Gets the RaiseStatement AST node ID.
public const int RaiseStatement = 14055
ReturnStatement
Gets the ReturnStatement AST node ID.
public const int ReturnStatement = 14056
SequencePattern
Gets the SequencePattern AST node ID.
public const int SequencePattern = 14057
SetExpression
Gets the SetExpression AST node ID.
public const int SetExpression = 14058
SimpleName
Gets the SimpleName AST node ID.
public const int SimpleName = 14059
SliceExpression
Gets the SliceExpression AST node ID.
public const int SliceExpression = 14060
SliceItem
Gets the SliceItem AST node ID.
public const int SliceItem = 14061
StarExpression
Gets the StarExpression AST node ID.
public const int StarExpression = 14062
StarPattern
Gets the StarPattern AST node ID.
public const int StarPattern = 14063
Statement
Gets the Statement AST node ID.
public const int Statement = 14064
StringConversionExpression
Gets the StringConversionExpression AST node ID.
public const int StringConversionExpression = 14065
SubscriptionExpression
Gets the SubscriptionExpression AST node ID.
public const int SubscriptionExpression = 14066
TryStatement
Gets the TryStatement AST node ID.
public const int TryStatement = 14067
TryStatementExceptClause
Gets the TryStatementExceptClause AST node ID.
public const int TryStatementExceptClause = 14068
TupleExpression
Gets the TupleExpression AST node ID.
public const int TupleExpression = 14069
TypeAnnotationExpression
Gets the TypeAnnotationExpression AST node ID.
public const int TypeAnnotationExpression = 14070
UnaryOperatorExpression
Gets the UnaryOperatorExpression AST node ID.
public const int UnaryOperatorExpression = 14071
ValuePattern
Gets the ValuePattern AST node ID.
public const int ValuePattern = 14072
WhileStatement
Gets the WhileStatement AST node ID.
public const int WhileStatement = 14073
WildcardPattern
Gets the WildcardPattern AST node ID.
public const int WildcardPattern = 14074
WithStatement
Gets the WithStatement AST node ID.
public const int WithStatement = 14075
YieldExpression
Gets the YieldExpression AST node ID.
public const int YieldExpression = 14076