C# Class Reko.Core.ImportResolver

An import resolver tries to resolve a reference to external code or data by consulting the current project first hand, and the platform in second hand. Doing it that way allows users to override platform definitions as the need arises.
Inheritance: IImportResolver
Mostra file Open project: uxmal/reko Class Usage Examples

Public Methods

Method Description
ImportResolver ( Reko.Core.Project project, Program program, DecompilerEventListener eventListener ) : System
ResolveGlobal ( string moduleName, int ordinal, IPlatform platform ) : Identifier
ResolveGlobal ( string moduleName, string globalName, IPlatform platform ) : Identifier
ResolveProcedure ( string moduleName, int ordinal, IPlatform platform ) : Reko.Core.ExternalProcedure
ResolveProcedure ( string moduleName, string importName, IPlatform platform ) : Reko.Core.ExternalProcedure
ResolveToImportedProcedureConstant ( Reko.Core.Statement stm, Constant c ) : ProcedureConstant

Method Details

ImportResolver() public method

public ImportResolver ( Reko.Core.Project project, Program program, DecompilerEventListener eventListener ) : System
project Reko.Core.Project
program Program
eventListener DecompilerEventListener
return System

ResolveGlobal() public method

public ResolveGlobal ( string moduleName, int ordinal, IPlatform platform ) : Identifier
moduleName string
ordinal int
platform IPlatform
return Identifier

ResolveGlobal() public method

public ResolveGlobal ( string moduleName, string globalName, IPlatform platform ) : Identifier
moduleName string
globalName string
platform IPlatform
return Identifier

ResolveProcedure() public method

public ResolveProcedure ( string moduleName, int ordinal, IPlatform platform ) : Reko.Core.ExternalProcedure
moduleName string
ordinal int
platform IPlatform
return Reko.Core.ExternalProcedure

ResolveProcedure() public method

public ResolveProcedure ( string moduleName, string importName, IPlatform platform ) : Reko.Core.ExternalProcedure
moduleName string
importName string
platform IPlatform
return Reko.Core.ExternalProcedure

ResolveToImportedProcedureConstant() public method

public ResolveToImportedProcedureConstant ( Reko.Core.Statement stm, Constant c ) : ProcedureConstant
stm Reko.Core.Statement
c Constant
return ProcedureConstant