Wizard
Software Engineering Project - Wizard
Loading...
Searching...
No Matches
cpp.ast.Node Class Reference
Inheritance diagram for cpp.ast.Node:
cpp.ast.Define cpp.ast.Expr cpp.ast.Goto cpp.ast.Include cpp.ast.Parameter cpp.ast.Using cpp.ast._GenericDeclaration cpp.ast.Delete cpp.ast.Friend cpp.ast.Return cpp.ast.Class cpp.ast.Function cpp.ast.Type cpp.ast.Typedef cpp.ast.VariableDeclaration cpp.ast._NestedType

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 )

Reimplemented in cpp.ast.Type.

Member Function Documentation

◆ 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.


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