Comparing version 0.6.0-next.9 to 0.6.0-next.10
@@ -183,2 +183,3 @@ import * as ts from 'typescript'; | ||
getSymbolId(symbol: ts.Symbol): SymbolId; | ||
getSymbolAtLocation(node: ts.Node): ts.Symbol | undefined; | ||
getTypeAtLocation(node: ts.Node): ts.Type; | ||
@@ -185,0 +186,0 @@ getTypeOfSymbol(symbol: ts.Symbol, location?: ts.Node | (() => ts.Node | undefined)): ts.Type; |
@@ -21,2 +21,3 @@ import * as ts from 'typescript'; | ||
function getParent(symbol: ts.Symbol): ts.Symbol | undefined; | ||
function getTypeFromSymbolLink(symbol: ts.Symbol): ts.Type | undefined; | ||
function is(value: ts.Symbol | ts.Type): value is ts.Symbol; | ||
@@ -23,0 +24,0 @@ } |
@@ -183,2 +183,11 @@ /* -------------------------------------------------------------------------------------------- | ||
Symbol.getParent = getParent; | ||
function getTypeFromSymbolLink(symbol) { | ||
// Symbol links are merged into transient symbols. See | ||
// https://github.com/microsoft/TypeScript/blob/master/src/compiler/types.ts#L4871 | ||
if ((symbol.flags & ts.SymbolFlags.Transient) !== 0) { | ||
return symbol.type; | ||
} | ||
return undefined; | ||
} | ||
Symbol.getTypeFromSymbolLink = getTypeFromSymbolLink; | ||
function is(value) { | ||
@@ -185,0 +194,0 @@ const sc = value; |
{ | ||
"name": "lsif-tsc", | ||
"description": "Tool to create an LSIF dump for TypeScript projects.", | ||
"version": "0.6.0-next.9", | ||
"version": "0.6.0-next.10", | ||
"author": "Microsoft Corporation", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
627310
7151