File tree 7 files changed +2
-12
lines changed
7 files changed +2
-12
lines changed Original file line number Diff line number Diff line change
1
+ import type { AST_NODE_TYPES } from '../ast-node-types' ;
1
2
import type { BaseNode } from './BaseNode' ;
2
3
3
4
export interface LiteralBase extends BaseNode {
5
+ type : AST_NODE_TYPES . Literal ;
4
6
raw : string ;
5
7
value : RegExp | bigint | boolean | number | string | null ;
6
8
}
Original file line number Diff line number Diff line change 1
- import type { AST_NODE_TYPES } from '../../../ast-node-types' ;
2
1
import type { LiteralBase } from '../../../base/LiteralBase' ;
3
2
4
3
export interface BigIntLiteral extends LiteralBase {
5
- type : AST_NODE_TYPES . Literal ;
6
4
value : bigint | null ;
7
5
bigint : string ;
8
6
}
Original file line number Diff line number Diff line change 1
- import type { AST_NODE_TYPES } from '../../../ast-node-types' ;
2
1
import type { LiteralBase } from '../../../base/LiteralBase' ;
3
2
4
3
export interface BooleanLiteral extends LiteralBase {
5
- type : AST_NODE_TYPES . Literal ;
6
4
value : boolean ;
7
5
raw : 'false' | 'true' ;
8
6
}
Original file line number Diff line number Diff line change 1
- import type { AST_NODE_TYPES } from '../../../ast-node-types' ;
2
1
import type { LiteralBase } from '../../../base/LiteralBase' ;
3
2
4
3
export interface NullLiteral extends LiteralBase {
5
- type : AST_NODE_TYPES . Literal ;
6
4
value : null ;
7
5
raw : 'null' ;
8
6
}
Original file line number Diff line number Diff line change 1
- import type { AST_NODE_TYPES } from '../../../ast-node-types' ;
2
1
import type { LiteralBase } from '../../../base/LiteralBase' ;
3
2
4
3
export interface NumberLiteral extends LiteralBase {
5
- type : AST_NODE_TYPES . Literal ;
6
4
value : number ;
7
5
}
Original file line number Diff line number Diff line change 1
- import type { AST_NODE_TYPES } from '../../../ast-node-types' ;
2
1
import type { LiteralBase } from '../../../base/LiteralBase' ;
3
2
4
3
export interface RegExpLiteral extends LiteralBase {
5
- type : AST_NODE_TYPES . Literal ;
6
4
value : RegExp | null ;
7
5
regex : {
8
6
pattern : string ;
Original file line number Diff line number Diff line change 1
- import type { AST_NODE_TYPES } from '../../../ast-node-types' ;
2
1
import type { LiteralBase } from '../../../base/LiteralBase' ;
3
2
4
3
export interface StringLiteral extends LiteralBase {
5
- type : AST_NODE_TYPES . Literal ;
6
4
value : string ;
7
5
}
You can’t perform that action at this time.
0 commit comments