Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
TypeScript
Services
Formatting
FormattingContext
Class FormattingContext
Index
Constructor methods
constructor
Properties
contextNode
contextNodeAllOnSameLine
contextNodeBlockIsOnOneLine
currentTokenParent
currentTokenSpan
formattingRequestKind
nextNodeAllOnSameLine
nextNodeBlockIsOnOneLine
nextTokenParent
nextTokenSpan
snapshot
tokensAreOnSameLine
Methods
BlockIsOnOneLine
ContextNodeAllOnSameLine
ContextNodeBlockIsOnOneLine
NextNodeAllOnSameLine
NextNodeBlockIsOnOneLine
NodeIsOnOneLine
TokensAreOnSameLine
updateContext
Constructor methods
constructor
(
snapshot
:
ITextSnapshot
, formattingRequestKind
:
FormattingRequestKind
)
:
FormattingContext
Parameters
snapshot:
ITextSnapshot
formattingRequestKind:
FormattingRequestKind
Returns
FormattingContext
Properties
public
contextNode
:
IndentationNodeContext
private
contextNodeAllOnSameLine
:
any
private
contextNodeBlockIsOnOneLine
:
any
public
currentTokenParent
:
IndentationNodeContext
public
currentTokenSpan
:
TokenSpan
public
formattingRequestKind
:
FormattingRequestKind
private
nextNodeAllOnSameLine
:
any
private
nextNodeBlockIsOnOneLine
:
any
public
nextTokenParent
:
IndentationNodeContext
public
nextTokenSpan
:
TokenSpan
private
snapshot
:
any
private
tokensAreOnSameLine
:
any
Methods
public
BlockIsOnOneLine
(
node
:
IndentationNodeContext
)
:
boolean
Parameters
node:
IndentationNodeContext
Returns
boolean
public
ContextNodeAllOnSameLine
(
)
:
boolean
Returns
boolean
public
ContextNodeBlockIsOnOneLine
(
)
:
boolean
Returns
boolean
public
NextNodeAllOnSameLine
(
)
:
boolean
Returns
boolean
public
NextNodeBlockIsOnOneLine
(
)
:
boolean
Returns
boolean
public
NodeIsOnOneLine
(
node
:
IndentationNodeContext
)
:
boolean
Parameters
node:
IndentationNodeContext
Returns
boolean
public
TokensAreOnSameLine
(
)
:
boolean
Returns
boolean
public
updateContext
(
currentTokenSpan
:
TokenSpan
, currentTokenParent
:
IndentationNodeContext
, nextTokenSpan
:
TokenSpan
, nextTokenParent
:
IndentationNodeContext
, commonParent
:
IndentationNodeContext
)
Parameters
currentTokenSpan:
TokenSpan
currentTokenParent:
IndentationNodeContext
nextTokenSpan:
TokenSpan
nextTokenParent:
IndentationNodeContext
commonParent:
IndentationNodeContext
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
constructor
contextNode
contextNodeAllOnSameLine
contextNodeBlockIsOnOneLine
currentTokenParent
currentTokenSpan
formattingRequestKind
nextNodeAllOnSameLine
nextNodeBlockIsOnOneLine
nextTokenParent
nextTokenSpan
snapshot
tokensAreOnSameLine
BlockIsOnOneLine
ContextNodeAllOnSameLine
ContextNodeBlockIsOnOneLine
NextNodeAllOnSameLine
NextNodeBlockIsOnOneLine
NodeIsOnOneLine
TokensAreOnSameLine
updateContext
FormattingManager
IndentationNodeContext
IndentationNodeContextPool
IndentationTrackingWalker
MultipleTokenIndenter
Rule
RuleDescriptor
RuleOperation
RuleOperationContext
Rules
RulesBucket
RulesBucketConstructionState
RulesMap
RulesProvider
SingleTokenIndenter
SnapshotPoint
TextEditInfo
TextSnapshot
TextSnapshotLine
TokenSpan