Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
TypeScript
Services
Formatting
TextSnapshot
Class TextSnapshot
Index
Constructor methods
constructor
Properties
lines
snapshot
Methods
getLineFromLineNumber
getLineFromLineNumberWorker
getLineFromPosition
getLineNumberFromPosition
getText
Constructor methods
constructor
(
snapshot
:
ISimpleText
)
:
TextSnapshot
Parameters
snapshot:
ISimpleText
Returns
TextSnapshot
Properties
private
lines
:
any
private
snapshot
:
any
Methods
public
getLineFromLineNumber
(
lineNumber
:
number
)
:
ITextSnapshotLine
Parameters
lineNumber:
number
Returns
ITextSnapshotLine
private
getLineFromLineNumberWorker
(
lineNumber
:
any
)
:
any
Parameters
lineNumber:
any
Returns
any
public
getLineFromPosition
(
position
:
number
)
:
ITextSnapshotLine
Parameters
position:
number
Returns
ITextSnapshotLine
public
getLineNumberFromPosition
(
position
:
number
)
:
number
Parameters
position:
number
Returns
number
public
getText
(
span
:
TextSpan
)
:
string
Parameters
span:
TextSpan
Returns
string
Globals
TypeScript
TypeScript.ASTHelpers
TypeScript.BitMatrix
TypeScript.BitVector
TypeScript.Collections
TypeScript.CompilerDiagnostics
TypeScript.DeclarationCreator
TypeScript.Indentation
TypeScript.IntegerUtilities
TypeScript.LineMap1
TypeScript.Parser
TypeScript.PullHelpers
TypeScript.PullInstantiationHelpers
TypeScript.ScriptSnapshot
TypeScript.Services
TypeScript.Services.Breakpoints
TypeScript.Services.Formatting
TypeScript.Services.Formatting.Shared
TypeScript.SimpleText
TypeScript.Syntax
TypeScript.SyntaxFacts
TypeScript.TextFactory
TypeScript.TextUtilities
typescript-services
FormattingRequestKind
RuleAction
RuleFlags
RulesPosition
ITextSnapshot
ITextSnapshotLine
Formatter
FormattingContext
FormattingManager
IndentationNodeContext
IndentationNodeContextPool
IndentationTrackingWalker
MultipleTokenIndenter
Rule
RuleDescriptor
RuleOperation
RuleOperationContext
Rules
RulesBucket
RulesBucketConstructionState
RulesMap
RulesProvider
SingleTokenIndenter
SnapshotPoint
TextEditInfo
TextSnapshot
constructor
lines
snapshot
getLineFromLineNumber
getLineFromLineNumberWorker
getLineFromPosition
getLineNumberFromPosition
getText
TextSnapshotLine
TokenSpan