C# 클래스 Microsoft.Cci.MutableCodeModel.SourceMethodBody

A metadata (IL) representation along with a source level representation of the body of a method or of a property/event accessor.
상속: ISourceMethodBody
파일 보기 프로젝트 열기: visualmutator/visualmutator 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GenerateIL void

공개 메소드들

메소드 설명
Dispatch ( IMetadataVisitor visitor ) : void

Calls the visitor.Visit(T) method where T is the most derived object model node interface type implemented by the concrete type of the object implementing IDoubleDispatcher. The dispatch method does not invoke Dispatch on any child objects. If child traversal is desired, the implementations of the Visit methods should do the subsequent dispatching.

SourceMethodBody ( IMetadataHost host, ISourceLocationProvider sourceLocationProvider = null, ILocalScopeProvider localScopeProvider = null, uint>.IDictionary iteratorLocalCount = null ) : System

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

보호된 메소드들

메소드 설명
GetBlock ( ) : IBlockStatement

If no value has been provided for the Block property, make one.

비공개 메소드들

메소드 설명
GenerateIL ( ) : void

메소드 상세

Dispatch() 공개 메소드

Calls the visitor.Visit(T) method where T is the most derived object model node interface type implemented by the concrete type of the object implementing IDoubleDispatcher. The dispatch method does not invoke Dispatch on any child objects. If child traversal is desired, the implementations of the Visit methods should do the subsequent dispatching.
public Dispatch ( IMetadataVisitor visitor ) : void
visitor IMetadataVisitor
리턴 void

GetBlock() 보호된 메소드

If no value has been provided for the Block property, make one.
protected GetBlock ( ) : IBlockStatement
리턴 IBlockStatement

SourceMethodBody() 공개 메소드

Allocates an object that provides a metadata (IL) representation along with a source level representation of the body of a method or of a property/event accessor.
public SourceMethodBody ( IMetadataHost host, ISourceLocationProvider sourceLocationProvider = null, ILocalScopeProvider localScopeProvider = null, uint>.IDictionary iteratorLocalCount = null ) : System
host IMetadataHost An object representing the application that is hosting this source method body. 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 the ILocation objects found in the block of statements to IPrimarySourceLocation objects. May be null.
localScopeProvider ILocalScopeProvider
iteratorLocalCount uint>.IDictionary A map that indicates how many iterator locals are present in a given block. Only useful for generated MoveNext methods. May be null.
리턴 System