Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
TypeScript
LineMap
Class LineMap
Index
Constructor methods
constructor
Properties
_computeLineStarts
_lineStarts
empty
length
Methods
equals
fillLineAndCharacterFromPosition
getLineAndCharacterFromPosition
getLineNumberFromPosition
getLineStartPosition
getPosition
lineCount
lineStarts
toJSON
Constructor methods
constructor
(
_computeLineStarts
:
() => number[]
, length
:
number
)
:
LineMap
Parameters
_computeLineStarts:
() => number[]
length:
number
Returns
LineMap
Properties
private
_computeLineStarts
:
any
private
_lineStarts
:
any
public
static
empty
:
LineMap
private
length
:
any
Methods
public
equals
(
other
:
LineMap
)
:
boolean
Parameters
other:
LineMap
Returns
boolean
public
fillLineAndCharacterFromPosition
(
position
:
number
, lineAndCharacter
:
ILineAndCharacter
)
Parameters
position:
number
lineAndCharacter:
ILineAndCharacter
public
getLineAndCharacterFromPosition
(
position
:
number
)
:
LineAndCharacter
Parameters
position:
number
Returns
LineAndCharacter
public
getLineNumberFromPosition
(
position
:
number
)
:
number
Parameters
position:
number
Returns
number
public
getLineStartPosition
(
lineNumber
:
number
)
:
number
Parameters
lineNumber:
number
Returns
number
public
getPosition
(
line
:
number
, character
:
number
)
:
number
Parameters
line:
number
character:
number
Returns
number
public
lineCount
(
)
:
number
Returns
number
public
lineStarts
(
)
:
Array<number>
Returns
Array<number>
public
toJSON
(
key
:
any
)
:
{ lineStarts: number[]; length: number; }
Parameters
key:
any
Returns
{ lineStarts: number[]; length: number; }
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
DiagnosticCode
Environment
LocalizedDiagnosticMessages
astTranslationTime
compilerDirectoryExistsTime
compilerDirectoryNameTime
compilerFileExistsTime
compilerResolvePathTime
declCacheHit
declCacheMiss
declarationEmitFunctionDeclarationGetSymbolTime
declarationEmitGetAccessorFunctionTime
declarationEmitGetBaseTypeTime
declarationEmitGetBoundDeclTypeTime
declarationEmitGetImportDeclarationSymbolTime
declarationEmitGetTypeParameterSymbolTime
declarationEmitIsExternallyVisibleTime
declarationEmitIsOverloadedCallSignatureTime
declarationEmitTime
declarationEmitTypeSignatureTime
diagnosticInformationMap
emitTime
emitWriteFileTime
fileResolutionGetDefaultLibraryTime
fileResolutionIOTime
fileResolutionImportFileSearchTime
fileResolutionScanImportsTime
fileResolutionTime
ioHostCreateDirectoryStructureTime
ioHostDirectoryNameTime
ioHostResolvePathTime
ioHostWriteFileTime
nSpecializationsCreated
nSpecializedSignaturesCreated
nSpecializedTypeParameterCreated
nodeCreateBufferTime
nodeMakeDirectoryTime
nodeWriteFileSyncTime
pullSymbolID
sentinelEmptyArray
sourceCharactersCompiled
symbolCacheHit
symbolCacheMiss
syntaxDiagnosticsTime
syntaxTreeParseTime
tripleSlashReferenceRegExp
typeCheckTime
AssertionLevel
ByteOrderMark
CharacterCodes
Constants
DiagnosticCategory
EmitContainer
EmitOutputResult
GenerativeTypeClassification
GetAllMembersVisiblity
LanguageVersion
ModuleGenTarget
OutputFileType
PullElementFlags
PullElementKind
SyntaxConstants
SyntaxKind
TypeRelationshipFlags
DiagnosticInfo
IASTSpan
IArrowFunctionExpressionSyntax
IAstWalker
IBitMatrix
IBitVector
ICallExpression
IClassElementSyntax
IEnvironment
IExpressionSyntax
IFileReference
IHashTable
IIndexable
IIterationStatementSyntax
ILineAndCharacter
ILogger
IMemberDeclarationSyntax
IMemberExpressionSyntax
IModuleElementSyntax
IModuleReferenceSyntax
INameSyntax
IParameters
IPostfixExpressionSyntax
IPreProcessedFileInfo
IPrimaryExpressionSyntax
IPropertyAssignmentSyntax
IPullTypeCollection
IReferenceResolverHost
IResolvedFile
IScriptSnapshot
ISeparatedSyntaxList
ISimpleText
ISlidingWindowSource
IStatementSyntax
ISwitchClauseSyntax
ISyntaxElement
ISyntaxList
ISyntaxNode
ISyntaxNodeOrToken
ISyntaxToken
ISyntaxTrivia
ISyntaxTriviaList
ISyntaxVisitor
IText
ITextLine
ITokenInfo
ITokenInformation
ITypeMemberSyntax
ITypeSyntax
IUnaryExpressionSyntax
IndexSignatureInfo
InstantiableSymbol
Iterator
PullCallSymbolInfo
PullSymbolInfo
PullVisibleSymbolsInfo
TypeArgumentMap
AST
ASTSpan
ArgumentList
ArgumentListSyntax
ArrayLiteralExpression
ArrayLiteralExpressionSyntax
ArrayType
ArrayTypeSyntax
ArrayUtilities
AstWalkOptions
AstWalkerFactory
Base64VLQFormat
BinaryExpression
BinaryExpressionSyntax
Block
BlockSyntax
BloomFilter
BreakStatement
BreakStatementSyntax
BuiltInType
CallSignature
CallSignatureSyntax
CandidateInferenceInfo
CaseSwitchClause
CaseSwitchClauseSyntax
CastExpression
CastExpressionSyntax
CatchClause
CatchClauseSyntax
CharacterInfo
ClassDeclaration
ClassDeclarationSyntax
Comment
CompilationSettings
CompileResult
ConditionalExpression
ConditionalExpressionSyntax
Constraint
ConstraintSyntax
ConstructSignature
ConstructSignatureSyntax
ConstructorDeclaration
ConstructorDeclarationSyntax
ConstructorType
ConstructorTypeSyntax
ContextualSignatureInstantiationTypeArgumentInferenceContext
ContinueStatement
ContinueStatementSyntax
Debug
DebuggerStatement
DebuggerStatementSyntax
DeclarationEmitter
DefaultSwitchClause
DefaultSwitchClauseSyntax
DeleteExpression
DeleteExpressionSyntax
DepthLimitedWalker
Diagnostic
DoStatement
DoStatementSyntax
Document
ElementAccessExpression
ElementAccessExpressionSyntax
ElseClause
ElseClauseSyntax
EmitOptions
EmitOutput
EmitState
Emitter
EmptyStatement
EmptyStatementSyntax
EnclosingTypeWalkerState
EnumDeclaration
EnumDeclarationSyntax
EnumElement
EnumElementSyntax
EqualsValueClause
EqualsValueClauseSyntax
Errors
ExportAssignment
ExportAssignmentSyntax
ExpressionStatement
ExpressionStatementSyntax
ExternalModuleReference
ExternalModuleReferenceSyntax
FileInformation
FinallyClause
FinallyClauseSyntax
ForInStatement
ForInStatementSyntax
ForStatement
ForStatementSyntax
FunctionDeclaration
FunctionDeclarationSyntax
FunctionExpression
FunctionExpressionSyntax
FunctionPropertyAssignment
FunctionPropertyAssignmentSyntax
FunctionType
FunctionTypeSyntax
GenericType
GenericTypeSyntax
GetAccessor
GetAccessorSyntax
Hash
HeritageClause
HeritageClauseSyntax
IASTToken
ISeparatedSyntaxList2
ISyntaxList2
IdentiferNameHashTable
Identifier
IdentifierWalker
IfStatement
IfStatementSyntax
ImmutableCompilationSettings
ImportDeclaration
ImportDeclarationSyntax
Indenter
IndexMemberDeclaration
IndexMemberDeclarationSyntax
IndexSignature
IndexSignatureSyntax
InterfaceDeclaration
InterfaceDeclarationSyntax
InvocationExpression
InvocationExpressionSyntax
InvocationTypeArgumentInferenceContext
LabeledStatement
LabeledStatementSyntax
LineAndCharacter
LineMap
constructor
_computeLineStarts
_lineStarts
empty
length
equals
fillLineAndCharacterFromPosition
getLineAndCharacterFromPosition
getLineNumberFromPosition
getLineStartPosition
getPosition
lineCount
lineStarts
toJSON
LiteralExpression
Location
MathPrototype
MemberAccessExpression
MemberAccessExpressionSyntax
MemberFunctionDeclaration
MemberFunctionDeclarationSyntax
MemberName
MemberNameArray
MemberNameString
MemberVariableDeclaration
MemberVariableDeclarationSyntax
MethodSignature
MethodSignatureSyntax
ModuleDeclaration
ModuleDeclarationSyntax
ModuleNameModuleReference
ModuleNameModuleReferenceSyntax
NormalPullDecl
NullLogger
NumericLiteral
ObjectCreationExpression
ObjectCreationExpressionSyntax
ObjectLiteralExpression
ObjectLiteralExpressionSyntax
ObjectType
ObjectTypeSyntax
OmittedExpression
OmittedExpressionSyntax
OutputFile
Parameter
ParameterList
ParameterListSyntax
ParameterSyntax
ParenthesizedArrowFunctionExpression
ParenthesizedArrowFunctionExpressionSyntax
ParenthesizedExpression
ParenthesizedExpressionSyntax
ParseOptions
PositionTrackingWalker
PositionedElement
PositionedList
PositionedNode
PositionedNodeOrToken
PositionedSeparatedList
PositionedSkippedToken
PositionedToken
PostfixUnaryExpression
PostfixUnaryExpressionSyntax
PrefixUnaryExpression
PrefixUnaryExpressionSyntax
PropertySignature
PropertySignatureSyntax
PullAccessorSymbol
PullAdditionalCallResolutionData
PullAdditionalObjectLiteralResolutionData
PullContainerSymbol
PullContextualTypeContext
PullDecl
PullDeclGroup
PullEnumElementDecl
PullErrorTypeSymbol
PullFunctionExpressionDecl
PullInstantiatedSignatureSymbol
PullInstantiatedTypeParameterSymbol
PullInstantiatedTypeReferenceSymbol
PullPrimitiveTypeSymbol
PullSignatureSymbol
PullStringConstantTypeSymbol
PullSymbol
PullSymbolBinder
PullSynthesizedDecl
PullTypeAliasSymbol
PullTypeEnclosingTypeWalker
PullTypeParameterSymbol
PullTypeReferenceSymbol
PullTypeResolutionContext
PullTypeResolver
PullTypeSymbol
QualifiedName
QualifiedNameSyntax
ReferenceResolutionResult
ReferenceResolver
RegularExpressionLiteral
ReturnStatement
ReturnStatementSyntax
RootPullDecl
Scanner
ScannerUtilities
SemanticInfoChain
SetAccessor
SetAccessorSyntax
SimpleArrowFunctionExpression
SimpleArrowFunctionExpressionSyntax
SimplePropertyAssignment
SimplePropertyAssignmentSyntax
SlidingWindow
SourceMapEntry
SourceMapPosition
SourceMapper
SourceMapping
SourceUnit
SourceUnitSyntax
StringHashTable
StringLiteral
StringUtilities
SuperExpression
SwitchStatement
SwitchStatementSyntax
SyntaxDedenter
SyntaxIndenter
SyntaxInformationMap
SyntaxNode
SyntaxNodeInvariantsChecker
SyntaxRewriter
SyntaxTokenReplacer
SyntaxTree
SyntaxTreeToAstVisitor
SyntaxUtilities
SyntaxVisitor
SyntaxWalker
TextChangeRange
TextSpan
TextWriter
ThisExpression
ThrowStatement
ThrowStatementSyntax
Timer
TryStatement
TryStatementSyntax
TypeAnnotation
TypeAnnotationSyntax
TypeArgumentInferenceContext
TypeArgumentList
TypeArgumentListSyntax
TypeComparisonInfo
TypeOfExpression
TypeOfExpressionSyntax
TypeParameter
TypeParameterList
TypeParameterListSyntax
TypeParameterSyntax
TypeQuery
TypeQuerySyntax
TypeScriptCompiler
Unicode
VariableDeclaration
VariableDeclarationSyntax
VariableDeclarator
VariableDeclaratorSyntax
VariableStatement
VariableStatementSyntax
VoidExpression
VoidExpressionSyntax
WhileStatement
WhileStatementSyntax
WithStatement
WithStatementSyntax
WrapsTypeParameterCache
changePathToDTS
compareDataObjects
convertToDirectoryPath
createIntrinsicsObject
filePath
filePathComponents
getAstWalkerFactory
getDeclareFilePath
getDiagnosticMessage
getIDForTypeSubstitutions
getLastConstructor
getLocalizedText
getParseOptions
getPathComponents
getPrettyName
getPropertyAssignmentNameTextFromIdentifier
getReferencedFiles
getRelativePathToFixedPath
getRootFilePath
getTrimmedTextLines
hasFlag
hasModifier
isDTSFile
isDoubleQuoted
isQuoted
isRelative
isRooted
isSingleQuoted
isTSFile
isTypesOnlyLocation
lastParameterIsRest
newLine
normalizePath
preProcessFile
quoteStr
stripStartAndEndQuotes
structuralEqualsIncludingPosition
structuralEqualsNotIncludingPosition
switchToForwardSlashes
timeFunction
trimModName