C# Class Microsoft.Cci.ILToCodeModel.SourceMethodBody

A metadata (IL) representation along with a source level representation of the body of a method or of a property/event accessor.
Inheritance: Microsoft.Cci.MutableCodeModel.SourceMethodBody, IMethodBody
Mostra file Open project: visualmutator/visualmutator Class Usage Examples

Public Methods

Method Description
SourceMethodBody ( IMethodBody ilMethodBody, IMetadataHost host, ISourceLocationProvider sourceLocationProvider, ILocalScopeProvider localScopeProvider, DecompilerOptions options = DecompilerOptions.None ) : System

Allocates a metadata (IL) representation along with a source level representation of the body of a method or of a property/event accessor.

Protected Methods

Method Description
GetBlock ( ) : IBlockStatement

Decompile the IL operations of this method body into a block of statements.

Private Methods

Method Description
AddLocalsAndConstants ( DecompiledBlock block, ILocalScope scope ) : void
CompareHandlers ( IOperationExceptionInformation handler1, IOperationExceptionInformation handler2 ) : int
Consolidate ( DecompiledBlock block ) : void
CreateExceptionBlocks ( DecompiledBlock block ) : void
CreateLexicalScopes ( DecompiledBlock block, Sublist scopes ) : void
CreateNestedBlock ( DecompiledBlock block, uint startOffset, uint endOffset ) : DecompiledBlock
DeleteLocalAssignedLocal ( BlockStatement block ) : void
DeleteNops ( BlockStatement block ) : void
GetLocalWithSourceName ( ILocalDefinition localDef ) : ILocalDefinition
IsAssignmentOfLocalToLocal ( IStatement s, ILocalDefinition &local ) : bool
ObjectInvariant ( ) : void
RemoveRedundantFinalReturn ( DecompiledBlock block ) : void
SplitBlock ( DecompiledBlock blockToSplit, uint splitOffset, List leftList, List rightList ) : void

Method Details

GetBlock() protected method

Decompile the IL operations of this method body into a block of statements.
protected GetBlock ( ) : IBlockStatement
return IBlockStatement

SourceMethodBody() public method

Allocates a metadata (IL) representation along with a source level representation of the body of a method or of a property/event accessor.
public SourceMethodBody ( IMethodBody ilMethodBody, IMetadataHost host, ISourceLocationProvider sourceLocationProvider, ILocalScopeProvider localScopeProvider, DecompilerOptions options = DecompilerOptions.None ) : System
ilMethodBody IMethodBody A method body whose IL operations should be decompiled into a block of statements that will be the /// result of the Block property of the resulting source method body.
host IMetadataHost An object representing the application that is hosting the converter. It is used to obtain access to some global /// objects and services such as the shared name table and the table for interning references.
sourceLocationProvider ISourceLocationProvider An object that can map some kinds of ILocation objects to IPrimarySourceLocation objects. May be null.
localScopeProvider ILocalScopeProvider An object that can provide information about the local scopes of a method.
options DecompilerOptions Set of options that control decompilation.
return System