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
---
source: crates/vue_oxc_toolkit/src/test.rs
expression: result
---
Program: Program {
span: Span {
start: 0,
end: 0,
},
source_text: "",
comments: Vec(
[],
),
hashbang: None,
directives: Vec(
[],
),
body: Vec(
[],
),
scope_id: Cell {
value: None,
},
source_type: SourceType {
language: JavaScript,
module_kind: Script,
variant: Standard,
},
}
Errors: [
OxcDiagnostic {
inner: OxcDiagnosticInner {
message: "Expected `,` or `)` but found `decimal`",
labels: Some(
[
LabeledSpan {
label: Some(
"`,` or `)` expected",
),
span: SourceSpan {
offset: SourceOffset(
25,
),
length: 1,
},
primary: true,
},
LabeledSpan {
label: Some(
"Opened here",
),
span: SourceSpan {
offset: SourceOffset(
22,
),
length: 1,
},
primary: false,
},
],
),
help: None,
note: None,
severity: Error,
code: OxcCode {
scope: None,
number: None,
},
url: None,
},
},
]
JS:
Node Locations: