Class ModuleDeclaration

Hierarchy

  • AST
    • ModuleDeclaration

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(modifiers: PullElementFlags[], name: AST, stringLiteral: StringLiteral, moduleElements: ISyntaxList2, endingToken: ASTSpan): ModuleDeclaration

Parameters

Returns

ModuleDeclaration

Properties

public _end: number

public _start: number

public _trailingTriviaWidth: number

public endingToken: ASTSpan

public modifiers: PullElementFlags[]

public moduleElements: ISyntaxList2

public name: AST

public parent: AST

public stringLiteral: StringLiteral

Methods

public end(): number

Returns

number

public fileName(): string

Returns

string

public isExpression(): boolean

Returns

boolean

public kind(): SyntaxKind

Returns

SyntaxKind

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: ModuleDeclaration, includingPosition: boolean): boolean

Parameters

Returns

boolean

public syntaxID(): number

Returns

number

public trailingTriviaWidth(): number

Returns

number

public width(): number

Returns

number