The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
AST.IdDeclaration Class Reference

Encapsulates a declaration. More...

Inheritance diagram for AST.IdDeclaration:
AST.Declaration AST.Statement AST.AstNode AST.Definition AST.FieldDeclaration AST.MethodDeclaration AST.PropertyDefinition AST.TypeDefinition AST.ConstantDefinition AST.FieldDefinition AST.MethodDefinition AST.ClassDefinition AST.InterfaceDefinition AST.ConstantFieldDefinition AST.ConstructorDefinition

Public Member Functions

 IdDeclaration (SingleIdentifierExpression id, string type, Location location)
 Constructor of IdDeclaration More...
 
 IdDeclaration (SingleIdentifierExpression id, int indexSSA, string type, Location location)
 Constructor of IdDeclaration More...
 
override Object Accept (Visitor v, Object o)
 Accept method of a concrete visitor. More...
 
override object AcceptOperation (AstOperation op, object arg)
 Dispatches expressions to the operation passed as argument. It provokes the execution of op.AcceptOperation(AstNode) with the parameter resolved polymorfically More...
 
- Public Member Functions inherited from AST.Statement
override object AcceptOperation (AstOperation op, object arg)
 Dispatches expressions to the operation passed as argument. It provokes the execution of op.AcceptOperation(AstNode) with the parameter resolved polymorfically More...
 
- Public Member Functions inherited from AST.AstNode
override bool Equals (object obj)
 AntLR compares Nodes with the class name. This is not correct for our purposes. More...
 
override int GetHashCode ()
 

Properties

string Identifier [get]
 Gets the name associated to the declaration More...
 
string ILName [get]
 Gets the IL name associated to the declaration identifier. More...
 
SingleIdentifierExpression IdentifierExp [get]
 Gets the identifier expression More...
 
Symbol Symbol [get, set]
 The symbol of the identifier More...
 
- Properties inherited from AST.Declaration
TypeExpression TypeExpr [get, set]
 Gets or sets the type of the declaration More...
 
string FullName [get, set]
 Gets or sets the nominal type of the declaration More...
 
virtual TypeExpression ILTypeExpression [get]
 Gets the type expression to use in code generation. More...
 
- Properties inherited from AST.AstNode
Location Location [get]
 

Additional Inherited Members

- Protected Member Functions inherited from AST.Declaration
 Declaration (string type, Location location)
 Constructor of Declaration More...
 
- Protected Member Functions inherited from AST.Statement
 Statement (Location location)
 Protected constructor of Statement. More...
 
- Protected Member Functions inherited from AST.AstNode
 AstNode (Location location)
 Protected constructor of NodeAst More...
 
- Protected Attributes inherited from AST.Declaration
TypeExpression frozenTypeExpression
 WriteType variable may change its type's substitution (e.g., field type variables) This attribute saves the type in an specific time (frozen). If this type's substitution changes, the frozen type does not. More...
 
- Protected Attributes inherited from AST.AstNode
Location location
 Location: Encapsulates in one object the line, column and filename More...
 

Detailed Description

Encapsulates a declaration.

Inheritance: Declaration. Implements Composite pattern [Composite]. Implements Visitor pattern [Concrete Element].

Definition at line 36 of file IdDeclaration.cs.

Constructor & Destructor Documentation

AST.IdDeclaration.IdDeclaration ( SingleIdentifierExpression  id,
string  type,
Location  location 
)

Constructor of IdDeclaration

Parameters
idName of the declaration.
typeTypeExpression of the declaration.
fileNameFile name.
lineNumberLine number.
columnNumberColumn number.

Definition at line 98 of file IdDeclaration.cs.

AST.IdDeclaration.IdDeclaration ( SingleIdentifierExpression  id,
int  indexSSA,
string  type,
Location  location 
)

Constructor of IdDeclaration

Parameters
idName of the declaration.
typeTypeExpression of the declaration.
indexSSANumber associated to the declaration for SSA algorithm
fileNameFile name.
lineNumberLine number.
columnNumberColumn number.

Definition at line 114 of file IdDeclaration.cs.

Member Function Documentation

override Object AST.IdDeclaration.Accept ( Visitor  v,
Object  o 
)
virtual

Accept method of a concrete visitor.

Parameters
vConcrete visitor
oOptional information to use in the visit.
Returns
Optional information to return

Implements AST.AstNode.

Reimplemented in AST.TypeDefinition, AST.MethodDeclaration, AST.MethodDefinition, AST.PropertyDefinition, and AST.InterfaceDefinition.

Definition at line 131 of file IdDeclaration.cs.

override object AST.IdDeclaration.AcceptOperation ( AstOperation  op,
object  arg 
)
virtual

Dispatches expressions to the operation passed as argument. It provokes the execution of op.AcceptOperation(AstNode) with the parameter resolved polymorfically

Parameters
opAstOperation to dispatch
Returns

Reimplemented from AST.Declaration.

Definition at line 146 of file IdDeclaration.cs.

Property Documentation

string AST.IdDeclaration.Identifier
get

Gets the name associated to the declaration

Definition at line 58 of file IdDeclaration.cs.

SingleIdentifierExpression AST.IdDeclaration.IdentifierExp
get

Gets the identifier expression

Definition at line 74 of file IdDeclaration.cs.

string AST.IdDeclaration.ILName
get

Gets the IL name associated to the declaration identifier.

Definition at line 66 of file IdDeclaration.cs.

Symbol AST.IdDeclaration.Symbol
getset

The symbol of the identifier

Definition at line 81 of file IdDeclaration.cs.


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