oxc/tasks/coverage/parser_misc.snap

120 lines
2.9 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

parser_misc Summary:
AST Parsed : 18/18 (100.00%)
Positive Passed: 18/18 (100.00%)
Negative Passed: 9/9 (100.00%)
× Unexpected token
╭─[fail/oxc-169.js:2:1]
1 │ 1<(V=82<<t-j0<(V=$<LBI<(V=ut<I<(V=$<LBI<(V=uIV=82<<t-j0<(V=$<LBI<(V=ut<I<(V=$<LBI<(V<II>
╰────
× Unexpected token
╭─[fail/oxc-1942-1.ts:2:8]
1 │ class Foo {
2 │ get x: () => {
· ─
3 │ return 5;
╰────
× Unexpected token
╭─[fail/oxc-1942-2.ts:2:8]
1 │ class Foo {
2 │ set x: (v: number) => {}
· ─
3 │ }
╰────
× A class name is required.
╭─[fail/oxc-2144.js:1:1]
1 │ class {}
· ─────
2 │ export class {}
╰────
× A class name is required.
╭─[fail/oxc-2144.js:2:8]
1 │ class {}
2 │ export class {}
· ─────
╰────
× Unexpected `?` operator
╭─[fail/oxc-2253.ts:1:8]
1 │ const a? = "A"
· ▲
2 │ const [b]? = ["B"]
╰────
× Unexpected `?` operator
╭─[fail/oxc-2253.ts:2:10]
1 │ const a? = "A"
2 │ const [b]? = ["B"]
· ▲
3 │ const { c }? = { c: "C" }
╰────
× Unexpected `?` operator
╭─[fail/oxc-2253.ts:3:12]
2 │ const [b]? = ["B"]
3 │ const { c }? = { c: "C" }
· ▲
4 │
╰────
× Unexpected `?` operator
╭─[fail/oxc-2253.ts:5:13]
4 │
5 │ const d ? = "A"
· ▲
6 │ const [e, f] ? = ["B"]
╰────
× Unexpected `?` operator
╭─[fail/oxc-2253.ts:6:19]
5 │ const d ? = "A"
6 │ const [e, f] ? = ["B"]
· ▲
7 │ const { g, h } ? = { c: "C" }
╰────
× Unexpected `?` operator
╭─[fail/oxc-2253.ts:7:22]
6 │ const [e, f] ? = ["B"]
7 │ const { g, h } ? = { c: "C" }
· ▲
╰────
× Empty parenthesized expression
╭─[fail/oxc-232.js:1:5]
1 │ x = (/* a */)
· ─────────
╰────
× Expected `with` but found `string`
╭─[fail/oxc-2394.ts:20:22]
19 │ export type LocalInterface =
20 │ & import("pkg", {"resolution-mode": "require"}).RequireInterface
· ────────┬────────
· ╰── `with` expected
21 │ & import("pkg", {"resolution-mode": "import"}).ImportInterface;
╰────
× Unexpected token
╭─[fail/oxc-3320.tsx:1:8]
1 │ m< $<{3[ $<{3[ $<{3[ m< m$<{3[ m< mm< $<{3[ $<{3[ $<{3[ m< m$<{3[ m< m$<{3[ $<{3[ m< m$<{3[
· ─
╰────
× The keyword 'let' is reserved
╭─[fail/oxc.js:1:1]
1 │ let.a = 1;
· ───
2 │ let()[a] = 1;
╰────
× The keyword 'let' is reserved
╭─[fail/oxc.js:2:1]
1 │ let.a = 1;
2 │ let()[a] = 1;
· ───
╰────