Monero
Loading...
Searching...
No Matches
cpp.ast.Node Class Reference
Inheritance diagram for cpp.ast.Node:
Collaboration diagram for cpp.ast.Node:

Public Member Functions

 __init__ (self, start, end)
 IsDeclaration (self)
 IsDefinition (self)
 IsExportable (self)
 Requires (self, node)
 XXX__str__ (self)
 __repr__ (self)

Public Attributes

 start = start
 end = end

Protected Member Functions

 _StringHelper (self, name, suffix)

Detailed Description

Base AST node.

Constructor & Destructor Documentation

◆ __init__()

cpp.ast.Node.__init__ ( self,
start,
end )

Member Function Documentation

◆ __repr__()

cpp.ast.Node.__repr__ ( self)

◆ _StringHelper()

cpp.ast.Node._StringHelper ( self,
name,
suffix )
protected

◆ IsDeclaration()

cpp.ast.Node.IsDeclaration ( self)
Returns bool if this node is a declaration.

Reimplemented in cpp.ast.Class, cpp.ast.Function, and cpp.ast.Type.

◆ IsDefinition()

cpp.ast.Node.IsDefinition ( self)
Returns bool if this node is a definition.

Reimplemented in cpp.ast._NestedType, cpp.ast.Class, cpp.ast.Function, cpp.ast.Type, and cpp.ast.Typedef.

◆ IsExportable()

cpp.ast.Node.IsExportable ( self)
Returns bool if this node exportable from a header file.

Reimplemented in cpp.ast._NestedType, cpp.ast.Class, cpp.ast.Function, cpp.ast.Type, and cpp.ast.Typedef.

◆ Requires()

cpp.ast.Node.Requires ( self,
node )
Does this AST node require the definition of the node passed in?

Reimplemented in cpp.ast.Class, cpp.ast.Expr, cpp.ast.Function, cpp.ast.Parameter, cpp.ast.Typedef, and cpp.ast.VariableDeclaration.

◆ XXX__str__()

cpp.ast.Node.XXX__str__ ( self)

Member Data Documentation

◆ end

cpp.ast.Node.end = end

◆ start

cpp.ast.Node.start = start

The documentation for this class was generated from the following file: