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

Public Member Functions

 __init__ (self, start, end, name, var_type, initial_value, namespace)
 Requires (self, node)
 ToString (self)
 __str__ (self)
Public Member Functions inherited from cpp.ast._GenericDeclaration
 __init__ (self, start, end, name, namespace)
 FullName (self)
Public Member Functions inherited from cpp.ast.Node
 __init__ (self, start, end)
 IsDeclaration (self)
 IsDefinition (self)
 IsExportable (self)
 XXX__str__ (self)
 __repr__ (self)

Public Attributes

 type = var_type
 initial_value = initial_value
Public Attributes inherited from cpp.ast._GenericDeclaration
 name = name
 namespace = namespace[:]
Public Attributes inherited from cpp.ast.Node
 start = start
 end = end

Additional Inherited Members

Protected Member Functions inherited from cpp.ast._GenericDeclaration
 _TypeStringHelper (self, suffix)
Protected Member Functions inherited from cpp.ast.Node
 _StringHelper (self, name, suffix)

Constructor & Destructor Documentation

◆ __init__()

cpp.ast.VariableDeclaration.__init__ ( self,
start,
end,
name,
var_type,
initial_value,
namespace )

Member Function Documentation

◆ __str__()

cpp.ast.VariableDeclaration.__str__ ( self)

◆ Requires()

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

Reimplemented from cpp.ast.Node.

◆ ToString()

cpp.ast.VariableDeclaration.ToString ( self)
Return a string that tries to reconstitute the variable decl.

Member Data Documentation

◆ initial_value

cpp.ast.VariableDeclaration.initial_value = initial_value

◆ type

cpp.ast.VariableDeclaration.type = var_type

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