C# Class Reko.Analysis.UserSignatureBuilder

Builds ProcedureSignatures from user-supplied signatures.
Mostrar archivo Open project: uxmal/reko Class Usage Examples

Public Methods

Method Description
ApplySignatureToProcedure ( Address addr, FunctionType sig, Procedure proc ) : void
BuildSignature ( Address addr, Procedure proc ) : bool
BuildSignatures ( DecompilerEventListener listener ) : void

For each procedure, either use a user-supplied signature, or the predefined one.

DeserializeSignature ( Procedure_v1 userProc, Procedure proc ) : ProcedureBase_v1
IsValidCIdentifier ( string id ) : bool
ParseFunctionDeclaration ( string fnDecl ) : ProcedureBase_v1
ParseGlobalDeclaration ( string txtGlobal ) : Reko.Core.Serialization.GlobalDataItem_v2
UserSignatureBuilder ( Program program ) : Reko.Core

Private Methods

Method Description
NewMethod ( Identifier param, Identifier dst ) : Assignment

Method Details

ApplySignatureToProcedure() public method

public ApplySignatureToProcedure ( Address addr, FunctionType sig, Procedure proc ) : void
addr Address
sig FunctionType
proc Procedure
return void

BuildSignature() public method

public BuildSignature ( Address addr, Procedure proc ) : bool
addr Address
proc Procedure
return bool

BuildSignatures() public method

For each procedure, either use a user-supplied signature, or the predefined one.
public BuildSignatures ( DecompilerEventListener listener ) : void
listener DecompilerEventListener
return void

DeserializeSignature() public method

public DeserializeSignature ( Procedure_v1 userProc, Procedure proc ) : ProcedureBase_v1
userProc Reko.Core.Serialization.Procedure_v1
proc Procedure
return Reko.Core.Serialization.ProcedureBase_v1

IsValidCIdentifier() public static method

public static IsValidCIdentifier ( string id ) : bool
id string
return bool

ParseFunctionDeclaration() public method

public ParseFunctionDeclaration ( string fnDecl ) : ProcedureBase_v1
fnDecl string
return Reko.Core.Serialization.ProcedureBase_v1

ParseGlobalDeclaration() public method

public ParseGlobalDeclaration ( string txtGlobal ) : Reko.Core.Serialization.GlobalDataItem_v2
txtGlobal string
return Reko.Core.Serialization.GlobalDataItem_v2

UserSignatureBuilder() public method

public UserSignatureBuilder ( Program program ) : Reko.Core
program Program
return Reko.Core