@apexdevtools/apex-parser 5.0.0-beta.4 → 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.
Files changed (75) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/node_modules/antlr4/README.md +29 -0
  3. package/node_modules/antlr4/dist/antlr4.node.cjs +2 -0
  4. package/node_modules/antlr4/dist/antlr4.node.cjs.map +1 -0
  5. package/node_modules/antlr4/dist/antlr4.node.mjs +2 -0
  6. package/node_modules/antlr4/dist/antlr4.node.mjs.map +1 -0
  7. package/node_modules/antlr4/dist/antlr4.web.cjs +2 -0
  8. package/node_modules/antlr4/dist/antlr4.web.cjs.map +1 -0
  9. package/node_modules/antlr4/dist/antlr4.web.mjs +2 -0
  10. package/node_modules/antlr4/dist/antlr4.web.mjs.map +1 -0
  11. package/node_modules/antlr4/package.json +72 -0
  12. package/node_modules/antlr4/src/antlr4/BufferedTokenStream.d.ts +8 -0
  13. package/node_modules/antlr4/src/antlr4/CharStream.d.ts +17 -0
  14. package/node_modules/antlr4/src/antlr4/CharStreams.d.ts +9 -0
  15. package/node_modules/antlr4/src/antlr4/CommonToken.d.ts +10 -0
  16. package/node_modules/antlr4/src/antlr4/CommonTokenStream.d.ts +12 -0
  17. package/node_modules/antlr4/src/antlr4/FileStream.d.ts +9 -0
  18. package/node_modules/antlr4/src/antlr4/InputStream.d.ts +4 -0
  19. package/node_modules/antlr4/src/antlr4/Lexer.d.ts +34 -0
  20. package/node_modules/antlr4/src/antlr4/Parser.d.ts +50 -0
  21. package/node_modules/antlr4/src/antlr4/Recognizer.d.ts +12 -0
  22. package/node_modules/antlr4/src/antlr4/Token.d.ts +24 -0
  23. package/node_modules/antlr4/src/antlr4/TokenSource.d.ts +3 -0
  24. package/node_modules/antlr4/src/antlr4/TokenStream.d.ts +16 -0
  25. package/node_modules/antlr4/src/antlr4/TokenStreamRewriter.d.ts +38 -0
  26. package/node_modules/antlr4/src/antlr4/atn/ATN.d.ts +17 -0
  27. package/node_modules/antlr4/src/antlr4/atn/ATNConfig.d.ts +5 -0
  28. package/node_modules/antlr4/src/antlr4/atn/ATNConfigSet.d.ts +5 -0
  29. package/node_modules/antlr4/src/antlr4/atn/ATNDeserializationOptions.d.ts +6 -0
  30. package/node_modules/antlr4/src/antlr4/atn/ATNDeserializer.d.ts +7 -0
  31. package/node_modules/antlr4/src/antlr4/atn/ATNSimulator.d.ts +3 -0
  32. package/node_modules/antlr4/src/antlr4/atn/LexerATNSimulator.d.ts +15 -0
  33. package/node_modules/antlr4/src/antlr4/atn/ParserATNSimulator.d.ts +21 -0
  34. package/node_modules/antlr4/src/antlr4/atn/PredictionContextCache.d.ts +3 -0
  35. package/node_modules/antlr4/src/antlr4/atn/PredictionMode.d.ts +5 -0
  36. package/node_modules/antlr4/src/antlr4/atn/index.d.ts +9 -0
  37. package/node_modules/antlr4/src/antlr4/context/ParserRuleContext.d.ts +23 -0
  38. package/node_modules/antlr4/src/antlr4/context/RuleContext.d.ts +10 -0
  39. package/node_modules/antlr4/src/antlr4/context/index.d.ts +3 -0
  40. package/node_modules/antlr4/src/antlr4/dfa/DFA.d.ts +5 -0
  41. package/node_modules/antlr4/src/antlr4/dfa/index.d.ts +2 -0
  42. package/node_modules/antlr4/src/antlr4/error/BailErrorStrategy.d.ts +7 -0
  43. package/node_modules/antlr4/src/antlr4/error/DefaultErrorStrategy.d.ts +24 -0
  44. package/node_modules/antlr4/src/antlr4/error/DiagnosticErrorListener.d.ts +9 -0
  45. package/node_modules/antlr4/src/antlr4/error/ErrorListener.d.ts +6 -0
  46. package/node_modules/antlr4/src/antlr4/error/ErrorStrategy.d.ts +12 -0
  47. package/node_modules/antlr4/src/antlr4/error/FailedPredicateException.d.ts +7 -0
  48. package/node_modules/antlr4/src/antlr4/error/InputMismatchException.d.ts +6 -0
  49. package/node_modules/antlr4/src/antlr4/error/NoViableAltException.d.ts +13 -0
  50. package/node_modules/antlr4/src/antlr4/error/RecognitionException.d.ts +19 -0
  51. package/node_modules/antlr4/src/antlr4/error/index.d.ts +9 -0
  52. package/node_modules/antlr4/src/antlr4/index.d.cts +21 -0
  53. package/node_modules/antlr4/src/antlr4/misc/Interval.d.ts +10 -0
  54. package/node_modules/antlr4/src/antlr4/misc/IntervalSet.d.ts +13 -0
  55. package/node_modules/antlr4/src/antlr4/misc/index.d.ts +3 -0
  56. package/node_modules/antlr4/src/antlr4/state/ATNState.d.ts +6 -0
  57. package/node_modules/antlr4/src/antlr4/state/DecisionState.d.ts +6 -0
  58. package/node_modules/antlr4/src/antlr4/state/RuleStartState.d.ts +6 -0
  59. package/node_modules/antlr4/src/antlr4/state/RuleStopState.d.ts +5 -0
  60. package/node_modules/antlr4/src/antlr4/state/index.d.ts +5 -0
  61. package/node_modules/antlr4/src/antlr4/tree/ErrorNode.d.ts +5 -0
  62. package/node_modules/antlr4/src/antlr4/tree/ParseTree.d.ts +5 -0
  63. package/node_modules/antlr4/src/antlr4/tree/ParseTreeListener.d.ts +10 -0
  64. package/node_modules/antlr4/src/antlr4/tree/ParseTreeVisitor.d.ts +16 -0
  65. package/node_modules/antlr4/src/antlr4/tree/ParseTreeWalker.d.ts +8 -0
  66. package/node_modules/antlr4/src/antlr4/tree/RuleNode.d.ts +5 -0
  67. package/node_modules/antlr4/src/antlr4/tree/SyntaxTree.d.ts +3 -0
  68. package/node_modules/antlr4/src/antlr4/tree/TerminalNode.d.ts +8 -0
  69. package/node_modules/antlr4/src/antlr4/tree/Tree.d.ts +1 -0
  70. package/node_modules/antlr4/src/antlr4/tree/index.d.ts +8 -0
  71. package/node_modules/antlr4/src/antlr4/utils/Printer.d.ts +4 -0
  72. package/node_modules/antlr4/src/antlr4/utils/arrayToString.d.ts +1 -0
  73. package/node_modules/antlr4/src/antlr4/utils/index.d.ts +4 -0
  74. package/node_modules/antlr4/src/antlr4/utils/stringToCharArray.d.ts +1 -0
  75. package/package.json +5 -2
@@ -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,10 @@
1
+ import {Token} from "../Token.js";
2
+
3
+ export declare class Interval {
4
+
5
+ start: number;
6
+ stop: number;
7
+
8
+ constructor(start: number, stop: number);
9
+ constructor(start: Token, stop: Token | undefined);
10
+ }
@@ -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,3 @@
1
+ export * from './Interval.js';
2
+ export * from './IntervalSet.js';
3
+
@@ -0,0 +1,6 @@
1
+ import {ATN} from "../atn/index.js";
2
+
3
+ export declare class ATNState {
4
+ atn: ATN;
5
+ stateNumber: number;
6
+ }
@@ -0,0 +1,6 @@
1
+ import {ATNState} from "./index.js";
2
+
3
+ export declare class DecisionState extends ATNState {
4
+ decision: number;
5
+ nonGreedy: boolean;
6
+ }
@@ -0,0 +1,6 @@
1
+ import {ATNState, RuleStopState} from "./index.js";
2
+
3
+ export declare class RuleStartState extends ATNState {
4
+ stopState: RuleStopState;
5
+ isLeftRecursiveRule: boolean;
6
+ }
@@ -0,0 +1,5 @@
1
+ import {ATNState} from "./index.js";
2
+
3
+ export declare class RuleStopState extends ATNState {
4
+
5
+ }
@@ -0,0 +1,5 @@
1
+ export * from './ATNState.js';
2
+ export * from './DecisionState.js';
3
+ export * from './RuleStartState.js';
4
+ export * from './RuleStopState.js';
5
+
@@ -0,0 +1,5 @@
1
+ import {TerminalNode} from "./TerminalNode.js";
2
+
3
+ export declare class ErrorNode extends TerminalNode {
4
+
5
+ }
@@ -0,0 +1,5 @@
1
+ import {SyntaxTree} from "./SyntaxTree.js";
2
+
3
+ export declare class ParseTree extends SyntaxTree {
4
+ getText(): string;
5
+ }
@@ -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,8 @@
1
+ import {ParseTreeListener} from "./ParseTreeListener.js";
2
+ import {ParseTree} from "./ParseTree.js";
3
+
4
+ export declare class ParseTreeWalker {
5
+ static DEFAULT: ParseTreeWalker;
6
+
7
+ walk<T extends ParseTreeListener>(listener: T, t: ParseTree): void;
8
+ }
@@ -0,0 +1,5 @@
1
+ import {ParseTree} from "./ParseTree.js";
2
+
3
+ export declare abstract class RuleNode extends ParseTree {
4
+
5
+ }
@@ -0,0 +1,3 @@
1
+ import {Tree} from "./Tree.js";
2
+
3
+ export declare class SyntaxTree extends Tree {}
@@ -0,0 +1,8 @@
1
+ import {ParserRuleContext} from "../context/index.js";
2
+ import {ParseTree} from "./ParseTree.js";
3
+ import {Token} from "../Token.js";
4
+
5
+ export declare class TerminalNode extends ParseTree {
6
+ symbol: Token;
7
+ parentCtx: ParserRuleContext;
8
+ }
@@ -0,0 +1 @@
1
+ export declare class Tree {}
@@ -0,0 +1,8 @@
1
+ export * from './RuleNode.js';
2
+ export * from './ErrorNode.js';
3
+ export * from './TerminalNode.js';
4
+ export * from './ParseTree.js';
5
+ export * from './ParseTreeListener.js';
6
+ export * from './ParseTreeVisitor.js';
7
+ export * from './ParseTreeWalker.js';
8
+
@@ -0,0 +1,4 @@
1
+ export declare abstract class Printer {
2
+ print(s: string) : void;
3
+ println(s: string) : void;
4
+ }
@@ -0,0 +1 @@
1
+ export declare function arrayToString(value: any[]) : string;
@@ -0,0 +1,4 @@
1
+ export * from "./stringToCharArray.js";
2
+ export * from "./arrayToString.js";
3
+ export * from "./Printer.js";
4
+
@@ -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.4",
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
- "postinstall": "patch-package",
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,6 +32,9 @@
32
32
  "patches",
33
33
  "CHANGELOG.md"
34
34
  ],
35
+ "bundleDependencies": [
36
+ "antlr4"
37
+ ],
35
38
  "dependencies": {
36
39
  "antlr4": "4.13.2"
37
40
  },