tesseract v5.3.3.20231005
cpp.ast.Define Class Reference
Inheritance diagram for cpp.ast.Define:
cpp.ast.Node

Public Member Functions

def __init__ (self, start, end, name, definition)
 
def __str__ (self)
 
- Public Member Functions inherited from cpp.ast.Node
def __init__ (self, start, end)
 
def IsDeclaration (self)
 
def IsDefinition (self)
 
def IsExportable (self)
 
def Requires (self, node)
 
def XXX__str__ (self)
 
def __repr__ (self)
 

Public Attributes

 name
 
 definition
 
- Public Attributes inherited from cpp.ast.Node
 start
 
 end
 

Detailed Description

Definition at line 142 of file ast.py.

Constructor & Destructor Documentation

◆ __init__()

def cpp.ast.Define.__init__ (   self,
  start,
  end,
  name,
  definition 
)

Reimplemented from cpp.ast.Node.

Definition at line 143 of file ast.py.

143 def __init__(self, start, end, name, definition):
144 Node.__init__(self, start, end)
145 self.name = name
146 self.definition = definition
147

Member Function Documentation

◆ __str__()

def cpp.ast.Define.__str__ (   self)

Definition at line 148 of file ast.py.

148 def __str__(self):
149 value = '%s %s' % (self.name, self.definition)
150 return self._StringHelper(self.__class__.__name__, value)
151
152

Member Data Documentation

◆ definition

cpp.ast.Define.definition

Definition at line 146 of file ast.py.

◆ name

cpp.ast.Define.name

Definition at line 145 of file ast.py.


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