Class SemanticInfoChain

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(compiler: TypeScriptCompiler, logger: ILogger): SemanticInfoChain

Parameters

Returns

SemanticInfoChain

Properties

private _binder: any

private _fileNames: any

private _resolver: any

private _topLevelDecls: any

public anyTypeDecl: PullDecl

public anyTypeSymbol: PullPrimitiveTypeSymbol

private astAliasSymbolMap: any

private astCallResolutionDataMap: any

private astSymbolMap: any

public booleanTypeDecl: PullDecl

public booleanTypeSymbol: PullPrimitiveTypeSymbol

private compiler: any

private declCache: any

private declSignatureSymbolMap: any

private declSymbolMap: any

private documents: any

public emptyTypeSymbol: PullTypeSymbol

private fileNameToDiagnostics: any

private fileNameToDocument: any

private logger: any

public nullTypeDecl: PullDecl

public nullTypeSymbol: PullPrimitiveTypeSymbol

public numberTypeDecl: PullDecl

public numberTypeSymbol: PullPrimitiveTypeSymbol

public stringTypeDecl: PullDecl

public stringTypeSymbol: PullPrimitiveTypeSymbol

private symbolCache: any

public undefinedTypeDecl: PullDecl

public undefinedTypeSymbol: PullPrimitiveTypeSymbol

public undefinedValueDecl: PullDecl

public undefinedValueSymbol: PullSymbol

public voidTypeDecl: PullDecl

public voidTypeSymbol: PullPrimitiveTypeSymbol

Methods

public addDiagnostic(diagnostic: Diagnostic)

Parameters

public addDiagnosticFromAST(ast: AST, diagnosticKey: string, _arguments?: Array<any>, additionalLocations?: Location[])

Parameters

  • ast: AST
  • diagnosticKey: string
  • _arguments?: Array<any> optional
  • additionalLocations?: Location[] optional

public addDocument(document: Document)

Parameters

public addDuplicateIdentifierDiagnosticFromAST(ast: AST, identifier: string, additionalLocationAST: AST)

Parameters

  • ast: AST
  • identifier: string
  • additionalLocationAST: AST

private addPrimitiveTypeSymbol(decl: any): any

Parameters

  • decl: any

Returns

any

private addPrimitiveValueSymbol(decl: any, type: any): any

Parameters

  • decl: any
  • type: any

Returns

any

public addSyntheticIndexSignature(containingDecl: PullDecl, containingSymbol: PullTypeSymbol, ast: AST, indexParamName: string, indexParamType: PullTypeSymbol, returnType: PullTypeSymbol)

Parameters

private bindPrimitiveSymbol(decl: any, newSymbol: any): any

Parameters

  • decl: any
  • newSymbol: any

Returns

any

public cacheGlobalSymbol(symbol: PullSymbol, kind: PullElementKind)

Parameters

public diagnosticFromAST(ast: AST, diagnosticKey: string, _arguments?: Array<any>, additionalLocations?: Location[]): Diagnostic

Parameters

  • ast: AST
  • diagnosticKey: string
  • _arguments?: Array<any> optional
  • additionalLocations?: Location[] optional

Returns

Diagnostic

public duplicateIdentifierDiagnosticFromAST(ast: AST, identifier: string, additionalLocationAST: AST): Diagnostic

Parameters

  • ast: AST
  • identifier: string
  • additionalLocationAST: AST

Returns

Diagnostic

public fileNames(): Array<string>

Returns

Array<string>

public findAmbientExternalModuleInGlobalContext(id: string): PullContainerSymbol

Parameters

  • id: string

Returns

PullContainerSymbol

public findDecls(declPath: Array<string>, declKind: PullElementKind): PullDecl[]

Parameters

Returns

PullDecl[]

public findDeclsFromPath(declPath: PullDecl[], declKind: PullElementKind): PullDecl[]

Parameters

Returns

PullDecl[]

public findExternalModule(id: string): PullContainerSymbol

Parameters

  • id: string

Returns

PullContainerSymbol

public findSymbol(declPath: Array<string>, declType: PullElementKind): PullSymbol

Parameters

Returns

PullSymbol

public findTopLevelSymbol(name: string, kind: PullElementKind, doNotGoPastThisDecl: PullDecl): PullSymbol

Parameters

Returns

PullSymbol

private findTopLevelSymbolInDecl(topLevelDecl: any, name: any, kind: any, doNotGoPastThisDecl: any): any

Parameters

  • topLevelDecl: any
  • name: any
  • kind: any
  • doNotGoPastThisDecl: any

Returns

any

public getASTForDecl(decl: PullDecl): AST

Parameters

Returns

AST

public getAliasSymbolForAST(ast: AST): PullTypeAliasSymbol

Parameters

Returns

PullTypeAliasSymbol

public getBinder(): PullSymbolBinder

Returns

PullSymbolBinder

public getCallResolutionDataForAST(ast: AST): PullAdditionalCallResolutionData

Parameters

Returns

PullAdditionalCallResolutionData

public getDeclForAST(ast: AST): PullDecl

Parameters

Returns

PullDecl

private getDeclPathCacheID(declPath: any, declKind: any): any

Parameters

  • declPath: any
  • declKind: any

Returns

any

public getDiagnostics(fileName: string): Diagnostic[]

Parameters

  • fileName: string

Returns

Diagnostic[]

public getDocument(fileName: string): Document

Parameters

  • fileName: string

Returns

Document

public getEnclosingDecl(ast: AST): PullDecl

Parameters

Returns

PullDecl

public getResolver(): PullTypeResolver

Returns

PullTypeResolver

public getSignatureSymbolForDecl(decl: PullDecl): PullSignatureSymbol

Parameters

Returns

PullSignatureSymbol

public getSymbolForAST(ast: AST): PullSymbol

Parameters

Returns

PullSymbol

public getSymbolForDecl(decl: PullDecl): PullSymbol

Parameters

Returns

PullSymbol

public invalidate(oldSettings?: ImmutableCompilationSettings, newSettings?: ImmutableCompilationSettings)

Parameters

public lineMap(fileName: string): LineMap

Parameters

  • fileName: string

Returns

LineMap

public locationFromAST(ast: AST): Location

Parameters

Returns

Location

public removeDocument(fileName: string)

Parameters

  • fileName: string

private resetGlobalSymbols(): any

Returns

any

public setASTForDecl(decl: PullDecl, ast: AST)

Parameters

public setAliasSymbolForAST(ast: AST, symbol: PullTypeAliasSymbol)

Parameters

public setCallResolutionDataForAST(ast: AST, callResolutionData: PullAdditionalCallResolutionData)

Parameters

public setDeclForAST(ast: AST, decl: PullDecl)

Parameters

public setSignatureSymbolForDecl(decl: PullDecl, signatureSymbol: PullSignatureSymbol)

Parameters

public setSymbolForAST(ast: AST, symbol: PullSymbol)

Parameters

public setSymbolForDecl(decl: PullDecl, symbol: PullSymbol)

Parameters

private settingsChangeAffectsSyntax(before: any, after: any): any

Parameters

  • before: any
  • after: any

Returns

any

public topLevelDecl(fileName: string): PullDecl

Parameters

  • fileName: string

Returns

PullDecl

public topLevelDecls(): PullDecl[]

Returns

PullDecl[]