Class ForStatementSyntax

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(forKeyword: ISyntaxToken, openParenToken: ISyntaxToken, variableDeclaration: VariableDeclarationSyntax, initializer: IExpressionSyntax, firstSemicolonToken: ISyntaxToken, condition: IExpressionSyntax, secondSemicolonToken: ISyntaxToken, incrementor: IExpressionSyntax, closeParenToken: ISyntaxToken, statement: IStatementSyntax, parsedInStrictMode: boolean): ForStatementSyntax

Parameters

Returns

ForStatementSyntax

Properties

public closeParenToken: ISyntaxToken

public condition: IExpressionSyntax

public firstSemicolonToken: ISyntaxToken

public forKeyword: ISyntaxToken

public incrementor: IExpressionSyntax

public initializer: IExpressionSyntax

public openParenToken: ISyntaxToken

public secondSemicolonToken: ISyntaxToken

public statement: IStatementSyntax

public variableDeclaration: VariableDeclarationSyntax

Methods

public accept(visitor: ISyntaxVisitor): any

Parameters

Returns

any

public childAt(slot: number): ISyntaxElement

Parameters

  • slot: number

Returns

ISyntaxElement

public childCount(): number

Returns

number

public collectTextElements(elements: Array<string>)

Parameters

  • elements: Array<string>

public static create(forKeyword: ISyntaxToken, openParenToken: ISyntaxToken, firstSemicolonToken: ISyntaxToken, secondSemicolonToken: ISyntaxToken, closeParenToken: ISyntaxToken, statement: IStatementSyntax): ForStatementSyntax

Parameters

Returns

ForStatementSyntax

public static create1(statement: IStatementSyntax): ForStatementSyntax

Parameters

Returns

ForStatementSyntax

public findCompleteTokenOnLeft(position: number, includeSkippedTokens?: boolean): PositionedToken

Parameters

  • position: number
  • includeSkippedTokens?: boolean optional

Returns

PositionedToken

public findToken(position: number, includeSkippedTokens?: boolean): PositionedToken

Parameters

  • position: number
  • includeSkippedTokens?: boolean optional

Returns

PositionedToken

public findTokenOnLeft(position: number, includeSkippedTokens?: boolean): PositionedToken

Parameters

  • position: number
  • includeSkippedTokens?: boolean optional

Returns

PositionedToken

public firstToken(): ISyntaxToken

Returns

ISyntaxToken

public fullText(): string

Returns

string

public fullWidth(): number

Returns

number

public hasLeadingTrivia(): boolean

Returns

boolean

public hasTrailingTrivia(): boolean

Returns

boolean

public insertChildrenInto(array: ISyntaxElement[], index: number)

Parameters

public isClassElement(): boolean

Returns

boolean

public isExpression(): boolean

Returns

boolean

public isIncrementallyUnusable(): boolean

Returns

boolean

public isIterationStatement(): boolean

Returns

boolean

public isList(): boolean

Returns

boolean

public isModuleElement(): boolean

Returns

boolean

public isNode(): boolean

Returns

boolean

public isSeparatedList(): boolean

Returns

boolean

public isStatement(): boolean

Returns

boolean

public isSwitchClause(): boolean

Returns

boolean

public isToken(): boolean

Returns

boolean

public isTypeMember(): boolean

Returns

boolean

public isTypeScriptSpecific(): boolean

Returns

boolean

public kind(): SyntaxKind

Returns

SyntaxKind

public lastToken(): ISyntaxToken

Returns

ISyntaxToken

public leadingTrivia(): ISyntaxTriviaList

Returns

ISyntaxTriviaList

public leadingTriviaWidth(): number

Returns

number

public parsedInStrictMode(): boolean

Returns

boolean

public replaceToken(token1: ISyntaxToken, token2: ISyntaxToken): SyntaxNode

Parameters

Returns

SyntaxNode

public structuralEquals(node: SyntaxNode): boolean

Parameters

Returns

boolean

public toJSON(key: any): any

Parameters

  • key: any

Returns

any

public trailingTrivia(): ISyntaxTriviaList

Returns

ISyntaxTriviaList

public trailingTriviaWidth(): number

Returns

number

public update(forKeyword: ISyntaxToken, openParenToken: ISyntaxToken, variableDeclaration: VariableDeclarationSyntax, initializer: IExpressionSyntax, firstSemicolonToken: ISyntaxToken, condition: IExpressionSyntax, secondSemicolonToken: ISyntaxToken, incrementor: IExpressionSyntax, closeParenToken: ISyntaxToken, statement: IStatementSyntax): ForStatementSyntax

Parameters

Returns

ForStatementSyntax

public width(): number

Returns

number

public withCloseParenToken(closeParenToken: ISyntaxToken): ForStatementSyntax

Parameters

Returns

ForStatementSyntax

public withCondition(condition: IExpressionSyntax): ForStatementSyntax

Parameters

Returns

ForStatementSyntax

public withFirstSemicolonToken(firstSemicolonToken: ISyntaxToken): ForStatementSyntax

Parameters

Returns

ForStatementSyntax

public withForKeyword(forKeyword: ISyntaxToken): ForStatementSyntax

Parameters

Returns

ForStatementSyntax

public withIncrementor(incrementor: IExpressionSyntax): ForStatementSyntax

Parameters

Returns

ForStatementSyntax

public withInitializer(initializer: IExpressionSyntax): ForStatementSyntax

Parameters

Returns

ForStatementSyntax

public withLeadingTrivia(trivia: ISyntaxTriviaList): ForStatementSyntax

Parameters

Returns

ForStatementSyntax

public withOpenParenToken(openParenToken: ISyntaxToken): ForStatementSyntax

Parameters

Returns

ForStatementSyntax

public withSecondSemicolonToken(secondSemicolonToken: ISyntaxToken): ForStatementSyntax

Parameters

Returns

ForStatementSyntax

public withStatement(statement: IStatementSyntax): ForStatementSyntax

Parameters

Returns

ForStatementSyntax

public withTrailingTrivia(trivia: ISyntaxTriviaList): ForStatementSyntax

Parameters

Returns

ForStatementSyntax

public withVariableDeclaration(variableDeclaration: VariableDeclarationSyntax): ForStatementSyntax

Parameters

Returns

ForStatementSyntax