C# 클래스 Microsoft.Cci.SourceLocation

상속: ISourceLocation
파일 보기 프로젝트 열기: visualmutator/visualmutator 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
Contains ( ISourceLocation location ) : bool

True if this source at the given location is completely contained by the source at this location.

CopyTo ( int offset, char destination, int destinationOffset, int length ) : int

Copies the specified number of characters to the destination character array, starting at the specified offset from the start if the source location. Returns the number of characters actually copied. This number will be greater than zero as long as position is less than this.Length. The number will be precisely the number asked for unless there are not enough characters left in the document.

보호된 메소드들

메소드 설명
SourceLocation ( int startIndex, int length ) : System

Allocates a range of source text that corresponds to an identifiable entity.

메소드 상세

Contains() 공개 메소드

True if this source at the given location is completely contained by the source at this location.
public Contains ( ISourceLocation location ) : bool
location ISourceLocation
리턴 bool

CopyTo() 공개 메소드

Copies the specified number of characters to the destination character array, starting at the specified offset from the start if the source location. Returns the number of characters actually copied. This number will be greater than zero as long as position is less than this.Length. The number will be precisely the number asked for unless there are not enough characters left in the document.
public CopyTo ( int offset, char destination, int destinationOffset, int length ) : int
offset int The starting index to copy from. Must be greater than zero and less than this.Length.
destination char The destination array. Must have at least destinationOffset+length elements.
destinationOffset int The starting index where the characters must be copied to in the destination array.
length int The maximum number of characters to copy. Cannot be more than this.Length-position.
리턴 int

SourceLocation() 보호된 메소드

Allocates a range of source text that corresponds to an identifiable entity.
protected SourceLocation ( int startIndex, int length ) : System
startIndex int The character index of the first character of this location, when treating the source document as a single string.
length int The number of characters in this source location.
리턴 System