C# Class kOS.Safe.Compilation.ProgramBuilder

Mostra file Open project: KSP-KOS/KOS Class Usage Examples

Private Properties

Property Type Description
AddJumpToEntryPoint void
GetEntryPointLabel string
ReplaceLabels void

Public Methods

Method Description
AddObjectFile ( IEnumerable parts ) : System.Guid

Creates a new ObjectFile with the parts provided

AddRange ( IEnumerable parts ) : void
BuildProgram ( ) : List
GetObjectFileEntryPointAddress ( System.Guid objectFileId ) : int

Protected Methods

Method Description
AddEndOfProgram ( CodePart linkedObject, bool isMainProgram ) : void
AddInitializationCode ( CodePart linkedObject, CodePart part ) : void
BuildBoilerplateLoader ( ) : IEnumerable

Private Methods

Method Description
AddJumpToEntryPoint ( CodePart linkedObject ) : void
GetEntryPointLabel ( CodePart linkedObject ) : string
ReplaceLabels ( List program ) : void

Method Details

AddEndOfProgram() protected method

protected AddEndOfProgram ( CodePart linkedObject, bool isMainProgram ) : void
linkedObject CodePart
isMainProgram bool
return void

AddInitializationCode() protected method

protected AddInitializationCode ( CodePart linkedObject, CodePart part ) : void
linkedObject CodePart
part CodePart
return void

AddObjectFile() public method

Creates a new ObjectFile with the parts provided
public AddObjectFile ( IEnumerable parts ) : System.Guid
parts IEnumerable Collection of CodeParts generated by the compiler
return System.Guid

AddRange() public method

public AddRange ( IEnumerable parts ) : void
parts IEnumerable
return void

BuildBoilerplateLoader() protected method

protected BuildBoilerplateLoader ( ) : IEnumerable
return IEnumerable

BuildProgram() public method

public BuildProgram ( ) : List
return List

GetObjectFileEntryPointAddress() public method

public GetObjectFileEntryPointAddress ( System.Guid objectFileId ) : int
objectFileId System.Guid
return int