Class GetStaticFieldPointerPrototype
A prototype for instructions that compute the address of a field from a base address.
Inherited Members
Namespace: Flame.Compiler.Instructions
Assembly: Flame.Compiler.dll
Syntax
public sealed class GetStaticFieldPointerPrototype : InstructionPrototype
Properties
| Improve this Doc View SourceField
Gets the field whose address is taken.
Declaration
public IField Field { get; }
Property Value
Type | Description |
---|---|
IField | The field whose address is taken. |
ParameterCount
Gets the number of arguments this instruction takes when instantiated.
Declaration
public override int ParameterCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The number of arguments this instruction takes. |
Overrides
| Improve this Doc View SourceResultType
Gets the type of value produced instantiations of this prototype.
Declaration
public override IType ResultType { get; }
Property Value
Type | Description |
---|---|
IType | A type of value. |
Overrides
Methods
| Improve this Doc View SourceCheckConformance(Instruction, MethodBody)
Checks if a particular instance of this prototype conforms to the rules for this instruction prototype.
Declaration
public override IReadOnlyList<string> CheckConformance(Instruction instance, MethodBody body)
Parameters
Type | Name | Description |
---|---|---|
Instruction | instance | An instance of this prototype. |
MethodBody | body | The method body that defines the instruction. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.String> | A list of conformance errors in the instruction. |
Overrides
| Improve this Doc View SourceCreate(IField)
Gets or creates a get-static-field-pointer instruction prototype that computes the address of a particular field.
Declaration
public static GetStaticFieldPointerPrototype Create(IField field)
Parameters
Type | Name | Description |
---|---|---|
IField | field | The field whose address is to be computed. |
Returns
Type | Description |
---|---|
GetStaticFieldPointerPrototype | A get-static-field-pointer instruction prototype. |
Instantiate()
Creates an instance of this get-static-field-pointer prototype.
Declaration
public Instruction Instantiate()
Returns
Type | Description |
---|---|
Instruction | A get-static-field-pointer instruction. |
Map(MemberMapping)
Applies a member mapping to this instruction prototype.
Declaration
public override InstructionPrototype Map(MemberMapping mapping)
Parameters
Type | Name | Description |
---|---|---|
MemberMapping | mapping | A member mapping. |
Returns
Type | Description |
---|---|
InstructionPrototype | A transformed instruction prototype. |