🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

antlr4-c3

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

antlr4-c3 - npm Package Compare versions

Comparing version

to
2.0.1

2

out/src/SymbolTable.d.ts

@@ -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