-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathnode.ts
More file actions
37 lines (31 loc) · 786 Bytes
/
Copy pathnode.ts
File metadata and controls
37 lines (31 loc) · 786 Bytes
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
import type { IfToken, SimpleNode } from '.'
export interface ProgramNode extends SimpleNode {
type: 'Program'
body: SimpleNode[]
}
export interface CodeStatement extends SimpleNode {
type: 'CodeStatement'
value: string
}
export interface IfStatement extends SimpleNode {
type: 'IfStatement'
test: string
consequent: SimpleNode[]
alternate: SimpleNode[]
kind: IfToken['type']
}
export interface DefineStatement extends SimpleNode {
type: 'DefineStatement'
kind: 'define' | 'undef'
value: string
}
export interface MessageStatement extends SimpleNode {
type: 'MessageStatement'
kind: 'error' | 'warning' | 'info'
value: string
}
export interface IncludeStatement extends SimpleNode {
type: 'IncludeStatement'
value: string
sourceFile?: string
}