C# Class DCPUB.Ast.CompilableNode

Inheritance: AstNode
Afficher le fichier Open project: Blecki/DCPUB Class Usage Examples

Méthodes publiques

Свойство Type Description
ResultType string

Méthodes publiques

Méthode Description
Child ( int n ) : CompilableNode
Constant ( ushort value ) : Intermediate.Operand
Dereference ( String r ) : Intermediate.Operand
DereferenceLabel ( Intermediate l ) : Intermediate.Operand
DereferenceOffset ( String s, ushort offset ) : Intermediate.Operand
DereferenceVariableOffset ( ushort offset ) : Intermediate.Operand
Emit ( CompileContext context, Model scope, Target target ) : Intermediate.IRNode
GatherSymbols ( CompileContext context, Model enclosingScope ) : void
GetFetchToken ( ) : Intermediate.Operand

Returns an operand to fetch the value of a node. Returns null if the value cannot be fetched by a single operand. If this does not return null, the emission of this nodes op-codes can be skipped.

Label ( Intermediate value ) : Intermediate.Operand
Operand ( Model r ) : Intermediate.Operand
Operand ( String r, Intermediate semantics = Intermediate.OperandSemantics.None, ushort offset ) : Intermediate.Operand
ResolveTypes ( CompileContext context, Model enclosingScope ) : void
VariableOffset ( ushort offset ) : Intermediate.Operand
Virtual ( int id, Intermediate semantics = Intermediate.OperandSemantics.None, ushort offset ) : Intermediate.Operand

Method Details

Child() public méthode

public Child ( int n ) : CompilableNode
n int
Résultat CompilableNode

Constant() public static méthode

public static Constant ( ushort value ) : Intermediate.Operand
value ushort
Résultat Intermediate.Operand

Dereference() public static méthode

public static Dereference ( String r ) : Intermediate.Operand
r String
Résultat Intermediate.Operand

DereferenceLabel() public static méthode

public static DereferenceLabel ( Intermediate l ) : Intermediate.Operand
l Intermediate
Résultat Intermediate.Operand

DereferenceOffset() public static méthode

public static DereferenceOffset ( String s, ushort offset ) : Intermediate.Operand
s String
offset ushort
Résultat Intermediate.Operand

DereferenceVariableOffset() public static méthode

public static DereferenceVariableOffset ( ushort offset ) : Intermediate.Operand
offset ushort
Résultat Intermediate.Operand

Emit() public méthode

public Emit ( CompileContext context, Model scope, Target target ) : Intermediate.IRNode
context CompileContext
scope Model
target Target
Résultat Intermediate.IRNode

GatherSymbols() public méthode

public GatherSymbols ( CompileContext context, Model enclosingScope ) : void
context CompileContext
enclosingScope Model
Résultat void

GetFetchToken() public méthode

Returns an operand to fetch the value of a node. Returns null if the value cannot be fetched by a single operand. If this does not return null, the emission of this nodes op-codes can be skipped.
public GetFetchToken ( ) : Intermediate.Operand
Résultat Intermediate.Operand

Label() public static méthode

public static Label ( Intermediate value ) : Intermediate.Operand
value Intermediate
Résultat Intermediate.Operand

Operand() public static méthode

public static Operand ( Model r ) : Intermediate.Operand
r Model
Résultat Intermediate.Operand

Operand() public static méthode

public static Operand ( String r, Intermediate semantics = Intermediate.OperandSemantics.None, ushort offset ) : Intermediate.Operand
r String
semantics Intermediate
offset ushort
Résultat Intermediate.Operand

ResolveTypes() public méthode

public ResolveTypes ( CompileContext context, Model enclosingScope ) : void
context CompileContext
enclosingScope Model
Résultat void

VariableOffset() public static méthode

public static VariableOffset ( ushort offset ) : Intermediate.Operand
offset ushort
Résultat Intermediate.Operand

Virtual() public static méthode

public static Virtual ( int id, Intermediate semantics = Intermediate.OperandSemantics.None, ushort offset ) : Intermediate.Operand
id int
semantics Intermediate
offset ushort
Résultat Intermediate.Operand

Property Details

ResultType public_oe property

public string ResultType
Résultat string