/
1-TSESTree-AST.shot
73 lines (66 loc) · 1.65 KB
/
1-TSESTree-AST.shot
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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`AST Fixtures declaration ExportNamedDeclaration declare-function TSESTree - AST 1`] = `
Program {
type: "Program",
body: [
ExportNamedDeclaration {
type: "ExportNamedDeclaration",
attributes: [],
declaration: TSDeclareFunction {
type: "TSDeclareFunction",
async: false,
declare: true,
expression: false,
generator: false,
id: Identifier {
type: "Identifier",
decorators: [],
name: "foo",
optional: false,
range: [24, 27],
loc: {
start: { column: 24, line: 1 },
end: { column: 27, line: 1 },
},
},
params: [],
returnType: TSTypeAnnotation {
type: "TSTypeAnnotation",
typeAnnotation: TSVoidKeyword {
type: "TSVoidKeyword",
range: [31, 35],
loc: {
start: { column: 31, line: 1 },
end: { column: 35, line: 1 },
},
},
range: [29, 35],
loc: {
start: { column: 29, line: 1 },
end: { column: 35, line: 1 },
},
},
range: [7, 36],
loc: {
start: { column: 7, line: 1 },
end: { column: 36, line: 1 },
},
},
exportKind: "type",
source: null,
specifiers: [],
range: [0, 36],
loc: {
start: { column: 0, line: 1 },
end: { column: 36, line: 1 },
},
},
],
sourceType: "module",
range: [0, 37],
loc: {
start: { column: 0, line: 1 },
end: { column: 0, line: 2 },
},
}
`;