aboutsummaryrefslogtreecommitdiff
path: root/src/ast/ast.js
blob: 06be333c5c7767756c284a35ff241974675fe47e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
globalThis.BunASTNode ??= class BunASTNode {
  position = -1;
};

if (!globalThis.BunAST) {
  globalThis.BunAST = {
    EArray: class EArray extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    EUnary: class EUnary extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    EBinary: class EBinary extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    EClass: class EClass extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    ENew: class ENew extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    EFunction: class EFunction extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    ECall: class ECall extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    EDot: class EDot extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    EIndex: class EIndex extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    EArrow: class EArrow extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    EIdentifier: class EIdentifier extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    EImportIdentifier: class EImportIdentifier extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    EPrivateIdentifier: class EPrivateIdentifier extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    EJsxElement: class EJsxElement extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    EObject: class EObject extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    ESpread: class ESpread extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    ETemplatePart: class ETemplatePart extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    ETemplate: class ETemplate extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    ERegExp: class ERegExp extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    EAwait: class EAwait extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    EYield: class EYield extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    EIf: class EIf extends BunASTNode {
      no = Number.MAX_SAFE_INTEGER;
      yes = Number.MAX_SAFE_INTEGER;
    },
    ERequire: class ERequire extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    EImport: class EImport extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    EBoolean: class EBoolean extends BunASTNode {
      val = false;
    },
    ENumber: class ENumber extends BunASTNode {
      val = 0;
    },
    EBigInt: class EBigInt extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    EString: class EString extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    EMissing: class EMissing extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    EThis: class EThis extends BunASTNode {},
    ESuper: class ESuper extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    ENull: class ENull extends BunASTNode {},
    EUndefined: class EUndefined extends BunASTNode {},
    ENewTarget: class ENewTarget extends BunASTNode {
      #ptr = Number.MAX_SAFE_INTEGER;
    },
    EImportMeta: class EImportMeta extends BunASTNode {},
  };
}