Skip to content

Commit

Permalink
Implement parsing of new-style names
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Oct 24, 2023
1 parent 31e3db8 commit 350cc57
Show file tree
Hide file tree
Showing 7 changed files with 432 additions and 54 deletions.
6 changes: 5 additions & 1 deletion crates/wasmparser/src/validator/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3043,7 +3043,11 @@ impl ComponentNameContext {
};
match name.kind() {
// No validation necessary for these styles of names
ComponentNameKind::Label(_) | ComponentNameKind::Interface(_) => {}
ComponentNameKind::Label(_)
| ComponentNameKind::Interface(_)
| ComponentNameKind::Url(_)
| ComponentNameKind::Dependency(_)
| ComponentNameKind::Hash(_) => {}

// Constructors must return `(own $resource)` and the `$resource`
// must be named within this context to match `rname`
Expand Down
Loading

0 comments on commit 350cc57

Please sign in to comment.