C# Class GameMaker.Dissasembler.BuildAst

Show file Open project: WarlockD/GMdsam

Public Methods

Method Description
Build ( File code, ErrorContext error = null ) : List

Protected Methods

Method Description
BuildUnresolvedVar ( int operand ) : UnresolvedVar
CreateExpression ( GMCode code, GM_Type types ) : ILExpression
CreateExpression ( GMCode code, GM_Type types, ILLabel operand ) : ILExpression
CreateExpression ( List list ) : ILExpression
CreateLabeledExpression ( GMCode code ) : ILExpression
CreatePushExpression ( GMCode code, GM_Type types ) : ILExpression
DebugILValueOffset ( ILValue v ) : void
Finish ( List list ) : void

After label resolving and right before returning

GetLabel ( int position ) : ILLabel
ReadConstant ( BinaryReader r, GM_Type t ) : ILValue
ReadRaw ( uint i ) : GM_Type
ReadTypes ( uint rawCode ) : GM_Type[]
Start ( List list ) : void

Before reading the first opcode

labelExists ( int position ) : bool

Method Details

Build() public method

public Build ( File code, ErrorContext error = null ) : List
code System.IO.File
error ErrorContext
return List

BuildUnresolvedVar() protected method

protected BuildUnresolvedVar ( int operand ) : UnresolvedVar
operand int
return UnresolvedVar

CreateExpression() protected method

protected CreateExpression ( GMCode code, GM_Type types ) : ILExpression
code GMCode
types GM_Type
return ILExpression

CreateExpression() protected method

protected CreateExpression ( GMCode code, GM_Type types, ILLabel operand ) : ILExpression
code GMCode
types GM_Type
operand ILLabel
return ILExpression

CreateExpression() protected abstract method

protected abstract CreateExpression ( List list ) : ILExpression
list List
return ILExpression

CreateLabeledExpression() protected method

protected CreateLabeledExpression ( GMCode code ) : ILExpression
code GMCode
return ILExpression

CreatePushExpression() protected method

protected CreatePushExpression ( GMCode code, GM_Type types ) : ILExpression
code GMCode
types GM_Type
return ILExpression

DebugILValueOffset() protected method

protected DebugILValueOffset ( ILValue v ) : void
v ILValue
return void

Finish() protected method

After label resolving and right before returning
protected Finish ( List list ) : void
list List
return void

GetLabel() protected method

protected GetLabel ( int position ) : ILLabel
position int
return ILLabel

ReadConstant() static protected method

static protected ReadConstant ( BinaryReader r, GM_Type t ) : ILValue
r System.IO.BinaryReader
t GM_Type
return ILValue

ReadRaw() protected static method

protected static ReadRaw ( uint i ) : GM_Type
i uint
return GM_Type

ReadTypes() protected static method

protected static ReadTypes ( uint rawCode ) : GM_Type[]
rawCode uint
return GM_Type[]

Start() protected method

Before reading the first opcode
protected Start ( List list ) : void
list List
return void

labelExists() protected method

protected labelExists ( int position ) : bool
position int
return bool