Class LanguageServiceCompiler

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(host: ILanguageServiceHost): LanguageServiceCompiler

Parameters

Returns

LanguageServiceCompiler

Properties

private compiler: any

private host: any

private hostCache: any

private logger: any

Methods

public canEmitDeclarations(fileName: string): boolean

Parameters

  • fileName: string

Returns

boolean

public cleanupSemanticCache()

public compilationSettings(): ImmutableCompilationSettings

Returns

ImmutableCompilationSettings

public emit(fileName: string, resolvePath: (path: string) => string): EmitOutput

Parameters

  • fileName: string
  • resolvePath: (path: string) => string

Returns

EmitOutput

public emitDeclarations(fileName: string, resolvePath: (path: string) => string): EmitOutput

Parameters

  • fileName: string
  • resolvePath: (path: string) => string

Returns

EmitOutput

public fileNames(): Array<string>

Returns

Array<string>

public getCachedHostFileName(fileName: string): string

Parameters

  • fileName: string

Returns

string

public getCachedTopLevelDeclaration(fileName: string): PullDecl

Parameters

  • fileName: string

Returns

PullDecl

public getCallInformationFromAST(ast: AST, document: Document): PullCallSymbolInfo

Parameters

Returns

PullCallSymbolInfo

public getCompilerOptionsDiagnostics(resolvePath: (path: string) => string): Diagnostic[]

Parameters

  • resolvePath: (path: string) => string

Returns

Diagnostic[]

public getContextualMembersFromAST(ast: AST, document: Document): PullVisibleSymbolsInfo

Parameters

Returns

PullVisibleSymbolsInfo

public getDeclForAST(ast: AST): PullDecl

Parameters

Returns

PullDecl

public getDocument(fileName: string): Document

Parameters

  • fileName: string

Returns

Document

public getScriptSnapshot(fileName: string): IScriptSnapshot

Parameters

  • fileName: string

Returns

IScriptSnapshot

public getSemanticDiagnostics(fileName: string): Diagnostic[]

Parameters

  • fileName: string

Returns

Diagnostic[]

public getSymbolInformationFromAST(ast: AST, document: Document): PullSymbolInfo

Parameters

Returns

PullSymbolInfo

public getSyntacticDiagnostics(fileName: string): Diagnostic[]

Parameters

  • fileName: string

Returns

Diagnostic[]

public getVisibleDeclsFromAST(ast: AST, document: Document): PullDecl[]

Parameters

Returns

PullDecl[]

public getVisibleMemberSymbolsFromAST(ast: AST, document: Document): PullVisibleSymbolsInfo

Parameters

Returns

PullVisibleSymbolsInfo

public pullGetDeclInformation(decl: PullDecl, ast: AST, document: Document): PullSymbolInfo

Parameters

Returns

PullSymbolInfo

private synchronizeHostData(): any

Returns

any

private synchronizeHostDataWorker(): any

Returns

any

public topLevelDeclaration(fileName: string): PullDecl

Parameters

  • fileName: string

Returns

PullDecl

private tryUpdateFile(compiler: any, fileName: any): any

Parameters

  • compiler: any
  • fileName: any

Returns

any