Class SyntaxIndenter

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(indentFirstToken: boolean, indentationAmount: number, options: FormattingOptions): SyntaxIndenter

Parameters

Returns

SyntaxIndenter

Properties

private indentationAmount: any

private indentationTrivia: any

private lastTriviaWasNewLine: any

private options: any

Methods

private indentMultiLineComment(trivia: any, indentThisTrivia: any, result: any): any

Parameters

  • trivia: any
  • indentThisTrivia: any
  • result: any

Returns

any

public static indentNode(node: ISyntaxNode, indentFirstToken: boolean, indentAmount: number, options: FormattingOptions): SyntaxNode

Parameters

Returns

SyntaxNode

public static indentNodes(nodes: SyntaxNode[], indentFirstToken: boolean, indentAmount: number, options: FormattingOptions): SyntaxNode[]

Parameters

Returns

SyntaxNode[]

private indentSegment(segment: any): any

Parameters

  • segment: any

Returns

any

private indentSingleLineOrSkippedText(trivia: any, indentThisTrivia: any, result: any): any

Parameters

  • trivia: any
  • indentThisTrivia: any
  • result: any

Returns

any

public indentTriviaList(triviaList: ISyntaxTriviaList): ISyntaxTriviaList

Parameters

Returns

ISyntaxTriviaList

private indentWhitespace(trivia: any, indentThisTrivia: any, result: any): any

Parameters

  • trivia: any
  • indentThisTrivia: any
  • result: any

Returns

any

public visitArgumentList(node: ArgumentListSyntax): any

Parameters

Returns

any

public visitArrayLiteralExpression(node: ArrayLiteralExpressionSyntax): any

Parameters

Returns

any

public visitArrayType(node: ArrayTypeSyntax): any

Parameters

Returns

any

public visitBinaryExpression(node: BinaryExpressionSyntax): any

Parameters

Returns

any

public visitBlock(node: BlockSyntax): any

Parameters

Returns

any

public visitBreakStatement(node: BreakStatementSyntax): any

Parameters

Returns

any

public visitCallSignature(node: CallSignatureSyntax): any

Parameters

Returns

any

public visitCaseSwitchClause(node: CaseSwitchClauseSyntax): any

Parameters

Returns

any

public visitCastExpression(node: CastExpressionSyntax): any

Parameters

Returns

any

public visitCatchClause(node: CatchClauseSyntax): any

Parameters

Returns

any

public visitClassDeclaration(node: ClassDeclarationSyntax): any

Parameters

Returns

any

public visitConditionalExpression(node: ConditionalExpressionSyntax): any

Parameters

Returns

any

public visitConstraint(node: ConstraintSyntax): any

Parameters

Returns

any

public visitConstructSignature(node: ConstructSignatureSyntax): any

Parameters

Returns

any

public visitConstructorDeclaration(node: ConstructorDeclarationSyntax): any

Parameters

Returns

any

public visitConstructorType(node: ConstructorTypeSyntax): any

Parameters

Returns

any

public visitContinueStatement(node: ContinueStatementSyntax): any

Parameters

Returns

any

public visitDebuggerStatement(node: DebuggerStatementSyntax): any

Parameters

Returns

any

public visitDefaultSwitchClause(node: DefaultSwitchClauseSyntax): any

Parameters

Returns

any

public visitDeleteExpression(node: DeleteExpressionSyntax): any

Parameters

Returns

any

public visitDoStatement(node: DoStatementSyntax): any

Parameters

Returns

any

public visitElementAccessExpression(node: ElementAccessExpressionSyntax): any

Parameters

Returns

any

public visitElseClause(node: ElseClauseSyntax): any

Parameters

Returns

any

public visitEmptyStatement(node: EmptyStatementSyntax): any

Parameters

Returns

any

public visitEnumDeclaration(node: EnumDeclarationSyntax): any

Parameters

Returns

any

public visitEnumElement(node: EnumElementSyntax): any

Parameters

Returns

any

public visitEqualsValueClause(node: EqualsValueClauseSyntax): any

Parameters

Returns

any

public visitExportAssignment(node: ExportAssignmentSyntax): any

Parameters

Returns

any

public visitExpressionStatement(node: ExpressionStatementSyntax): any

Parameters

Returns

any

public visitExternalModuleReference(node: ExternalModuleReferenceSyntax): any

Parameters

Returns

any

public visitFinallyClause(node: FinallyClauseSyntax): any

Parameters

Returns

any

public visitForInStatement(node: ForInStatementSyntax): any

Parameters

Returns

any

public visitForStatement(node: ForStatementSyntax): any

Parameters

Returns

any

public visitFunctionDeclaration(node: FunctionDeclarationSyntax): any

Parameters

Returns

any

public visitFunctionExpression(node: FunctionExpressionSyntax): any

Parameters

Returns

any

public visitFunctionPropertyAssignment(node: FunctionPropertyAssignmentSyntax): any

Parameters

Returns

any

public visitFunctionType(node: FunctionTypeSyntax): any

Parameters

Returns

any

public visitGenericType(node: GenericTypeSyntax): any

Parameters

Returns

any

public visitGetAccessor(node: GetAccessorSyntax): any

Parameters

Returns

any

public visitHeritageClause(node: HeritageClauseSyntax): any

Parameters

Returns

any

public visitIfStatement(node: IfStatementSyntax): any

Parameters

Returns

any

public visitImportDeclaration(node: ImportDeclarationSyntax): any

Parameters

Returns

any

public visitIndexMemberDeclaration(node: IndexMemberDeclarationSyntax): any

Parameters

Returns

any

public visitIndexSignature(node: IndexSignatureSyntax): any

Parameters

Returns

any

public visitInterfaceDeclaration(node: InterfaceDeclarationSyntax): any

Parameters

Returns

any

public visitInvocationExpression(node: InvocationExpressionSyntax): any

Parameters

Returns

any

public visitLabeledStatement(node: LabeledStatementSyntax): any

Parameters

Returns

any

public visitList(list: ISyntaxList): ISyntaxList

Parameters

Returns

ISyntaxList

public visitMemberAccessExpression(node: MemberAccessExpressionSyntax): any

Parameters

Returns

any

public visitMemberFunctionDeclaration(node: MemberFunctionDeclarationSyntax): any

Parameters

Returns

any

public visitMemberVariableDeclaration(node: MemberVariableDeclarationSyntax): any

Parameters

Returns

any

public visitMethodSignature(node: MethodSignatureSyntax): any

Parameters

Returns

any

public visitModuleDeclaration(node: ModuleDeclarationSyntax): any

Parameters

Returns

any

public visitModuleNameModuleReference(node: ModuleNameModuleReferenceSyntax): any

Parameters

Returns

any

public visitNode(node: SyntaxNode): SyntaxNode

Parameters

Returns

SyntaxNode

public visitNodeOrToken(node: ISyntaxNodeOrToken): ISyntaxNodeOrToken

Parameters

Returns

ISyntaxNodeOrToken

public visitObjectCreationExpression(node: ObjectCreationExpressionSyntax): any

Parameters

Returns

any

public visitObjectLiteralExpression(node: ObjectLiteralExpressionSyntax): any

Parameters

Returns

any

public visitObjectType(node: ObjectTypeSyntax): any

Parameters

Returns

any

public visitOmittedExpression(node: OmittedExpressionSyntax): any

Parameters

Returns

any

public visitParameter(node: ParameterSyntax): any

Parameters

Returns

any

public visitParameterList(node: ParameterListSyntax): any

Parameters

Returns

any

public visitParenthesizedArrowFunctionExpression(node: ParenthesizedArrowFunctionExpressionSyntax): any

Parameters

Returns

any

public visitParenthesizedExpression(node: ParenthesizedExpressionSyntax): any

Parameters

Returns

any

public visitPostfixUnaryExpression(node: PostfixUnaryExpressionSyntax): any

Parameters

Returns

any

public visitPrefixUnaryExpression(node: PrefixUnaryExpressionSyntax): any

Parameters

Returns

any

public visitPropertySignature(node: PropertySignatureSyntax): any

Parameters

Returns

any

public visitQualifiedName(node: QualifiedNameSyntax): any

Parameters

Returns

any

public visitReturnStatement(node: ReturnStatementSyntax): any

Parameters

Returns

any

public visitSeparatedList(list: ISeparatedSyntaxList): ISeparatedSyntaxList

Parameters

Returns

ISeparatedSyntaxList

public visitSetAccessor(node: SetAccessorSyntax): any

Parameters

Returns

any

public visitSimpleArrowFunctionExpression(node: SimpleArrowFunctionExpressionSyntax): any

Parameters

Returns

any

public visitSimplePropertyAssignment(node: SimplePropertyAssignmentSyntax): any

Parameters

Returns

any

public visitSourceUnit(node: SourceUnitSyntax): any

Parameters

Returns

any

public visitSwitchStatement(node: SwitchStatementSyntax): any

Parameters

Returns

any

public visitThrowStatement(node: ThrowStatementSyntax): any

Parameters

Returns

any

public visitToken(token: ISyntaxToken): ISyntaxToken

Parameters

Returns

ISyntaxToken

public visitTryStatement(node: TryStatementSyntax): any

Parameters

Returns

any

public visitTypeAnnotation(node: TypeAnnotationSyntax): any

Parameters

Returns

any

public visitTypeArgumentList(node: TypeArgumentListSyntax): any

Parameters

Returns

any

public visitTypeOfExpression(node: TypeOfExpressionSyntax): any

Parameters

Returns

any

public visitTypeParameter(node: TypeParameterSyntax): any

Parameters

Returns

any

public visitTypeParameterList(node: TypeParameterListSyntax): any

Parameters

Returns

any

public visitTypeQuery(node: TypeQuerySyntax): any

Parameters

Returns

any

public visitVariableDeclaration(node: VariableDeclarationSyntax): any

Parameters

Returns

any

public visitVariableDeclarator(node: VariableDeclaratorSyntax): any

Parameters

Returns

any

public visitVariableStatement(node: VariableStatementSyntax): any

Parameters

Returns

any

public visitVoidExpression(node: VoidExpressionSyntax): any

Parameters

Returns

any

public visitWhileStatement(node: WhileStatementSyntax): any

Parameters

Returns

any

public visitWithStatement(node: WithStatementSyntax): any

Parameters

Returns

any