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
파일 보기 프로젝트 열기: visualmutator/visualmutator 1 사용 예제들

공개 메소드들

메소드 설명
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