diff options
author | Thomas Lively <tlively@google.com> | 2024-08-07 13:45:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-07 10:45:16 -0700 |
commit | 9163e0d155a85cc57883257b8cca6fcbb22fe7b6 (patch) | |
tree | 939d58220409081be83c71a8805eb4d2b07c262b /src/parser/wat-parser.cpp | |
parent | 23a1a1aacc0dd14767ca8c53a034b7c6bb4acf52 (diff) | |
download | binaryen-9163e0d155a85cc57883257b8cca6fcbb22fe7b6.tar.gz binaryen-9163e0d155a85cc57883257b8cca6fcbb22fe7b6.tar.bz2 binaryen-9163e0d155a85cc57883257b8cca6fcbb22fe7b6.zip |
[NFC][parser] Rename deftype and subtype (#6819)
Match the current spec and clarify terminology by renaming the old
`deftype` to `rectype` and renaming the old `subtype` to `typedef`. Also
split the parser for actual `subtype` out of the parser for the newly
named `typedef`.
Diffstat (limited to 'src/parser/wat-parser.cpp')
-rw-r--r-- | src/parser/wat-parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser/wat-parser.cpp b/src/parser/wat-parser.cpp index 975cbd3c3..0a40decd5 100644 --- a/src/parser/wat-parser.cpp +++ b/src/parser/wat-parser.cpp @@ -97,7 +97,7 @@ Result<> doParseModule(Module& wasm, Lexer& input, bool allowExtra) { return decls.in.err("Unexpected tokens after module"); } - auto typeIndices = createIndexMap(decls.in, decls.subtypeDefs); + auto typeIndices = createIndexMap(decls.in, decls.typeDefs); CHECK_ERR(typeIndices); std::vector<HeapType> types; |