Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
TypeScript
Services
Formatting
SingleTokenIndenter
Class SingleTokenIndenter
Hierarchy
IndentationTrackingWalker
SingleTokenIndenter
Index
Constructor methods
constructor
Properties
indentationAmount
indentationPosition
options
Methods
forceIndentNextToken
forceSkipIndentingNextToken
getIndentationAmount
indentToken
indentationNodeContextPool
parent
position
snapshot
textSpan
visitArgumentList
visitArrayLiteralExpression
visitArrayType
visitBinaryExpression
visitBlock
visitBreakStatement
visitCallSignature
visitCaseSwitchClause
visitCastExpression
visitCatchClause
visitClassDeclaration
visitConditionalExpression
visitConstraint
visitConstructSignature
visitConstructorDeclaration
visitConstructorType
visitContinueStatement
visitDebuggerStatement
visitDefaultSwitchClause
visitDeleteExpression
visitDoStatement
visitElementAccessExpression
visitElseClause
visitEmptyStatement
visitEnumDeclaration
visitEnumElement
visitEqualsValueClause
visitExportAssignment
visitExpressionStatement
visitExternalModuleReference
visitFinallyClause
visitForInStatement
visitForStatement
visitFunctionDeclaration
visitFunctionExpression
visitFunctionPropertyAssignment
visitFunctionType
visitGenericType
visitGetAccessor
visitHeritageClause
visitIfStatement
visitImportDeclaration
visitIndexMemberDeclaration
visitIndexSignature
visitInterfaceDeclaration
visitInvocationExpression
visitLabeledStatement
visitList
visitMemberAccessExpression
visitMemberFunctionDeclaration
visitMemberVariableDeclaration
visitMethodSignature
visitModuleDeclaration
visitModuleNameModuleReference
visitNode
visitNodeOrToken
visitObjectCreationExpression
visitObjectLiteralExpression
visitObjectType
visitOmittedExpression
visitOptionalNode
visitOptionalNodeOrToken
visitParameter
visitParameterList
visitParenthesizedArrowFunctionExpression
visitParenthesizedExpression
visitPostfixUnaryExpression
visitPrefixUnaryExpression
visitPropertySignature
visitQualifiedName
visitReturnStatement
visitSeparatedList
visitSetAccessor
visitSimpleArrowFunctionExpression
visitSimplePropertyAssignment
visitSourceUnit
visitSwitchStatement
visitThrowStatement
visitToken
visitTokenInSpan
visitTryStatement
visitTypeAnnotation
visitTypeArgumentList
visitTypeOfExpression
visitTypeParameter
visitTypeParameterList
visitTypeQuery
visitVariableDeclaration
visitVariableDeclarator
visitVariableStatement
visitVoidExpression
visitWhileStatement
visitWithStatement
Constructor methods
constructor
(
indentationPosition
:
number
, sourceUnit
:
SourceUnitSyntax
, snapshot
:
ITextSnapshot
, indentFirstToken
:
boolean
, options
:
FormattingOptions
)
:
SingleTokenIndenter
Parameters
indentationPosition:
number
sourceUnit:
SourceUnitSyntax
snapshot:
ITextSnapshot
indentFirstToken:
boolean
options:
FormattingOptions
Returns
SingleTokenIndenter
Properties
private
indentationAmount
:
any
private
indentationPosition
:
any
public
options
:
FormattingOptions
Methods
public
forceIndentNextToken
(
tokenStart
:
number
)
Parameters
tokenStart:
number
public
forceSkipIndentingNextToken
(
tokenStart
:
number
)
Parameters
tokenStart:
number
public
static
getIndentationAmount
(
position
:
number
, sourceUnit
:
SourceUnitSyntax
, snapshot
:
ITextSnapshot
, options
:
FormattingOptions
)
:
number
Parameters
position:
number
sourceUnit:
SourceUnitSyntax
snapshot:
ITextSnapshot
options:
FormattingOptions
Returns
number
public
indentToken
(
token
:
ISyntaxToken
, indentationAmount
:
number
, commentIndentationAmount
:
number
)
Parameters
token:
ISyntaxToken
indentationAmount:
number
commentIndentationAmount:
number
public
indentationNodeContextPool
(
)
:
IndentationNodeContextPool
Returns
IndentationNodeContextPool
public
parent
(
)
:
IndentationNodeContext
Returns
IndentationNodeContext
public
position
(
)
:
number
Returns
number
public
snapshot
(
)
:
ITextSnapshot
Returns
ITextSnapshot
public
textSpan
(
)
:
TextSpan
Returns
TextSpan
public
visitArgumentList
(
node
:
ArgumentListSyntax
)
Parameters
node:
ArgumentListSyntax
public
visitArrayLiteralExpression
(
node
:
ArrayLiteralExpressionSyntax
)
Parameters
node:
ArrayLiteralExpressionSyntax
public
visitArrayType
(
node
:
ArrayTypeSyntax
)
Parameters
node:
ArrayTypeSyntax
public
visitBinaryExpression
(
node
:
BinaryExpressionSyntax
)
Parameters
node:
BinaryExpressionSyntax
public
visitBlock
(
node
:
BlockSyntax
)
Parameters
node:
BlockSyntax
public
visitBreakStatement
(
node
:
BreakStatementSyntax
)
Parameters
node:
BreakStatementSyntax
public
visitCallSignature
(
node
:
CallSignatureSyntax
)
Parameters
node:
CallSignatureSyntax
public
visitCaseSwitchClause
(
node
:
CaseSwitchClauseSyntax
)
Parameters
node:
CaseSwitchClauseSyntax
public
visitCastExpression
(
node
:
CastExpressionSyntax
)
Parameters
node:
CastExpressionSyntax
public
visitCatchClause
(
node
:
CatchClauseSyntax
)
Parameters
node:
CatchClauseSyntax
public
visitClassDeclaration
(
node
:
ClassDeclarationSyntax
)
Parameters
node:
ClassDeclarationSyntax
public
visitConditionalExpression
(
node
:
ConditionalExpressionSyntax
)
Parameters
node:
ConditionalExpressionSyntax
public
visitConstraint
(
node
:
ConstraintSyntax
)
Parameters
node:
ConstraintSyntax
public
visitConstructSignature
(
node
:
ConstructSignatureSyntax
)
Parameters
node:
ConstructSignatureSyntax
public
visitConstructorDeclaration
(
node
:
ConstructorDeclarationSyntax
)
Parameters
node:
ConstructorDeclarationSyntax
public
visitConstructorType
(
node
:
ConstructorTypeSyntax
)
Parameters
node:
ConstructorTypeSyntax
public
visitContinueStatement
(
node
:
ContinueStatementSyntax
)
Parameters
node:
ContinueStatementSyntax
public
visitDebuggerStatement
(
node
:
DebuggerStatementSyntax
)
Parameters
node:
DebuggerStatementSyntax
public
visitDefaultSwitchClause
(
node
:
DefaultSwitchClauseSyntax
)
Parameters
node:
DefaultSwitchClauseSyntax
public
visitDeleteExpression
(
node
:
DeleteExpressionSyntax
)
Parameters
node:
DeleteExpressionSyntax
public
visitDoStatement
(
node
:
DoStatementSyntax
)
Parameters
node:
DoStatementSyntax
public
visitElementAccessExpression
(
node
:
ElementAccessExpressionSyntax
)
Parameters
node:
ElementAccessExpressionSyntax
public
visitElseClause
(
node
:
ElseClauseSyntax
)
Parameters
node:
ElseClauseSyntax
public
visitEmptyStatement
(
node
:
EmptyStatementSyntax
)
Parameters
node:
EmptyStatementSyntax
public
visitEnumDeclaration
(
node
:
EnumDeclarationSyntax
)
Parameters
node:
EnumDeclarationSyntax
public
visitEnumElement
(
node
:
EnumElementSyntax
)
Parameters
node:
EnumElementSyntax
public
visitEqualsValueClause
(
node
:
EqualsValueClauseSyntax
)
Parameters
node:
EqualsValueClauseSyntax
public
visitExportAssignment
(
node
:
ExportAssignmentSyntax
)
Parameters
node:
ExportAssignmentSyntax
public
visitExpressionStatement
(
node
:
ExpressionStatementSyntax
)
Parameters
node:
ExpressionStatementSyntax
public
visitExternalModuleReference
(
node
:
ExternalModuleReferenceSyntax
)
Parameters
node:
ExternalModuleReferenceSyntax
public
visitFinallyClause
(
node
:
FinallyClauseSyntax
)
Parameters
node:
FinallyClauseSyntax
public
visitForInStatement
(
node
:
ForInStatementSyntax
)
Parameters
node:
ForInStatementSyntax
public
visitForStatement
(
node
:
ForStatementSyntax
)
Parameters
node:
ForStatementSyntax
public
visitFunctionDeclaration
(
node
:
FunctionDeclarationSyntax
)
Parameters
node:
FunctionDeclarationSyntax
public
visitFunctionExpression
(
node
:
FunctionExpressionSyntax
)
Parameters
node:
FunctionExpressionSyntax
public
visitFunctionPropertyAssignment
(
node
:
FunctionPropertyAssignmentSyntax
)
Parameters
node:
FunctionPropertyAssignmentSyntax
public
visitFunctionType
(
node
:
FunctionTypeSyntax
)
Parameters
node:
FunctionTypeSyntax
public
visitGenericType
(
node
:
GenericTypeSyntax
)
Parameters
node:
GenericTypeSyntax
public
visitGetAccessor
(
node
:
GetAccessorSyntax
)
Parameters
node:
GetAccessorSyntax
public
visitHeritageClause
(
node
:
HeritageClauseSyntax
)
Parameters
node:
HeritageClauseSyntax
public
visitIfStatement
(
node
:
IfStatementSyntax
)
Parameters
node:
IfStatementSyntax
public
visitImportDeclaration
(
node
:
ImportDeclarationSyntax
)
Parameters
node:
ImportDeclarationSyntax
public
visitIndexMemberDeclaration
(
node
:
IndexMemberDeclarationSyntax
)
Parameters
node:
IndexMemberDeclarationSyntax
public
visitIndexSignature
(
node
:
IndexSignatureSyntax
)
Parameters
node:
IndexSignatureSyntax
public
visitInterfaceDeclaration
(
node
:
InterfaceDeclarationSyntax
)
Parameters
node:
InterfaceDeclarationSyntax
public
visitInvocationExpression
(
node
:
InvocationExpressionSyntax
)
Parameters
node:
InvocationExpressionSyntax
public
visitLabeledStatement
(
node
:
LabeledStatementSyntax
)
Parameters
node:
LabeledStatementSyntax
public
visitList
(
list
:
ISyntaxList
)
Parameters
list:
ISyntaxList
public
visitMemberAccessExpression
(
node
:
MemberAccessExpressionSyntax
)
Parameters
node:
MemberAccessExpressionSyntax
public
visitMemberFunctionDeclaration
(
node
:
MemberFunctionDeclarationSyntax
)
Parameters
node:
MemberFunctionDeclarationSyntax
public
visitMemberVariableDeclaration
(
node
:
MemberVariableDeclarationSyntax
)
Parameters
node:
MemberVariableDeclarationSyntax
public
visitMethodSignature
(
node
:
MethodSignatureSyntax
)
Parameters
node:
MethodSignatureSyntax
public
visitModuleDeclaration
(
node
:
ModuleDeclarationSyntax
)
Parameters
node:
ModuleDeclarationSyntax
public
visitModuleNameModuleReference
(
node
:
ModuleNameModuleReferenceSyntax
)
Parameters
node:
ModuleNameModuleReferenceSyntax
public
visitNode
(
node
:
SyntaxNode
)
Parameters
node:
SyntaxNode
public
visitNodeOrToken
(
nodeOrToken
:
ISyntaxNodeOrToken
)
Parameters
nodeOrToken:
ISyntaxNodeOrToken
public
visitObjectCreationExpression
(
node
:
ObjectCreationExpressionSyntax
)
Parameters
node:
ObjectCreationExpressionSyntax
public
visitObjectLiteralExpression
(
node
:
ObjectLiteralExpressionSyntax
)
Parameters
node:
ObjectLiteralExpressionSyntax
public
visitObjectType
(
node
:
ObjectTypeSyntax
)
Parameters
node:
ObjectTypeSyntax
public
visitOmittedExpression
(
node
:
OmittedExpressionSyntax
)
Parameters
node:
OmittedExpressionSyntax
public
visitOptionalNode
(
node
:
SyntaxNode
)
Parameters
node:
SyntaxNode
public
visitOptionalNodeOrToken
(
nodeOrToken
:
ISyntaxNodeOrToken
)
Parameters
nodeOrToken:
ISyntaxNodeOrToken
public
visitParameter
(
node
:
ParameterSyntax
)
Parameters
node:
ParameterSyntax
public
visitParameterList
(
node
:
ParameterListSyntax
)
Parameters
node:
ParameterListSyntax
public
visitParenthesizedArrowFunctionExpression
(
node
:
ParenthesizedArrowFunctionExpressionSyntax
)
Parameters
node:
ParenthesizedArrowFunctionExpressionSyntax
public
visitParenthesizedExpression
(
node
:
ParenthesizedExpressionSyntax
)
Parameters
node:
ParenthesizedExpressionSyntax
public
visitPostfixUnaryExpression
(
node
:
PostfixUnaryExpressionSyntax
)
Parameters
node:
PostfixUnaryExpressionSyntax
public
visitPrefixUnaryExpression
(
node
:
PrefixUnaryExpressionSyntax
)
Parameters
node:
PrefixUnaryExpressionSyntax
public
visitPropertySignature
(
node
:
PropertySignatureSyntax
)
Parameters
node:
PropertySignatureSyntax
public
visitQualifiedName
(
node
:
QualifiedNameSyntax
)
Parameters
node:
QualifiedNameSyntax
public
visitReturnStatement
(
node
:
ReturnStatementSyntax
)
Parameters
node:
ReturnStatementSyntax
public
visitSeparatedList
(
list
:
ISeparatedSyntaxList
)
Parameters
list:
ISeparatedSyntaxList
public
visitSetAccessor
(
node
:
SetAccessorSyntax
)
Parameters
node:
SetAccessorSyntax
public
visitSimpleArrowFunctionExpression
(
node
:
SimpleArrowFunctionExpressionSyntax
)
Parameters
node:
SimpleArrowFunctionExpressionSyntax
public
visitSimplePropertyAssignment
(
node
:
SimplePropertyAssignmentSyntax
)
Parameters
node:
SimplePropertyAssignmentSyntax
public
visitSourceUnit
(
node
:
SourceUnitSyntax
)
Parameters
node:
SourceUnitSyntax
public
visitSwitchStatement
(
node
:
SwitchStatementSyntax
)
Parameters
node:
SwitchStatementSyntax
public
visitThrowStatement
(
node
:
ThrowStatementSyntax
)
Parameters
node:
ThrowStatementSyntax
public
visitToken
(
token
:
ISyntaxToken
)
Parameters
token:
ISyntaxToken
public
visitTokenInSpan
(
token
:
ISyntaxToken
)
Parameters
token:
ISyntaxToken
public
visitTryStatement
(
node
:
TryStatementSyntax
)
Parameters
node:
TryStatementSyntax
public
visitTypeAnnotation
(
node
:
TypeAnnotationSyntax
)
Parameters
node:
TypeAnnotationSyntax
public
visitTypeArgumentList
(
node
:
TypeArgumentListSyntax
)
Parameters
node:
TypeArgumentListSyntax
public
visitTypeOfExpression
(
node
:
TypeOfExpressionSyntax
)
Parameters
node:
TypeOfExpressionSyntax
public
visitTypeParameter
(
node
:
TypeParameterSyntax
)
Parameters
node:
TypeParameterSyntax
public
visitTypeParameterList
(
node
:
TypeParameterListSyntax
)
Parameters
node:
TypeParameterListSyntax
public
visitTypeQuery
(
node
:
TypeQuerySyntax
)
Parameters
node:
TypeQuerySyntax
public
visitVariableDeclaration
(
node
:
VariableDeclarationSyntax
)
Parameters
node:
VariableDeclarationSyntax
public
visitVariableDeclarator
(
node
:
VariableDeclaratorSyntax
)
Parameters
node:
VariableDeclaratorSyntax
public
visitVariableStatement
(
node
:
VariableStatementSyntax
)
Parameters
node:
VariableStatementSyntax
public
visitVoidExpression
(
node
:
VoidExpressionSyntax
)
Parameters
node:
VoidExpressionSyntax
public
visitWhileStatement
(
node
:
WhileStatementSyntax
)
Parameters
node:
WhileStatementSyntax
public
visitWithStatement
(
node
:
WithStatementSyntax
)
Parameters
node:
WithStatementSyntax
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
constructor
indentationAmount
indentationPosition
options
forceIndentNextToken
forceSkipIndentingNextToken
getIndentationAmount
indentToken
indentationNodeContextPool
parent
position
snapshot
textSpan
visitArgumentList
visitArrayLiteralExpression
visitArrayType
visitBinaryExpression
visitBlock
visitBreakStatement
visitCallSignature
visitCaseSwitchClause
visitCastExpression
visitCatchClause
visitClassDeclaration
visitConditionalExpression
visitConstraint
visitConstructSignature
visitConstructorDeclaration
visitConstructorType
visitContinueStatement
visitDebuggerStatement
visitDefaultSwitchClause
visitDeleteExpression
visitDoStatement
visitElementAccessExpression
visitElseClause
visitEmptyStatement
visitEnumDeclaration
visitEnumElement
visitEqualsValueClause
visitExportAssignment
visitExpressionStatement
visitExternalModuleReference
visitFinallyClause
visitForInStatement
visitForStatement
visitFunctionDeclaration
visitFunctionExpression
visitFunctionPropertyAssignment
visitFunctionType
visitGenericType
visitGetAccessor
visitHeritageClause
visitIfStatement
visitImportDeclaration
visitIndexMemberDeclaration
visitIndexSignature
visitInterfaceDeclaration
visitInvocationExpression
visitLabeledStatement
visitList
visitMemberAccessExpression
visitMemberFunctionDeclaration
visitMemberVariableDeclaration
visitMethodSignature
visitModuleDeclaration
visitModuleNameModuleReference
visitNode
visitNodeOrToken
visitObjectCreationExpression
visitObjectLiteralExpression
visitObjectType
visitOmittedExpression
visitOptionalNode
visitOptionalNodeOrToken
visitParameter
visitParameterList
visitParenthesizedArrowFunctionExpression
visitParenthesizedExpression
visitPostfixUnaryExpression
visitPrefixUnaryExpression
visitPropertySignature
visitQualifiedName
visitReturnStatement
visitSeparatedList
visitSetAccessor
visitSimpleArrowFunctionExpression
visitSimplePropertyAssignment
visitSourceUnit
visitSwitchStatement
visitThrowStatement
visitToken
visitTokenInSpan
visitTryStatement
visitTypeAnnotation
visitTypeArgumentList
visitTypeOfExpression
visitTypeParameter
visitTypeParameterList
visitTypeQuery
visitVariableDeclaration
visitVariableDeclarator
visitVariableStatement
visitVoidExpression
visitWhileStatement
visitWithStatement
SnapshotPoint
TextEditInfo
TextSnapshot
TextSnapshotLine
TokenSpan