-
-
Notifications
You must be signed in to change notification settings - Fork 484
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up Export SymbolFlag and store declaration AST in Symbol
- Loading branch information
1 parent
4580798
commit 9906467
Showing
9 changed files
with
178 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 9 additions & 19 deletions
28
...c/snapshots/isolated_declaration.snap.new → ...r/src/snapshots/isolated_declaration.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,59 @@ | ||
--- | ||
source: crates/oxc_linter/src/tester.rs | ||
assertion_line: 67 | ||
expression: isolated_declaration | ||
--- | ||
|
||
⚠ | ||
⚠ isolated-declaration: Requires type annotation on parameters of non-private method | ||
╭─[isolated_declaration.tsx:1:1] | ||
1 │ export function foo(a) { return a; } | ||
· ─ | ||
╰──── | ||
help: | ||
|
||
⚠ | ||
⚠ isolated-declaration: Requires return type annotation of non-private method | ||
╭─[isolated_declaration.tsx:1:1] | ||
1 │ export function foo(a) { return a; } | ||
· ───────────────────────────── | ||
╰──── | ||
help: | ||
|
||
⚠ | ||
⚠ isolated-declaration: Requires type annotation on non-private property definition | ||
╭─[isolated_declaration.tsx:1:1] | ||
1 │ export class A { public a; } | ||
· ───────── | ||
╰──── | ||
help: | ||
|
||
⚠ | ||
⚠ isolated-declaration: Requires return type annotation of non-private method | ||
╭─[isolated_declaration.tsx:1:1] | ||
1 │ export class A { foo() { return 0; } } | ||
· ──────────────── | ||
╰──── | ||
help: | ||
|
||
⚠ | ||
⚠ isolated-declaration: Requires return type annotation of non-private method | ||
╭─[isolated_declaration.tsx:1:1] | ||
1 │ export abstract class A { abstract foo() { return 0; } } | ||
· ──────────────── | ||
╰──── | ||
help: | ||
|
||
⚠ | ||
⚠ isolated-declaration: Requires type annotation on non-private property definition | ||
╭─[isolated_declaration.tsx:1:1] | ||
1 │ export abstract class A { abstract a; } | ||
· ─────────── | ||
╰──── | ||
help: | ||
|
||
⚠ | ||
⚠ isolated-declaration: Requires return type annotation of non-private method | ||
╭─[isolated_declaration.tsx:1:1] | ||
1 │ export class A { get foo() { return 0; } } | ||
· ──────────────── | ||
╰──── | ||
help: | ||
|
||
⚠ | ||
⚠ isolated-declaration: Requires type annotation on parameters of non-private method | ||
╭─[isolated_declaration.tsx:1:1] | ||
1 │ export class A { set foo(val) { } } | ||
· ─── | ||
╰──── | ||
help: | ||
|
||
⚠ | ||
⚠ isolated-declaration: Requires return type annotation of non-private method | ||
╭─[isolated_declaration.tsx:1:1] | ||
1 │ export class A { set foo(val) { } } | ||
· ───────── | ||
╰──── | ||
help: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.