C# Class NJection.LambdaConverter.InstructionsIndexer

Inheritance: IOpCodeIndexer
Mostra file Open project: sagifogel/NJection.LambdaConverter

Public Methods

Method Description
GetInstruction ( AstNode node ) : Instruction
GetLastInstructionInRange ( AstNode node ) : Instruction
GetNextInstruction ( Instruction instruction ) : Instruction
GetPrevoiusRangeOfInstructions ( Instruction startFrom, int count ) : IEnumerable
GetRangeOfInstructions ( Instruction startFrom, int count ) : IEnumerable
InstructionsIndexer ( List instructions ) : System
TryGetCallInstruction ( AstNode node, Instruction &instruction ) : bool
TryGetConvertInstruction ( CastExpression node, Type type, Instruction &instruction ) : bool
TryGetInstruction ( AstNode node, Mono.Cecil.Cil.OpCode opCode, Instruction &instruction ) : bool
TryGetLoadFieldInstruction ( AstNode node, Instruction &instruction ) : bool
TryGetNewObjectInstruction ( AstNode node, Instruction &instruction ) : bool
TryGetNewObjectInstruction ( AstNode node, Type type, Instruction &instruction ) : bool
TryGetOpCode ( AstNode node, Mono.Cecil.Cil.OpCode opCodes, Instruction &instruction ) : bool
TryGetStoreFieldInstruction ( AstNode node, Instruction &instruction ) : bool

Private Methods

Method Description
GetRangeOfInstuction ( int startFrom, int count ) : IEnumerable
InstructionAt ( int offset ) : Instruction
TryGetInstruction ( List ilRanges, Mono.Cecil.Cil.OpCode opCode, Instruction &instruction ) : bool

Method Details

GetInstruction() public method

public GetInstruction ( AstNode node ) : Instruction
node AstNode
return Mono.Cecil.Cil.Instruction

GetLastInstructionInRange() public method

public GetLastInstructionInRange ( AstNode node ) : Instruction
node AstNode
return Mono.Cecil.Cil.Instruction

GetNextInstruction() public method

public GetNextInstruction ( Instruction instruction ) : Instruction
instruction Mono.Cecil.Cil.Instruction
return Mono.Cecil.Cil.Instruction

GetPrevoiusRangeOfInstructions() public method

public GetPrevoiusRangeOfInstructions ( Instruction startFrom, int count ) : IEnumerable
startFrom Mono.Cecil.Cil.Instruction
count int
return IEnumerable

GetRangeOfInstructions() public method

public GetRangeOfInstructions ( Instruction startFrom, int count ) : IEnumerable
startFrom Mono.Cecil.Cil.Instruction
count int
return IEnumerable

InstructionsIndexer() public method

public InstructionsIndexer ( List instructions ) : System
instructions List
return System

TryGetCallInstruction() public method

public TryGetCallInstruction ( AstNode node, Instruction &instruction ) : bool
node AstNode
instruction Mono.Cecil.Cil.Instruction
return bool

TryGetConvertInstruction() public method

public TryGetConvertInstruction ( CastExpression node, Type type, Instruction &instruction ) : bool
node CastExpression
type System.Type
instruction Mono.Cecil.Cil.Instruction
return bool

TryGetInstruction() public method

public TryGetInstruction ( AstNode node, Mono.Cecil.Cil.OpCode opCode, Instruction &instruction ) : bool
node AstNode
opCode Mono.Cecil.Cil.OpCode
instruction Mono.Cecil.Cil.Instruction
return bool

TryGetLoadFieldInstruction() public method

public TryGetLoadFieldInstruction ( AstNode node, Instruction &instruction ) : bool
node AstNode
instruction Mono.Cecil.Cil.Instruction
return bool

TryGetNewObjectInstruction() public method

public TryGetNewObjectInstruction ( AstNode node, Instruction &instruction ) : bool
node AstNode
instruction Mono.Cecil.Cil.Instruction
return bool

TryGetNewObjectInstruction() public method

public TryGetNewObjectInstruction ( AstNode node, Type type, Instruction &instruction ) : bool
node AstNode
type System.Type
instruction Mono.Cecil.Cil.Instruction
return bool

TryGetOpCode() public method

public TryGetOpCode ( AstNode node, Mono.Cecil.Cil.OpCode opCodes, Instruction &instruction ) : bool
node AstNode
opCodes Mono.Cecil.Cil.OpCode
instruction Mono.Cecil.Cil.Instruction
return bool

TryGetStoreFieldInstruction() public method

public TryGetStoreFieldInstruction ( AstNode node, Instruction &instruction ) : bool
node AstNode
instruction Mono.Cecil.Cil.Instruction
return bool