Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
TypeScript
Services
Formatting
TokenSpan
Class TokenSpan
Hierarchy
TextSpan
TokenSpan
Index
Constructor methods
constructor
Properties
_kind
Methods
containsPosition
containsTextSpan
end
intersection
intersectsWith
intersectsWithPosition
intersectsWithTextSpan
isEmpty
kind
length
overlap
overlapsWith
start
Constructor methods
constructor
(
kind
:
SyntaxKind
, start
:
number
, length
:
number
)
:
TokenSpan
Parameters
kind:
SyntaxKind
start:
number
length:
number
Returns
TokenSpan
Properties
private
_kind
:
any
Methods
public
containsPosition
(
position
:
number
)
:
boolean
Parameters
position:
number
Returns
boolean
public
containsTextSpan
(
span
:
TextSpan
)
:
boolean
Parameters
span:
TextSpan
Returns
boolean
public
end
(
)
:
number
Returns
number
public
intersection
(
span
:
TextSpan
)
:
TextSpan
Parameters
span:
TextSpan
Returns
TextSpan
public
intersectsWith
(
start
:
number
, length
:
number
)
:
boolean
Parameters
start:
number
length:
number
Returns
boolean
public
intersectsWithPosition
(
position
:
number
)
:
boolean
Parameters
position:
number
Returns
boolean
public
intersectsWithTextSpan
(
span
:
TextSpan
)
:
boolean
Parameters
span:
TextSpan
Returns
boolean
public
isEmpty
(
)
:
boolean
Returns
boolean
public
kind
(
)
:
SyntaxKind
Returns
SyntaxKind
public
length
(
)
:
number
Returns
number
public
overlap
(
span
:
TextSpan
)
:
TextSpan
Parameters
span:
TextSpan
Returns
TextSpan
public
overlapsWith
(
span
:
TextSpan
)
:
boolean
Parameters
span:
TextSpan
Returns
boolean
public
start
(
)
:
number
Returns
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
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
TextSnapshotLine
TokenSpan
constructor
_kind
containsPosition
containsTextSpan
end
intersection
intersectsWith
intersectsWithPosition
intersectsWithTextSpan
isEmpty
kind
length
overlap
overlapsWith
start