Class SyntaxTreeCache

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(_host: ILanguageServiceHost): SyntaxTreeCache

Parameters

Returns

SyntaxTreeCache

Properties

private _currentFileName: any

private _currentFileScriptSnapshot: any

private _currentFileSyntaxTree: any

private _currentFileVersion: any

private _host: any

private _hostCache: any

Methods

private createSyntaxTree(fileName: any, scriptSnapshot: any): any

Parameters

  • fileName: any
  • scriptSnapshot: any

Returns

any

private ensureInvariants(fileName: any, editRange: any, incrementalTree: any, oldScriptSnapshot: any, newScriptSnapshot: any): any

Parameters

  • fileName: any
  • editRange: any
  • incrementalTree: any
  • oldScriptSnapshot: any
  • newScriptSnapshot: any

Returns

any

public getCurrentFileSyntaxTree(fileName: string): SyntaxTree

Parameters

  • fileName: string

Returns

SyntaxTree

private updateSyntaxTree(fileName: any, scriptSnapshot: any, previousSyntaxTree: any, previousFileVersion: any): any

Parameters

  • fileName: any
  • scriptSnapshot: any
  • previousSyntaxTree: any
  • previousFileVersion: any

Returns

any