@apexdevtools/apex-parser 5.0.0-beta.3 → 5.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -2
- package/node_modules/antlr4/README.md +29 -0
- package/node_modules/antlr4/dist/antlr4.node.cjs +2 -0
- package/node_modules/antlr4/dist/antlr4.node.cjs.map +1 -0
- package/node_modules/antlr4/dist/antlr4.node.mjs +2 -0
- package/node_modules/antlr4/dist/antlr4.node.mjs.map +1 -0
- package/node_modules/antlr4/dist/antlr4.web.cjs +2 -0
- package/node_modules/antlr4/dist/antlr4.web.cjs.map +1 -0
- package/node_modules/antlr4/dist/antlr4.web.mjs +2 -0
- package/node_modules/antlr4/dist/antlr4.web.mjs.map +1 -0
- package/node_modules/antlr4/package.json +72 -0
- package/node_modules/antlr4/src/antlr4/BufferedTokenStream.d.ts +8 -0
- package/node_modules/antlr4/src/antlr4/CharStream.d.ts +17 -0
- package/node_modules/antlr4/src/antlr4/CharStreams.d.ts +9 -0
- package/node_modules/antlr4/src/antlr4/CommonToken.d.ts +10 -0
- package/node_modules/antlr4/src/antlr4/CommonTokenStream.d.ts +12 -0
- package/node_modules/antlr4/src/antlr4/FileStream.d.ts +9 -0
- package/node_modules/antlr4/src/antlr4/InputStream.d.ts +4 -0
- package/node_modules/antlr4/src/antlr4/Lexer.d.ts +34 -0
- package/node_modules/antlr4/src/antlr4/Parser.d.ts +50 -0
- package/node_modules/antlr4/src/antlr4/Recognizer.d.ts +12 -0
- package/node_modules/antlr4/src/antlr4/Token.d.ts +24 -0
- package/node_modules/antlr4/src/antlr4/TokenSource.d.ts +3 -0
- package/node_modules/antlr4/src/antlr4/TokenStream.d.ts +16 -0
- package/node_modules/antlr4/src/antlr4/TokenStreamRewriter.d.ts +38 -0
- package/node_modules/antlr4/src/antlr4/atn/ATN.d.ts +17 -0
- package/node_modules/antlr4/src/antlr4/atn/ATNConfig.d.ts +5 -0
- package/node_modules/antlr4/src/antlr4/atn/ATNConfigSet.d.ts +5 -0
- package/node_modules/antlr4/src/antlr4/atn/ATNDeserializationOptions.d.ts +6 -0
- package/node_modules/antlr4/src/antlr4/atn/ATNDeserializer.d.ts +7 -0
- package/node_modules/antlr4/src/antlr4/atn/ATNSimulator.d.ts +3 -0
- package/node_modules/antlr4/src/antlr4/atn/LexerATNSimulator.d.ts +15 -0
- package/node_modules/antlr4/src/antlr4/atn/ParserATNSimulator.d.ts +21 -0
- package/node_modules/antlr4/src/antlr4/atn/PredictionContextCache.d.ts +3 -0
- package/node_modules/antlr4/src/antlr4/atn/PredictionMode.d.ts +5 -0
- package/node_modules/antlr4/src/antlr4/atn/index.d.ts +9 -0
- package/node_modules/antlr4/src/antlr4/context/ParserRuleContext.d.ts +23 -0
- package/node_modules/antlr4/src/antlr4/context/RuleContext.d.ts +10 -0
- package/node_modules/antlr4/src/antlr4/context/index.d.ts +3 -0
- package/node_modules/antlr4/src/antlr4/dfa/DFA.d.ts +5 -0
- package/node_modules/antlr4/src/antlr4/dfa/index.d.ts +2 -0
- package/node_modules/antlr4/src/antlr4/error/BailErrorStrategy.d.ts +7 -0
- package/node_modules/antlr4/src/antlr4/error/DefaultErrorStrategy.d.ts +24 -0
- package/node_modules/antlr4/src/antlr4/error/DiagnosticErrorListener.d.ts +9 -0
- package/node_modules/antlr4/src/antlr4/error/ErrorListener.d.ts +6 -0
- package/node_modules/antlr4/src/antlr4/error/ErrorStrategy.d.ts +12 -0
- package/node_modules/antlr4/src/antlr4/error/FailedPredicateException.d.ts +7 -0
- package/node_modules/antlr4/src/antlr4/error/InputMismatchException.d.ts +6 -0
- package/node_modules/antlr4/src/antlr4/error/NoViableAltException.d.ts +13 -0
- package/node_modules/antlr4/src/antlr4/error/RecognitionException.d.ts +19 -0
- package/node_modules/antlr4/src/antlr4/error/index.d.ts +9 -0
- package/node_modules/antlr4/src/antlr4/index.d.cts +21 -0
- package/node_modules/antlr4/src/antlr4/misc/Interval.d.ts +10 -0
- package/node_modules/antlr4/src/antlr4/misc/IntervalSet.d.ts +13 -0
- package/node_modules/antlr4/src/antlr4/misc/index.d.ts +3 -0
- package/node_modules/antlr4/src/antlr4/state/ATNState.d.ts +6 -0
- package/node_modules/antlr4/src/antlr4/state/DecisionState.d.ts +6 -0
- package/node_modules/antlr4/src/antlr4/state/RuleStartState.d.ts +6 -0
- package/node_modules/antlr4/src/antlr4/state/RuleStopState.d.ts +5 -0
- package/node_modules/antlr4/src/antlr4/state/index.d.ts +5 -0
- package/node_modules/antlr4/src/antlr4/tree/ErrorNode.d.ts +5 -0
- package/node_modules/antlr4/src/antlr4/tree/ParseTree.d.ts +5 -0
- package/node_modules/antlr4/src/antlr4/tree/ParseTreeListener.d.ts +10 -0
- package/node_modules/antlr4/src/antlr4/tree/ParseTreeVisitor.d.ts +16 -0
- package/node_modules/antlr4/src/antlr4/tree/ParseTreeWalker.d.ts +8 -0
- package/node_modules/antlr4/src/antlr4/tree/RuleNode.d.ts +5 -0
- package/node_modules/antlr4/src/antlr4/tree/SyntaxTree.d.ts +3 -0
- package/node_modules/antlr4/src/antlr4/tree/TerminalNode.d.ts +8 -0
- package/node_modules/antlr4/src/antlr4/tree/Tree.d.ts +1 -0
- package/node_modules/antlr4/src/antlr4/tree/index.d.ts +8 -0
- package/node_modules/antlr4/src/antlr4/utils/Printer.d.ts +4 -0
- package/node_modules/antlr4/src/antlr4/utils/arrayToString.d.ts +1 -0
- package/node_modules/antlr4/src/antlr4/utils/index.d.ts +4 -0
- package/node_modules/antlr4/src/antlr4/utils/stringToCharArray.d.ts +1 -0
- package/package.json +7 -4
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from "./InputStream.js";
|
|
2
|
+
export * from "./FileStream.js";
|
|
3
|
+
export * from "./CharStream.js";
|
|
4
|
+
export * from "./CharStreams.js";
|
|
5
|
+
export * from "./TokenStream.js";
|
|
6
|
+
export * from "./BufferedTokenStream.js";
|
|
7
|
+
export * from "./CommonToken.js";
|
|
8
|
+
export * from "./CommonTokenStream.js";
|
|
9
|
+
export * from "./Recognizer.js";
|
|
10
|
+
export * from "./Lexer.js";
|
|
11
|
+
export * from "./Parser.js";
|
|
12
|
+
export * from "./Token.js";
|
|
13
|
+
export * from "./atn/index.js";
|
|
14
|
+
export * from "./dfa/index.js";
|
|
15
|
+
export * from "./context/index.js";
|
|
16
|
+
export * from "./misc/index.js";
|
|
17
|
+
export * from "./tree/index.js";
|
|
18
|
+
export * from "./state/index.js";
|
|
19
|
+
export * from "./error/index.js";
|
|
20
|
+
export * from "./utils/index.js";
|
|
21
|
+
export * from "./TokenStreamRewriter.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {Interval} from "./Interval.js";
|
|
2
|
+
|
|
3
|
+
export declare class IntervalSet {
|
|
4
|
+
|
|
5
|
+
isNil: boolean;
|
|
6
|
+
size: number;
|
|
7
|
+
minElement: number;
|
|
8
|
+
maxElement: number;
|
|
9
|
+
intervals: Interval[];
|
|
10
|
+
|
|
11
|
+
contains(i: number): boolean;
|
|
12
|
+
toString(literalNames?: (string | null)[], symbolicNames?: string[], elemsAreChar?: boolean): string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {ParserRuleContext} from "../context/index.js";
|
|
2
|
+
import {ErrorNode} from "./ErrorNode.js";
|
|
3
|
+
import {TerminalNode} from "./TerminalNode.js";
|
|
4
|
+
|
|
5
|
+
export declare abstract class ParseTreeListener {
|
|
6
|
+
visitTerminal(node: TerminalNode) : void;
|
|
7
|
+
visitErrorNode(node: ErrorNode) : void;
|
|
8
|
+
enterEveryRule(ctx: ParserRuleContext) : void;
|
|
9
|
+
exitEveryRule(ctx: ParserRuleContext) : void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {RuleNode} from "./RuleNode.js";
|
|
2
|
+
import {ErrorNode} from "./ErrorNode.js";
|
|
3
|
+
import {TerminalNode} from "./TerminalNode.js";
|
|
4
|
+
import {ParseTree} from "./ParseTree.js";
|
|
5
|
+
|
|
6
|
+
export declare class ParseTreeVisitor<Result> {
|
|
7
|
+
|
|
8
|
+
visit(tree: ParseTree): Result;
|
|
9
|
+
|
|
10
|
+
visitChildren(node: RuleNode): Result;
|
|
11
|
+
|
|
12
|
+
visitTerminal(node: TerminalNode): Result;
|
|
13
|
+
|
|
14
|
+
visitErrorNode(node: ErrorNode): Result;
|
|
15
|
+
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare class Tree {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function arrayToString(value: any[]) : string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function stringToCharArray(str: string) : Uint16Array;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apexdevtools/apex-parser",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.5",
|
|
4
4
|
"description": "Javascript parser for Salesforce Apex Language",
|
|
5
5
|
"author": "Apex Dev Tools Team <apexdevtools@gmail.com> (https://github.com/apex-dev-tools)",
|
|
6
6
|
"bugs": "https://github.com/apex-dev-tools/apex-parser/issues",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"clean": "rm -rf dist",
|
|
22
22
|
"init": "npm ci && npm run antlr",
|
|
23
23
|
"lint": "eslint --cache --cache-location .eslintcache ./src --fix",
|
|
24
|
-
"
|
|
24
|
+
"prepare": "patch-package",
|
|
25
25
|
"prepack": "cp ../*.md .",
|
|
26
26
|
"test": "jest --config jestconfig.json",
|
|
27
27
|
"test:samples": "jest --config sys.jestconfig.json",
|
|
@@ -32,9 +32,11 @@
|
|
|
32
32
|
"patches",
|
|
33
33
|
"CHANGELOG.md"
|
|
34
34
|
],
|
|
35
|
+
"bundleDependencies": [
|
|
36
|
+
"antlr4"
|
|
37
|
+
],
|
|
35
38
|
"dependencies": {
|
|
36
|
-
"antlr4": "4.13.2"
|
|
37
|
-
"patch-package": "^8.0.0"
|
|
39
|
+
"antlr4": "4.13.2"
|
|
38
40
|
},
|
|
39
41
|
"devDependencies": {
|
|
40
42
|
"@eslint/js": "^9.33.0",
|
|
@@ -42,6 +44,7 @@
|
|
|
42
44
|
"@types/node": "^22.17.1",
|
|
43
45
|
"eslint": "^9.33.0",
|
|
44
46
|
"jest": "^30.0.5",
|
|
47
|
+
"patch-package": "^8.0.0",
|
|
45
48
|
"typescript": "^5.9.2",
|
|
46
49
|
"typescript-eslint": "^8.39.1"
|
|
47
50
|
},
|