-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIT: Implement @since and @unstable annotations #1508
WIT: Implement @since and @unstable annotations #1508
Commits on May 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 85e9791 - Browse repository at this point
Copy the full SHA 85e9791View commit details -
Preserve error context when highlighting errors
Previously the entire error message was replaced, losing any attached context. This commit updates error highlighting to only augment the single error found in the chain that's being highlighted (in the most common case). This required a small refactoring of the `Error` type and changes all existing users to a method-based constructor rather than explicit struct-based construction.
Configuration menu - View commit details
-
Copy full SHA for a37b628 - Browse repository at this point
Copy the full SHA a37b628View commit details -
Add initial parsing of attributes
Nothing uses the results of parsing yet, that's going to come in a future commit.
Configuration menu - View commit details
-
Copy full SHA for 043a0a0 - Browse repository at this point
Copy the full SHA 043a0a0View commit details -
Record spans for all types in
UnresolvedPackage
Will be used for errors in a future commit.
Configuration menu - View commit details
-
Copy full SHA for 4aea177 - Browse repository at this point
Copy the full SHA 4aea177View commit details -
Push stability attributes into top-level AST
This commit pushes stability attributes through the resolution process to the next stage of AST. The top-level user-facing types in `wit-parser` now have `Stability` annotations were they can be added. This commit notably changes the `WorldItem::Interface` enum variant to contain a stability attribute in addition to the id listed.
Configuration menu - View commit details
-
Copy full SHA for 945c44a - Browse repository at this point
Copy the full SHA 945c44aView commit details -
Filter out
@unstable
items that aren't enabledThis finishes support for `@unstable` and `@since` in `Resolve` by handling all items there and specifically filtering out any disabled items.
Configuration menu - View commit details
-
Copy full SHA for 8ebbf90 - Browse repository at this point
Copy the full SHA 8ebbf90View commit details -
Configuration menu - View commit details
-
Copy full SHA for 328ea76 - Browse repository at this point
Copy the full SHA 328ea76View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b6868e - Browse repository at this point
Copy the full SHA 3b6868eView commit details -
Round-trip stability through the wasm binary format
This involved a number of refactorings and "tricks" to get this to work out. Namely when possible the old format of the custom section is still emitted to ensure older/newer tools can interoperate when possible.
Configuration menu - View commit details
-
Copy full SHA for bade98f - Browse repository at this point
Copy the full SHA bade98fView commit details -
Configuration menu - View commit details
-
Copy full SHA for cbebb66 - Browse repository at this point
Copy the full SHA cbebb66View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6bd6982 - Browse repository at this point
Copy the full SHA 6bd6982View commit details