The base class for a variable and its value. E.g. var something:type;
Public Member Functions | |
Variable (string name) | |
Creates a new variable with the given name. More... | |
virtual Type | Type () |
The type of the value that this variable holds. Note: This is not related to VariableType. More... | |
virtual void | OutputIL (NitroIL into, bool accessingMember) |
Outputs this variable to read its content. More... | |
virtual void | OutputSet (NitroIL into, Type setting) |
Outputs this variable to write its content. More... | |
virtual void | 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 | |
string | Name |
The name of the variable. More... | |
|
inline |
Creates a new variable with the given name.
name | The name of the variable. |
|
inline |
Checks if two variables are equal to each other.
other | The variable to check for equality with this one. |
|
inlinevirtual |
Outputs this variable to read its content.
into | The IL stream it should be put into. |
accessingMember | True if the variable is being outputted and immediately having a method/property/field accessed. This is important for value type fields. |
Reimplemented in Nitro.LocalVariable, and Nitro.ParameterVariable.
Outputs this variable to write its content.
into | The IL stream a set should be put into. |
setting | The type being set to this variable. |
Implements Nitro.ISettable.
Reimplemented in Nitro.LocalVariable, and Nitro.ParameterVariable.
|
inlinevirtual |
Used with OutputSet, this outputs any additional information that 'targets' where this variable is located.
into | The IL stream a set should be put into. |
Implements Nitro.ISettable.
|
inlinevirtual |
The type of the value that this variable holds. Note: This is not related to VariableType.
Reimplemented in Nitro.LocalVariable, and Nitro.ParameterVariable.
string Nitro.Variable.Name |
The name of the variable.