Header menu logo fantomas

ISourceText Type

Represents an input to the F# compiler

Instance members

Instance member Description

this.ContentEquals

Full Usage: this.ContentEquals

Parameters:
Returns: bool
Modifiers: abstract

Checks if one input is equal to another

sourceText : ISourceText
Returns: bool

this.CopyTo

Full Usage: this.CopyTo

Parameters:
    sourceIndex : int
    destination : char[]
    destinationIndex : int
    count : int

Modifiers: abstract

Copies a section of the input to the given destination ad the given index

sourceIndex : int
destination : char[]
destinationIndex : int
count : int

this.GetLastCharacterPosition

Full Usage: this.GetLastCharacterPosition

Returns: int * int
Modifiers: abstract

Gets the last character position in the input, returning line and column

Returns: int * int

this.GetLineCount

Full Usage: this.GetLineCount

Returns: int
Modifiers: abstract

Gets the count of lines in the input

Returns: int

this.GetLineString

Full Usage: this.GetLineString

Parameters:
    lineIndex : int

Returns: string
Modifiers: abstract

Gets a line of an input by index

lineIndex : int
Returns: string

this.GetSubTextFromRange

Full Usage: this.GetSubTextFromRange

Parameters:
Returns: string
Modifiers: abstract

Gets a section of the input based on a given range. Throws an exception when the input range is outside the file boundaries.

range : range
Returns: string

this.GetSubTextString

Full Usage: this.GetSubTextString

Parameters:
    start : int
    length : int

Returns: string
Modifiers: abstract

Gets a section of the input

start : int
length : int
Returns: string

this[index]

Full Usage: this[index]

Parameters:
    index : int

Returns: char
Modifiers: abstract

Gets a character in an input based on an index of characters from the start of the file

index : int
Returns: char

this.Length

Full Usage: this.Length

Returns: int
Modifiers: abstract

Gets the total length of the input in characters

Returns: int

this.SubTextEquals

Full Usage: this.SubTextEquals

Parameters:
    target : string
    startIndex : int

Returns: bool
Modifiers: abstract

Checks if a section of the input is equal to the given string

target : string
startIndex : int
Returns: bool

Type something to start searching.