-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement
@deprecated
in WIT (#1687)
This is intended to correspond with WebAssembly/component-model#377. Closes #1683
- Loading branch information
1 parent
62444c3
commit 368184c
Showing
19 changed files
with
248 additions
and
29 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package a:b; | ||
|
||
@deprecated | ||
interface foo {} |
5 changes: 5 additions & 0 deletions
5
crates/wit-parser/tests/ui/parse-fail/bad-deprecated1.wit.result
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
expected '(', found keyword `interface` | ||
--> tests/ui/parse-fail/bad-deprecated1.wit:4:1 | ||
| | ||
4 | interface foo {} | ||
| ^ |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package a:b; | ||
|
||
@deprecated() | ||
interface foo {} |
5 changes: 5 additions & 0 deletions
5
crates/wit-parser/tests/ui/parse-fail/bad-deprecated2.wit.result
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
expected an identifier or string, found ')' | ||
--> tests/ui/parse-fail/bad-deprecated2.wit:3:13 | ||
| | ||
3 | @deprecated() | ||
| ^ |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package a:b; | ||
|
||
@deprecated(since = 1.2.3) | ||
interface foo {} |
5 changes: 5 additions & 0 deletions
5
crates/wit-parser/tests/ui/parse-fail/bad-deprecated3.wit.result
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
expected `version`, found `since` | ||
--> tests/ui/parse-fail/bad-deprecated3.wit:3:13 | ||
| | ||
3 | @deprecated(since = 1.2.3) | ||
| ^---- |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package a:b; | ||
|
||
@deprecated(since = 1.2.3) | ||
@deprecated(since = 1.2.3) | ||
interface foo {} |
5 changes: 5 additions & 0 deletions
5
crates/wit-parser/tests/ui/parse-fail/bad-deprecated4.wit.result
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
expected `version`, found `since` | ||
--> tests/ui/parse-fail/bad-deprecated4.wit:3:13 | ||
| | ||
3 | @deprecated(since = 1.2.3) | ||
| ^---- |
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,5 +1,5 @@ | ||
expected an identifier or string, found keyword `interface` | ||
expected '(', found keyword `interface` | ||
--> tests/ui/parse-fail/bad-since1.wit:4:1 | ||
| | ||
4 | interface foo1 {} | ||
| ^-------- | ||
| ^ |
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.