Public Member Functions | Public Attributes | Private Member Functions | List of all members
cpp.ast.Node Class Reference
Inheritance diagram for cpp.ast.Node:
Inheritance graph
[legend]

Public Member Functions

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

Public Attributes

 end
 
 start
 

Private Member Functions

def _StringHelper (self, name, suffix)
 

Detailed Description

Base AST node.

Definition at line 109 of file ast.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 112 of file ast.py.

Member Function Documentation

◆ __repr__()

def cpp.ast.Node.__repr__ (   self)

Definition at line 140 of file ast.py.

◆ _StringHelper()

def cpp.ast.Node._StringHelper (   self,
  name,
  suffix 
)
private

Definition at line 135 of file ast.py.

◆ IsDeclaration()

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

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

Definition at line 116 of file ast.py.

◆ IsDefinition()

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

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

Definition at line 120 of file ast.py.

◆ IsExportable()

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

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

Definition at line 124 of file ast.py.

◆ Requires()

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

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

Definition at line 128 of file ast.py.

◆ XXX__str__()

def cpp.ast.Node.XXX__str__ (   self)

Definition at line 132 of file ast.py.

Member Data Documentation

◆ end

cpp.ast.Node.end

Definition at line 114 of file ast.py.

◆ start

cpp.ast.Node.start

Definition at line 113 of file ast.py.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:08