Class LanguageService

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(host: ILanguageServiceHost): LanguageService

Parameters

Returns

LanguageService

Properties

private _syntaxTreeCache: any

private activeCompletionSession: any

private compiler: any

private formattingRulesProvider: any

public host: ILanguageServiceHost

private logger: any

Methods

private _getHostFileName(fileName: any): any

Parameters

  • fileName: any

Returns

any

private _getHostSpecificDiagnosticWithFileName(diagnostic: any): any

Parameters

  • diagnostic: any

Returns

any

private addDeclaration(symbolKind: any, symbolName: any, containerKind: any, containerName: any, declaration: any, result: any): any

Parameters

  • symbolKind: any
  • symbolName: any
  • containerKind: any
  • containerName: any
  • declaration: any
  • result: any

Returns

any

private addDeclarations(symbolKind: any, symbolName: any, containerKind: any, containerName: any, declarations: any, result: any): any

Parameters

  • symbolKind: any
  • symbolName: any
  • containerKind: any
  • containerName: any
  • declarations: any
  • result: any

Returns

any

public cleanupSemanticCache()

private containErrors(diagnostics: any): any

Parameters

  • diagnostics: any

Returns

any

private findSearchValueInPullDecl(fileName: any, declarations: any, results: any, searchTerms: any, parentName?: any, parentkindName?: any): any

Parameters

  • fileName: any
  • declarations: any
  • results: any
  • searchTerms: any
  • parentName?: any optional
  • parentkindName?: any optional

Returns

any

private getAllSemanticDiagnostics(): any

Returns

any

private getAllSyntacticDiagnostics(): any

Returns

any

public getBraceMatchingAtPosition(fileName: string, position: number): TextSpan[]

Parameters

  • fileName: string
  • position: number

Returns

TextSpan[]

public getBreakpointStatementAtPosition(fileName: string, pos: number): SpanInfo

Parameters

  • fileName: string
  • pos: number

Returns

SpanInfo

public getCompilerOptionsDiagnostics(): Diagnostic[]

Returns

Diagnostic[]

private getCompletionEntriesForKeywords(keywords: any, result: any): any

Parameters

  • keywords: any
  • result: any

Returns

any

private getCompletionEntriesFromDecls(decls: any, result: any): any

Parameters

  • decls: any
  • result: any

Returns

any

private getCompletionEntriesFromSymbols(symbolInfo: any, result: any): any

Parameters

  • symbolInfo: any
  • result: any

Returns

any

public getCompletionEntryDetails(fileName: string, position: number, entryName: string): CompletionEntryDetails

Parameters

  • fileName: string
  • position: number
  • entryName: string

Returns

CompletionEntryDetails

public getCompletionsAtPosition(fileName: string, position: number, isMemberCompletion: boolean): CompletionInfo

Parameters

  • fileName: string
  • position: number
  • isMemberCompletion: boolean

Returns

CompletionInfo

public getDefinitionAtPosition(fileName: string, position: number): DefinitionInfo[]

Parameters

  • fileName: string
  • position: number

Returns

DefinitionInfo[]

public getEmitOutput(fileName: string): EmitOutput

Parameters

  • fileName: string

Returns

EmitOutput

public getFormattingEditsAfterKeystroke(fileName: string, position: number, key: string, options: FormatCodeOptions): TextEdit[]

Parameters

Returns

TextEdit[]

public getFormattingEditsForDocument(fileName: string, minChar: number, limChar: number, options: FormatCodeOptions): TextEdit[]

Parameters

Returns

TextEdit[]

public getFormattingEditsForRange(fileName: string, minChar: number, limChar: number, options: FormatCodeOptions): TextEdit[]

Parameters

Returns

TextEdit[]

public getFormattingEditsOnPaste(fileName: string, minChar: number, limChar: number, options: FormatCodeOptions): TextEdit[]

Parameters

Returns

TextEdit[]

private getFormattingManager(fileName: any, options: any): any

Parameters

  • fileName: any
  • options: any

Returns

any

private getFullNameOfSymbol(symbol: any, enclosingScopeSymbol: any): any

Parameters

  • symbol: any
  • enclosingScopeSymbol: any

Returns

any

public getImplementorsAtPosition(fileName: string, pos: number): ReferenceEntry[]

Parameters

  • fileName: string
  • pos: number

Returns

ReferenceEntry[]

private getImplementorsInFile(fileName: any, symbol: any): any

Parameters

  • fileName: any
  • symbol: any

Returns

any

public getIndentationAtPosition(fileName: string, position: number, editorOptions: EditorOptions): number

Parameters

Returns

number

private getModuleOrEnumKind(symbol: any): any

Parameters

  • symbol: any

Returns

any

public getNameOrDottedNameSpan(fileName: string, startPos: number, endPos: number): SpanInfo

Parameters

  • fileName: string
  • startPos: number
  • endPos: number

Returns

SpanInfo

public getNavigateToItems(searchValue: string): NavigateToItem[]

Parameters

  • searchValue: string

Returns

NavigateToItem[]

public getOccurrencesAtPosition(fileName: string, pos: number): ReferenceEntry[]

Parameters

  • fileName: string
  • pos: number

Returns

ReferenceEntry[]

public getOutliningRegions(fileName: string): TextSpan[]

Parameters

  • fileName: string

Returns

TextSpan[]

public getOverrides(container: PullTypeSymbol, memberSym: PullSymbol): PullTypeSymbol[]

Parameters

Returns

PullTypeSymbol[]

private getPossibleSymbolReferencePositions(fileName: any, symbolName: any): any

Parameters

  • fileName: any
  • symbolName: any

Returns

any

public getReferencesAtPosition(fileName: string, pos: number): ReferenceEntry[]

Parameters

  • fileName: string
  • pos: number

Returns

ReferenceEntry[]

private getReferencesInFile(fileName: any, symbol: any, containingASTOpt: any): any

Parameters

  • fileName: any
  • symbol: any
  • containingASTOpt: any

Returns

any

private getResolvedCompletionEntryDetailsFromSymbol(symbol: any, enclosingScopeSymbol: any): any

Parameters

  • symbol: any
  • enclosingScopeSymbol: any

Returns

any

private getScriptElementKindModifiers(symbol: any): any

Parameters

  • symbol: any

Returns

any

private getScriptElementKindModifiersFromDecl(decl: any): any

Parameters

  • decl: any

Returns

any

private getScriptElementKindModifiersFromFlags(flags: any): any

Parameters

  • flags: any

Returns

any

public getScriptLexicalStructure(fileName: string): NavigateToItem[]

Parameters

  • fileName: string

Returns

NavigateToItem[]

public getSemanticDiagnostics(fileName: string): Diagnostic[]

Parameters

  • fileName: string

Returns

Diagnostic[]

public getSignatureAtPosition(fileName: string, position: number): SignatureInfo

Parameters

  • fileName: string
  • position: number

Returns

SignatureInfo

private getSingleNodeReferenceAtPosition(fileName: any, position: any): any

Parameters

  • fileName: any
  • position: any

Returns

any

private getSymbolInfoAtPosition(fileName: any, pos: any, requireName: any): any

Parameters

  • fileName: any
  • pos: any
  • requireName: any

Returns

any

private getSymbolScopeAST(symbol: any, ast: any): any

Parameters

  • symbol: any
  • ast: any

Returns

any

public getSyntacticDiagnostics(fileName: string): Diagnostic[]

Parameters

  • fileName: string

Returns

Diagnostic[]

public getSyntaxTree(fileName: string): SyntaxTree

Parameters

  • fileName: string

Returns

SyntaxTree

public getTypeAtPosition(fileName: string, position: number): TypeInfo

Parameters

  • fileName: string
  • position: number

Returns

TypeInfo

private getTypeInfoEligiblePath(fileName: any, position: any, isConstructorValidPosition: any): any

Parameters

  • fileName: any
  • position: any
  • isConstructorValidPosition: any

Returns

any

private getTypeParameterSignatureFromPartiallyWrittenExpression(document: any, position: any, genericTypeArgumentListInfo: any): any

Parameters

  • document: any
  • position: any
  • genericTypeArgumentListInfo: any

Returns

any

private hasAnyUpperCaseCharacter(s: any): any

Parameters

  • s: any

Returns

any

private isContainerDeclaration(declaration: any): any

Parameters

  • declaration: any

Returns

any

private isLetterOrDigit(char: any): any

Parameters

  • char: any

Returns

any

private isWriteAccess(current: any): any

Parameters

  • current: any

Returns

any

private mapPullElementKind(kind: any, symbol?: any, useConstructorAsClass?: any, varIsFunction?: any, functionIsConstructor?: any): any

Parameters

  • kind: any
  • symbol?: any optional
  • useConstructorAsClass?: any optional
  • varIsFunction?: any optional
  • functionIsConstructor?: any optional

Returns

any

public refresh()

private shouldIncludeDeclarationInNavigationItems(declaration: any): any

Parameters

  • declaration: any

Returns

any

private tryAddConstructor(symbolKind: any, symbolName: any, containerKind: any, containerName: any, declarations: any, result: any): any

Parameters

  • symbolKind: any
  • symbolName: any
  • containerKind: any
  • containerName: any
  • declarations: any
  • result: any

Returns

any

private tryAddDefinition(symbolKind: any, symbolName: any, containerKind: any, containerName: any, declarations: any, result: any): any

Parameters

  • symbolKind: any
  • symbolName: any
  • containerKind: any
  • containerName: any
  • declarations: any
  • result: any

Returns

any

private tryAddSignatures(symbolKind: any, symbolName: any, containerKind: any, containerName: any, declarations: any, result: any): any

Parameters

  • symbolKind: any
  • symbolName: any
  • containerKind: any
  • containerName: any
  • declarations: any
  • result: any

Returns

any

private tryFindDeclFromPreviousCompilerVersion(invalidatedDecl: any): any

Parameters

  • invalidatedDecl: any

Returns

any