Comparing version 2.0.1 to 2.0.2
@@ -1,2 +0,2 @@ | ||
'use strict'; | ||
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
@@ -3,0 +3,0 @@ if (k2 === undefined) k2 = k; |
@@ -91,3 +91,3 @@ import { ParseTree } from "antlr4ts/tree/ParseTree"; | ||
getSymbolsOfType<T extends Symbol>(t: new (...args: any[]) => T): Promise<T[]>; | ||
getAllSymbols<T extends Symbol>(t: new (...args: any[]) => T, localOnly?: boolean): Promise<Symbol[]>; | ||
getAllSymbols<T extends Symbol>(t: new (...args: any[]) => T, localOnly?: boolean): Promise<T[]>; | ||
resolve(name: string, localOnly?: boolean): Promise<Symbol | undefined>; | ||
@@ -175,5 +175,5 @@ getTypedSymbols(localOnly?: boolean): TypedSymbol[]; | ||
addNewNamespaceFromPath(parent: ScopedSymbol | undefined, path: string, delimiter?: string): Promise<NamespaceSymbol>; | ||
getAllSymbols<T extends Symbol>(t?: new (...args: any[]) => T, localOnly?: boolean): Promise<Symbol[]>; | ||
getAllSymbols<T extends Symbol>(t: new (...args: any[]) => T, localOnly?: boolean): Promise<T[]>; | ||
symbolWithContext(context: ParseTree): Promise<Symbol | undefined>; | ||
resolve(name: string, localOnly?: boolean): Promise<Symbol | undefined>; | ||
} |
@@ -572,3 +572,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const result = yield _super.getAllSymbols.call(this, t !== null && t !== void 0 ? t : Symbol, localOnly); | ||
const result = yield _super.getAllSymbols.call(this, t, localOnly); | ||
if (!localOnly) { | ||
@@ -575,0 +575,0 @@ const dependencyResults = yield Promise.all([...this.dependencies].map((dependency) => (dependency.getAllSymbols(t, localOnly)))); |
{ | ||
"name": "antlr4-c3", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "A code completion core implementation for ANTLR4 based parsers", | ||
@@ -5,0 +5,0 @@ "main": "out/index.js", |
@@ -216,2 +216,5 @@ [![NPM](https://nodei.co/npm/antlr4-c3.png?downloads=true&downloadRank=true)](https://nodei.co/npm/antlr4-c3/) | ||
### 2.0.2 | ||
- `getAllSymbols<T>` now returns symbols of type T (instead of `Symbol`), like all other enumeration methods. | ||
### 2.0.1 | ||
@@ -218,0 +221,0 @@ - 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). |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
258
210421