C# Класс 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.
Наследование: Microsoft.Cci.MutableCodeModel.SourceMethodBody, IMethodBody
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
GetBlock ( ) : IBlockStatement

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

Приватные методы

Метод Описание
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

Описание методов

GetBlock() защищенный Метод

Decompile the IL operations of this method body into a block of statements.
protected GetBlock ( ) : IBlockStatement
Результат IBlockStatement

SourceMethodBody() публичный Метод

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.
Результат System