oxc/tasks/coverage/parser_misc.snap

142 lines
3.6 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 : 19/19 (100.00%)
Positive Passed: 19/19 (100.00%)
Negative Passed: 10/10 (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[
· ─
╰────
× Expected corresponding JSX closing tag for 'Apple'.
╭─[fail/oxc-3528.jsx:1:10]
1 │ let a = <Apple></Banana>;
· ───── ──────
2 │
╰────
× Expected corresponding JSX closing tag for 'Apple:Orange'.
╭─[fail/oxc-3528.jsx:3:10]
2 │
3 │ let b = <Apple:Orange></Banana>;
· ──────────── ──────
4 │
╰────
× Expected corresponding JSX closing tag for 'Apple.Orange'.
╭─[fail/oxc-3528.jsx:5:10]
4 │
5 │ let c = <Apple.Orange></Banana>;
· ──────────── ──────
╰────
× 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;
· ───
╰────