Class Document

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(_compiler: TypeScriptCompiler, _semanticInfoChain: SemanticInfoChain, fileName: string, referencedFiles: Array<string>, _scriptSnapshot: IScriptSnapshot, byteOrderMark: ByteOrderMark, version: number, isOpen: boolean, _syntaxTree: SyntaxTree, _topLevelDecl: PullDecl): Document

Parameters

Returns

Document

Properties

private _amdDependencies: any

private _astDeclMap: any

private _bloomFilter: any

private _compiler: any

private _declASTMap: any

private _diagnostics: any

private _externalModuleIndicatorSpan: any

private _lineMap: any

private _scriptSnapshot: any

private _semanticInfoChain: any

private _sourceUnit: any

private _syntaxTree: any

private _topLevelDecl: any

public byteOrderMark: ByteOrderMark

public fileName: string

public isOpen: boolean

public referencedFiles: Array<string>

public version: number

Methods

public _getASTForDecl(decl: PullDecl): AST

Parameters

Returns

AST

public _getDeclForAST(ast: AST): PullDecl

Parameters

Returns

PullDecl

public _setASTForDecl(decl: PullDecl, ast: AST)

Parameters

public _setDeclForAST(ast: AST, decl: PullDecl)

Parameters

public amdDependencies(): Array<string>

Returns

Array<string>

public bloomFilter(): BloomFilter

Returns

BloomFilter

private cacheSyntaxTreeInfo(syntaxTree: any): any

Parameters

  • syntaxTree: any

Returns

any

public static create(compiler: TypeScriptCompiler, semanticInfoChain: SemanticInfoChain, fileName: string, scriptSnapshot: IScriptSnapshot, byteOrderMark: ByteOrderMark, version: number, isOpen: boolean, referencedFiles: Array<string>): Document

Parameters

Returns

Document

public diagnostics(): Diagnostic[]

Returns

Diagnostic[]

public emitToOwnOutputFile(): boolean

Returns

boolean

public externalModuleIndicatorSpan(): TextSpan

Returns

TextSpan

private getAmdDependency(comment: any): any

Parameters

  • comment: any

Returns

any

public getEnclosingDecl(ast: AST): PullDecl

Parameters

Returns

PullDecl

private getImplicitImportSpan(sourceUnitLeadingTrivia: any): any

Parameters

  • sourceUnitLeadingTrivia: any

Returns

any

private getImplicitImportSpanWorker(trivia: any, position: any): any

Parameters

  • trivia: any
  • position: any

Returns

any

private getTopLevelImportOrExportSpan(node: any): any

Parameters

  • node: any

Returns

any

public invalidate()

public isDeclareFile(): boolean

Returns

boolean

public isExternalModule(): boolean

Returns

boolean

public lineMap(): LineMap

Returns

LineMap

public sourceUnit(): SourceUnit

Returns

SourceUnit

public syntaxTree(): SyntaxTree

Returns

SyntaxTree

public topLevelDecl(): PullDecl

Returns

PullDecl

public update(scriptSnapshot: IScriptSnapshot, version: number, isOpen: boolean, textChangeRange: TextChangeRange): Document

Parameters

Returns

Document