Detailed Description

Represents a local variable; One defined within the body of a method.

Inheritance diagram for Nitro.LocalVariable:
Nitro.Variable Nitro.ISettable

Public Member Functions

 LocalVariable (string name, Type type)
 Creates a new named LocalVarable. More...
 
override Type Type ()
 The type of the value that this variable holds. Note: This is not related to VariableType. More...
 
override void OutputSet (NitroIL into, Type setting)
 Outputs this variable to write its content. More...
 
override void OutputIL (NitroIL into, bool accessingMember)
 Outputs this variable into IL. More...
 
- Public Member Functions inherited from Nitro.Variable
 Variable (string name)
 Creates a new variable with the given name. More...
 
virtual bool OutputTarget (NitroIL into)
 Used with OutputSet, this outputs any additional information that 'targets' where this variable is located. More...
 
bool Equals (Variable other)
 Checks if two variables are equal to each other. More...
 

Public Attributes

LocalBuilder Builder
 The builder that will later be used to compiled this to IL. More...
 
- Public Attributes inherited from Nitro.Variable
string Name
 The name of the variable. More...
 

Private Attributes

Type VariableType
 A type if any of this variable. More...
 

Constructor & Destructor Documentation

Nitro.LocalVariable.LocalVariable ( string  name,
Type  type 
)
inline

Creates a new named LocalVarable.

Parameters
nameThe name of the variable.
typeThe optional type of this variable.

Member Function Documentation

override void Nitro.LocalVariable.OutputIL ( NitroIL  into,
bool  accessingMember 
)
inlinevirtual

Outputs this variable into IL.

Parameters
intoThe IL stream to output it into.
accessingMemberTrue if we are accessing a field/method of this variable.

Reimplemented from Nitro.Variable.

override void Nitro.LocalVariable.OutputSet ( NitroIL  into,
Type  setting 
)
inlinevirtual

Outputs this variable to write its content.

Parameters
intoThe IL stream a set should be put into.
settingThe type being set to this variable.

Reimplemented from Nitro.Variable.

override Type Nitro.LocalVariable.Type ( )
inlinevirtual

The type of the value that this variable holds. Note: This is not related to VariableType.

Returns
The type of the value.

Reimplemented from Nitro.Variable.

Member Data Documentation

LocalBuilder Nitro.LocalVariable.Builder

The builder that will later be used to compiled this to IL.

Type Nitro.LocalVariable.VariableType
private

A type if any of this variable.