In This Article

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 v26.1.0 (http://www.actiprosoftware.com).

Constructors

PythonAstNodeId()

Initializes an instance of the class.

public PythonAstNodeId()

Properties

MaxId

The maximum ID returned by this provider.

public override int MaxId { get; }

Property Value

int

MinId

The minimum ID returned by this provider.

public override int MinId { get; }

Property Value

int

Methods

ContainsId(int)

Returns whether the specified ID value is valid for this ID provider.

public override bool ContainsId(int id)
Parameter Type Description
id int

The ID to examine.

Returns

bool:

true if the ID value is valid; otherwise, false

GetDescription(int)

Returns the actual string representation for the specified ID.

public override string? GetDescription(int id)
Parameter Type Description
id int

The ID to examine.

Returns

string

GetKey(int)

Returns the string-based key for the specified ID.

public override string? GetKey(int id)
Parameter Type Description
id int

The ID to examine.

Returns

string

Fields

Argument

The Argument AST node ID.

public const int Argument = 14001

AssertStatement

The AssertStatement AST node ID.

public const int AssertStatement = 14002

AssignmentStatement

The AssignmentStatement AST node ID.

public const int AssignmentStatement = 14003

AttributeReferenceExpression

The AttributeReferenceExpression AST node ID.

public const int AttributeReferenceExpression = 14004

AwaitExpression

The AwaitExpression AST node ID.

public const int AwaitExpression = 14005

BinaryOperatorExpression

The BinaryOperatorExpression AST node ID.

public const int BinaryOperatorExpression = 14006

BlockStatement

The BlockStatement AST node ID.

public const int BlockStatement = 14007

BoundName

The BoundName AST node ID.

public const int BoundName = 14008

BreakStatement

The BreakStatement AST node ID.

public const int BreakStatement = 14009

CapturePattern

The CapturePattern AST node ID.

public const int CapturePattern = 14010

CaseBlock

The CaseBlock AST node ID.

public const int CaseBlock = 14011

ClassDeclaration

The ClassDeclaration AST node ID.

public const int ClassDeclaration = 14012

ClassPattern

The ClassPattern AST node ID.

public const int ClassPattern = 14013

CompilationUnit

The CompilationUnit AST node ID.

public const int CompilationUnit = 14000

ComprehensionClauseBase

The ComprehensionClauseBase AST node ID.

public const int ComprehensionClauseBase = 14014

ComprehensionExpression

The ComprehensionExpression AST node ID.

public const int ComprehensionExpression = 14015

ComprehensionFor

The ComprehensionFor AST node ID.

public const int ComprehensionFor = 14016

ComprehensionIf

The ComprehensionIf AST node ID.

public const int ComprehensionIf = 14017

ConditionalExpression

The ConditionalExpression AST node ID.

public const int ConditionalExpression = 14018

ContinueStatement

The ContinueStatement AST node ID.

public const int ContinueStatement = 14019

DeclarationBase

The DeclarationBase AST node ID.

public const int DeclarationBase = 14020

Decorator

The Decorator AST node ID.

public const int Decorator = 14021

DeleteStatement

The DeleteStatement AST node ID.

public const int DeleteStatement = 14022

DictionaryExpression

The DictionaryExpression AST node ID.

public const int DictionaryExpression = 14023

Ellipsis

The Ellipsis AST node ID.

public const int Ellipsis = 14024

ExecuteStatement

The ExecuteStatement AST node ID.

public const int ExecuteStatement = 14025

Expression

The Expression AST node ID.

public const int Expression = 14026

ExpressionStatement

The ExpressionStatement AST node ID.

public const int ExpressionStatement = 14027

ForStatement

The ForStatement AST node ID.

public const int ForStatement = 14028

FromImportStatement

The FromImportStatement AST node ID.

public const int FromImportStatement = 14029

FunctionDeclaration

The FunctionDeclaration AST node ID.

public const int FunctionDeclaration = 14030

GeneratorExpression

The GeneratorExpression AST node ID.

public const int GeneratorExpression = 14031

GlobalStatement

The GlobalStatement AST node ID.

public const int GlobalStatement = 14032

GroupPattern

The GroupPattern AST node ID.

public const int GroupPattern = 14033

IfStatement

The IfStatement AST node ID.

public const int IfStatement = 14034

IfStatementCondition

The IfStatementCondition AST node ID.

public const int IfStatementCondition = 14035

ImportStatement

The ImportStatement AST node ID.

public const int ImportStatement = 14036

InvocationExpression

The InvocationExpression AST node ID.

public const int InvocationExpression = 14037

KeyValueExpression

The KeyValueExpression AST node ID.

public const int KeyValueExpression = 14038

KeyValuePattern

The KeyValuePattern AST node ID.

public const int KeyValuePattern = 14039

KeywordPattern

The KeywordPattern AST node ID.

public const int KeywordPattern = 14040

LambdaExpression

The LambdaExpression AST node ID.

public const int LambdaExpression = 14041

ListExpression

The ListExpression AST node ID.

public const int ListExpression = 14042

LiteralExpression

The LiteralExpression AST node ID.

public const int LiteralExpression = 14043

LiteralPattern

The LiteralPattern AST node ID.

public const int LiteralPattern = 14044

MappingPattern

The MappingPattern AST node ID.

public const int MappingPattern = 14045

MatchStatement

The MatchStatement AST node ID.

public const int MatchStatement = 14046

NonLocalStatement

The NonLocalStatement AST node ID.

public const int NonLocalStatement = 14047

Parameter

The Parameter AST node ID.

public const int Parameter = 14048

ParenthesizedExpression

The ParenthesizedExpression AST node ID.

public const int ParenthesizedExpression = 14049

PassStatement

The PassStatement AST node ID.

public const int PassStatement = 14050

Pattern

The Pattern AST node ID.

public const int Pattern = 14051

PatternCaptureTarget

The PatternCaptureTarget AST node ID.

public const int PatternCaptureTarget = 14052

PatternSet

The PatternSet AST node ID.

public const int PatternSet = 14053

PrintStatement

The PrintStatement AST node ID.

public const int PrintStatement = 14054

RaiseStatement

The RaiseStatement AST node ID.

public const int RaiseStatement = 14055

ReturnStatement

The ReturnStatement AST node ID.

public const int ReturnStatement = 14056

SequencePattern

The SequencePattern AST node ID.

public const int SequencePattern = 14057

SetExpression

The SetExpression AST node ID.

public const int SetExpression = 14058

SimpleName

The SimpleName AST node ID.

public const int SimpleName = 14059

SliceExpression

The SliceExpression AST node ID.

public const int SliceExpression = 14060

SliceItem

The SliceItem AST node ID.

public const int SliceItem = 14061

StarExpression

The StarExpression AST node ID.

public const int StarExpression = 14062

StarPattern

The StarPattern AST node ID.

public const int StarPattern = 14063

Statement

The Statement AST node ID.

public const int Statement = 14064

StringConversionExpression

The StringConversionExpression AST node ID.

public const int StringConversionExpression = 14065

SubscriptionExpression

The SubscriptionExpression AST node ID.

public const int SubscriptionExpression = 14066

TryStatement

The TryStatement AST node ID.

public const int TryStatement = 14067

TryStatementExceptClause

The TryStatementExceptClause AST node ID.

public const int TryStatementExceptClause = 14068

TupleExpression

The TupleExpression AST node ID.

public const int TupleExpression = 14069

TypeAnnotationExpression

The TypeAnnotationExpression AST node ID.

public const int TypeAnnotationExpression = 14070

UnaryOperatorExpression

The UnaryOperatorExpression AST node ID.

public const int UnaryOperatorExpression = 14071

ValuePattern

The ValuePattern AST node ID.

public const int ValuePattern = 14072

WhileStatement

The WhileStatement AST node ID.

public const int WhileStatement = 14073

WildcardPattern

The WildcardPattern AST node ID.

public const int WildcardPattern = 14074

WithStatement

The WithStatement AST node ID.

public const int WithStatement = 14075

YieldExpression

The YieldExpression AST node ID.

public const int YieldExpression = 14076

Inherited Members

Extension Methods