Comparing version 2.0.0 to 2.0.1
@@ -174,5 +174,5 @@ import { ParseTree } from "antlr4ts/tree/ParseTree"; | ||
addNewNamespaceFromPath(parent: ScopedSymbol | undefined, path: string, delimiter?: string): Promise<NamespaceSymbol>; | ||
getAllSymbols(type?: typeof Symbol, localOnly?: boolean): Promise<Symbol[]>; | ||
getAllSymbols<T extends Symbol>(t?: new (...args: any[]) => T, localOnly?: boolean): Promise<Symbol[]>; | ||
symbolWithContext(context: ParseTree): Promise<Symbol | undefined>; | ||
resolve(name: string, localOnly?: boolean): Promise<Symbol | undefined>; | ||
} |
@@ -567,3 +567,3 @@ "use strict"; | ||
} | ||
getAllSymbols(type, localOnly = false) { | ||
getAllSymbols(t, localOnly = false) { | ||
const _super = Object.create(null, { | ||
@@ -573,5 +573,5 @@ getAllSymbols: { get: () => super.getAllSymbols } | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const result = yield _super.getAllSymbols.call(this, type !== null && type !== void 0 ? type : Symbol, localOnly); | ||
const result = yield _super.getAllSymbols.call(this, t !== null && t !== void 0 ? t : Symbol, localOnly); | ||
if (!localOnly) { | ||
const dependencyResults = yield Promise.all([...this.dependencies].map((dependency) => (dependency.getAllSymbols(type, localOnly)))); | ||
const dependencyResults = yield Promise.all([...this.dependencies].map((dependency) => (dependency.getAllSymbols(t, localOnly)))); | ||
dependencyResults.forEach((value) => { | ||
@@ -578,0 +578,0 @@ result.push(...value); |
{ | ||
"name": "antlr4-c3", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A code completion core implementation for ANTLR4 based parsers", | ||
@@ -5,0 +5,0 @@ "main": "out/index.js", |
@@ -216,3 +216,3 @@ [![NPM](https://nodei.co/npm/antlr4-c3.png?downloads=true&downloadRank=true)](https://nodei.co/npm/antlr4-c3/) | ||
### 2.0.0 | ||
### 2.0.1 | ||
- Breaking change: some of the methods in the symbol table implementation, which may require extra work return now promises (symbol collections and resolver methods). This allows also to override them and return asynchronous results which are constructed from external resources (like database symbols). | ||
@@ -219,0 +219,0 @@ |
Sorry, the diff of this file is not supported yet
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
210425