Class ISyntaxList2

Hierarchy

  • AST
    • ISyntaxList2

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(_fileName: string, members: AST[]): ISyntaxList2

Parameters

  • _fileName: string
  • members: AST[]

Returns

ISyntaxList2

Properties

public _end: number

private _fileName: any

public _start: number

public _trailingTriviaWidth: number

private members: any

public parent: AST

Methods

public any(func: (v: TypeScript.AST) => boolean): boolean

Parameters

  • func: (v: TypeScript.AST) => boolean

Returns

boolean

public childAt(index: number): AST

Parameters

  • index: number

Returns

AST

public childCount(): number

Returns

number

public end(): number

Returns

number

public fileName(): string

Returns

string

public firstOrDefault(func: (v: TypeScript.AST, index: number) => boolean): AST

Parameters

  • func: (v: TypeScript.AST, index: number) => boolean

Returns

AST

public isExpression(): boolean

Returns

boolean

public kind(): SyntaxKind

Returns

SyntaxKind

public lastOrDefault(func: (v: TypeScript.AST, index: number) => boolean): AST

Parameters

  • func: (v: TypeScript.AST, index: number) => boolean

Returns

AST

public postComments(): Comment[]

Returns

Comment[]

public preComments(): Comment[]

Returns

Comment[]

public setPostComments(comments: Comment[])

Parameters

public setPreComments(comments: Comment[])

Parameters

public start(): number

Returns

number

public structuralEquals(ast: ISyntaxList2, includingPosition: boolean): boolean

Parameters

Returns

boolean

public syntaxID(): number

Returns

number

public trailingTriviaWidth(): number

Returns

number

public width(): number

Returns

number