tesseract v5.3.3.20231005
cpp.ast.Expr Class Reference
Inheritance diagram for cpp.ast.Expr:
cpp.ast.Node cpp.ast.Delete cpp.ast.Friend cpp.ast.Return

Public Member Functions

def __init__ (self, start, end, expr)
 
def Requires (self, node)
 
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

 expr
 
- Public Attributes inherited from cpp.ast.Node
 start
 
 end
 

Detailed Description

Definition at line 175 of file ast.py.

Constructor & Destructor Documentation

◆ __init__()

def cpp.ast.Expr.__init__ (   self,
  start,
  end,
  expr 
)

Reimplemented from cpp.ast.Node.

Reimplemented in cpp.ast.Friend.

Definition at line 176 of file ast.py.

176 def __init__(self, start, end, expr):
177 Node.__init__(self, start, end)
178 self.expr = expr
179

Member Function Documentation

◆ __str__()

def cpp.ast.Expr.__str__ (   self)

Definition at line 184 of file ast.py.

184 def __str__(self):
185 return self._StringHelper(self.__class__.__name__, str(self.expr))
186
187

◆ Requires()

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

Reimplemented from cpp.ast.Node.

Definition at line 180 of file ast.py.

180 def Requires(self, node):
181 # TODO(nnorwitz): impl.
182 return False
183

Member Data Documentation

◆ expr

cpp.ast.Expr.expr

Definition at line 178 of file ast.py.


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