Skip to content

Commit 350cc57

Browse files
committed
Implement parsing of new-style names
Specified in WebAssembly/component-model#263
1 parent 31e3db8 commit 350cc57

File tree

7 files changed

+432
-54
lines changed

7 files changed

+432
-54
lines changed

crates/wasmparser/src/validator/component.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -3043,7 +3043,11 @@ impl ComponentNameContext {
30433043
};
30443044
match name.kind() {
30453045
// No validation necessary for these styles of names
3046-
ComponentNameKind::Label(_) | ComponentNameKind::Interface(_) => {}
3046+
ComponentNameKind::Label(_)
3047+
| ComponentNameKind::Interface(_)
3048+
| ComponentNameKind::Url(_)
3049+
| ComponentNameKind::Dependency(_)
3050+
| ComponentNameKind::Hash(_) => {}
30473051

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

0 commit comments

Comments
 (0)