Wizard
Software Engineering Project - Wizard
Loading...
Searching...
No Matches
cpp.ast.VariableDeclaration Class Reference
Inheritance diagram for cpp.ast.VariableDeclaration:
cpp.ast._GenericDeclaration cpp.ast.Node

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
 FullName (self)
 
- Public Member Functions inherited from cpp.ast.Node
 IsDeclaration (self)
 
 IsDefinition (self)
 
 IsExportable (self)
 
 XXX__str__ (self)
 
 __repr__ (self)
 

Public Attributes

 type = var_type
 
 initial_value = initial_value
 
str initial_value = ' = ' + self.initial_value
 
- Public Attributes inherited from cpp.ast._GenericDeclaration
 name = name
 
 namespace = namespace[:]
 
list namespace = [n or '<anonymous>' for n in self.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 )

Reimplemented from cpp.ast._GenericDeclaration.

Member Function Documentation

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

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