/src/wasm-tools/crates/wast/src/lib.rs
Line | Count | Source |
1 | | //! A crate for low-level parsing of the WebAssembly text formats: WAT and WAST. |
2 | | //! |
3 | | //! This crate is intended to be a low-level detail of the `wat` crate, |
4 | | //! providing a low-level parsing API for parsing WebAssembly text format |
5 | | //! structures. The API provided by this crate is very similar to |
6 | | //! [`syn`](https://docs.rs/syn) and provides the ability to write customized |
7 | | //! parsers which may be an extension to the core WebAssembly text format. For |
8 | | //! more documentation see the [`parser`] module. |
9 | | //! |
10 | | //! # High-level Overview |
11 | | //! |
12 | | //! This crate provides a few major pieces of functionality |
13 | | //! |
14 | | //! * [`lexer`] - this is a raw lexer for the wasm text format. This is not |
15 | | //! customizable, but if you'd like to iterate over raw tokens this is the |
16 | | //! module for you. You likely won't use this much. |
17 | | //! |
18 | | //! * [`parser`] - this is the workhorse of this crate. The [`parser`] module |
19 | | //! provides the [`Parse`][] trait primarily and utilities |
20 | | //! around working with a [`Parser`](`parser::Parser`) to parse streams of |
21 | | //! tokens. |
22 | | //! |
23 | | //! * [`Module`](crate::core::Module) - this contains an Abstract Syntax Tree |
24 | | //! (AST) of the WebAssembly Text format (WAT) as well as the unofficial WAST |
25 | | //! format. This also has a [`Module::encode`](crate::core::Module::encode) |
26 | | //! method to emit a module in its binary form. |
27 | | //! |
28 | | //! # Stability and WebAssembly Features |
29 | | //! |
30 | | //! This crate provides support for many in-progress WebAssembly features such |
31 | | //! as reference types, multi-value, etc. Be sure to check out the documentation |
32 | | //! of the [`wast` crate](https://docs.rs/wast) for policy information on crate |
33 | | //! stability vs WebAssembly Features. The tl;dr; version is that this crate |
34 | | //! will issue semver-non-breaking releases which will break the parsing of the |
35 | | //! text format. This crate, unlike `wast`, is expected to have numerous Rust |
36 | | //! public API changes, all of which will be accompanied with a semver-breaking |
37 | | //! release. |
38 | | //! |
39 | | //! # Compile-time Cargo features |
40 | | //! |
41 | | //! This crate has a `wasm-module` feature which is turned on by default which |
42 | | //! includes all necessary support to parse full WebAssembly modules. If you |
43 | | //! don't need this (for example you're parsing your own s-expression format) |
44 | | //! then this feature can be disabled. |
45 | | //! |
46 | | //! This crate also has an off-by-default `dwarf` feature which enables using |
47 | | //! [`core::EncodeOptions::dwarf`] to embed DWARF debugging information in generated |
48 | | //! binaries. |
49 | | //! |
50 | | //! [`Parse`]: parser::Parse |
51 | | //! [`LexError`]: lexer::LexError |
52 | | |
53 | | #![deny(missing_docs, rustdoc::broken_intra_doc_links)] |
54 | | #![cfg_attr(docsrs, feature(doc_cfg))] |
55 | | |
56 | | /// A macro to create a custom keyword parser. |
57 | | /// |
58 | | /// This macro is invoked in one of two forms: |
59 | | /// |
60 | | /// ``` |
61 | | /// // keyword derived from the Rust identifier: |
62 | | /// wast::custom_keyword!(foo); |
63 | | /// |
64 | | /// // or an explicitly specified string representation of the keyword: |
65 | | /// wast::custom_keyword!(my_keyword = "the-wasm-keyword"); |
66 | | /// ``` |
67 | | /// |
68 | | /// This can then be used to parse custom keyword for custom items, such as: |
69 | | /// |
70 | | /// ``` |
71 | | /// use wast::parser::{Parser, Result, Parse}; |
72 | | /// |
73 | | /// struct InlineModule<'a> { |
74 | | /// inline_text: &'a str, |
75 | | /// } |
76 | | /// |
77 | | /// mod kw { |
78 | | /// wast::custom_keyword!(inline); |
79 | | /// } |
80 | | /// |
81 | | /// // Parse an inline string module of the form: |
82 | | /// // |
83 | | /// // (inline "(module (func))") |
84 | | /// impl<'a> Parse<'a> for InlineModule<'a> { |
85 | | /// fn parse(parser: Parser<'a>) -> Result<Self> { |
86 | | /// parser.parse::<kw::inline>()?; |
87 | | /// Ok(InlineModule { |
88 | | /// inline_text: parser.parse()?, |
89 | | /// }) |
90 | | /// } |
91 | | /// } |
92 | | /// ``` |
93 | | /// |
94 | | /// Note that the keyword name can only start with a lower-case letter, i.e. 'a'..'z'. |
95 | | #[macro_export] |
96 | | macro_rules! custom_keyword { |
97 | | ($name:ident) => { |
98 | | $crate::custom_keyword!($name = stringify!($name)); |
99 | | }; |
100 | | ($name:ident = $kw:expr) => { |
101 | | #[allow(non_camel_case_types)] |
102 | | #[allow(missing_docs)] |
103 | | #[derive(Debug, Copy, Clone)] |
104 | | pub struct $name(#[allow(dead_code)] pub $crate::token::Span); |
105 | | |
106 | | impl<'a> $crate::parser::Parse<'a> for $name { |
107 | 6.43M | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { |
108 | 6.43M | parser.step(|c| { |
109 | 6.43M | if let Some((kw, rest)) = c.keyword()? { |
110 | 0 | if kw == $kw { |
111 | 6.43M | return Ok(($name(c.cur_span()), rest)); |
112 | 5 | } |
113 | 2 | } |
114 | 7 | Err(c.error(concat!("expected keyword `", $kw, "`"))) |
115 | 6.43M | }) Unexecuted instantiation: <wast::kw::after as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::assert_malformed as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::assert_malformed_custom as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::before as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::binary as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::block as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::borrow as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::assert_return as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::assert_trap as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::assert_unlinkable as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::assert_suspension as wast::parser::Parse>::parse::{closure#0}<wast::kw::catch as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 21.9k | parser.step(|c| { | 109 | 21.9k | if let Some((kw, rest)) = c.keyword()? { | 110 | 21.9k | if kw == $kw { | 111 | 21.9k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 21.9k | }) |
<wast::kw::catch_ref as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 30 | parser.step(|c| { | 109 | 30 | if let Some((kw, rest)) = c.keyword()? { | 110 | 30 | if kw == $kw { | 111 | 30 | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 30 | }) |
Unexecuted instantiation: <wast::kw::contref as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::component as wast::parser::Parse>::parse::{closure#0}<wast::kw::data as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 15.0k | parser.step(|c| { | 109 | 15.0k | if let Some((kw, rest)) = c.keyword()? { | 110 | 15.0k | if kw == $kw { | 111 | 15.0k | return Ok(($name(c.cur_span()), rest)); | 112 | 5 | } | 113 | 1 | } | 114 | 6 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 15.0k | }) |
<wast::kw::declare as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 2.80k | parser.step(|c| { | 109 | 2.80k | if let Some((kw, rest)) = c.keyword()? { | 110 | 2.80k | if kw == $kw { | 111 | 2.80k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 2.80k | }) |
Unexecuted instantiation: <wast::kw::delegate as wast::parser::Parse>::parse::{closure#0}<wast::kw::catch_all as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 292k | parser.step(|c| { | 109 | 292k | if let Some((kw, rest)) = c.keyword()? { | 110 | 292k | if kw == $kw { | 111 | 292k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 292k | }) |
<wast::kw::catch_all_ref as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 666 | parser.step(|c| { | 109 | 666 | if let Some((kw, rest)) = c.keyword()? { | 110 | 666 | if kw == $kw { | 111 | 666 | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 666 | }) |
Unexecuted instantiation: <wast::kw::code as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::cont as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::descriptor as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::exact as wast::parser::Parse>::parse::{closure#0}<wast::kw::tag as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 24.8k | parser.step(|c| { | 109 | 24.8k | if let Some((kw, rest)) = c.keyword()? { | 110 | 24.8k | if kw == $kw { | 111 | 24.8k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 24.8k | }) |
<wast::kw::exn as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 21.2k | parser.step(|c| { | 109 | 21.2k | if let Some((kw, rest)) = c.keyword()? { | 110 | 21.2k | if kw == $kw { | 111 | 21.2k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 21.2k | }) |
Unexecuted instantiation: <wast::kw::exnref as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::describes as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::do as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::dtor as wast::parser::Parse>::parse::{closure#0}<wast::kw::elem as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 24.5k | parser.step(|c| { | 109 | 24.5k | if let Some((kw, rest)) = c.keyword()? { | 110 | 24.5k | if kw == $kw { | 111 | 24.5k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 24.5k | }) |
Unexecuted instantiation: <wast::kw::end as wast::parser::Parse>::parse::{closure#0}<wast::kw::export as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 58.0k | parser.step(|c| { | 109 | 58.0k | if let Some((kw, rest)) = c.keyword()? { | 110 | 58.0k | if kw == $kw { | 111 | 58.0k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 58.0k | }) |
<wast::kw::extern as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 13.2k | parser.step(|c| { | 109 | 13.2k | if let Some((kw, rest)) = c.keyword()? { | 110 | 13.2k | if kw == $kw { | 111 | 13.2k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 13.2k | }) |
Unexecuted instantiation: <wast::kw::f32x4 as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::f64 as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::f64x2 as wast::parser::Parse>::parse::{closure#0}<wast::kw::field as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 550k | parser.step(|c| { | 109 | 550k | if let Some((kw, rest)) = c.keyword()? { | 110 | 550k | if kw == $kw { | 111 | 550k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 550k | }) |
Unexecuted instantiation: <wast::kw::alias as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::externref as wast::parser::Parse>::parse::{closure#0}<wast::kw::eq as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 6.55k | parser.step(|c| { | 109 | 6.55k | if let Some((kw, rest)) = c.keyword()? { | 110 | 6.55k | if kw == $kw { | 111 | 6.55k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 6.55k | }) |
Unexecuted instantiation: <wast::kw::eqref as wast::parser::Parse>::parse::{closure#0}<wast::kw::f32 as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 4 | parser.step(|c| { | 109 | 4 | if let Some((kw, rest)) = c.keyword()? { | 110 | 4 | if kw == $kw { | 111 | 4 | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 4 | }) |
Unexecuted instantiation: <wast::kw::first as wast::parser::Parse>::parse::{closure#0}<wast::kw::func as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 314k | parser.step(|c| { | 109 | 314k | if let Some((kw, rest)) = c.keyword()? { | 110 | 314k | if kw == $kw { | 111 | 314k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 314k | }) |
Unexecuted instantiation: <wast::kw::i16x8 as wast::parser::Parse>::parse::{closure#0}<wast::kw::i31 as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 4.48k | parser.step(|c| { | 109 | 4.48k | if let Some((kw, rest)) = c.keyword()? { | 110 | 4.48k | if kw == $kw { | 111 | 4.48k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 4.48k | }) |
Unexecuted instantiation: <wast::kw::i31ref as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::i32 as wast::parser::Parse>::parse::{closure#0}<wast::kw::i32x4 as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 99.0k | parser.step(|c| { | 109 | 99.0k | if let Some((kw, rest)) = c.keyword()? { | 110 | 99.0k | if kw == $kw { | 111 | 99.0k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 99.0k | }) |
Unexecuted instantiation: <wast::kw::funcref as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::get as wast::parser::Parse>::parse::{closure#0}<wast::kw::global as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 102k | parser.step(|c| { | 109 | 102k | if let Some((kw, rest)) = c.keyword()? { | 110 | 102k | if kw == $kw { | 111 | 102k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 102k | }) |
<wast::kw::i16 as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 148k | parser.step(|c| { | 109 | 148k | if let Some((kw, rest)) = c.keyword()? { | 110 | 148k | if kw == $kw { | 111 | 148k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 148k | }) |
<wast::kw::i64 as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 32.8k | parser.step(|c| { | 109 | 32.8k | if let Some((kw, rest)) = c.keyword()? { | 110 | 32.8k | if kw == $kw { | 111 | 32.8k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 32.8k | }) |
Unexecuted instantiation: <wast::kw::instance as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::instantiate as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::interface as wast::parser::Parse>::parse::{closure#0}<wast::kw::invoke as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 3 | parser.step(|c| { | 109 | 3 | if let Some((kw, rest)) = c.keyword()? { | 110 | 2 | if kw == $kw { | 111 | 2 | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 1 | } | 114 | 1 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 3 | }) |
Unexecuted instantiation: <wast::kw::i64x2 as wast::parser::Parse>::parse::{closure#0}<wast::kw::i8 as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 437k | parser.step(|c| { | 109 | 437k | if let Some((kw, rest)) = c.keyword()? { | 110 | 437k | if kw == $kw { | 111 | 437k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 437k | }) |
Unexecuted instantiation: <wast::kw::i8x16 as wast::parser::Parse>::parse::{closure#0}<wast::kw::import as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 54.6k | parser.step(|c| { | 109 | 54.6k | if let Some((kw, rest)) = c.keyword()? { | 110 | 54.6k | if kw == $kw { | 111 | 54.6k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 54.6k | }) |
Unexecuted instantiation: <wast::kw::implements as wast::parser::Parse>::parse::{closure#0}<wast::kw::item as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 45.5k | parser.step(|c| { | 109 | 45.5k | if let Some((kw, rest)) = c.keyword()? { | 110 | 45.5k | if kw == $kw { | 111 | 45.5k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 45.5k | }) |
Unexecuted instantiation: <wast::kw::last as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::nan_arithmetic as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::nan_canonical as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::nocont as wast::parser::Parse>::parse::{closure#0}<wast::kw::nofunc as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 23.9k | parser.step(|c| { | 109 | 23.9k | if let Some((kw, rest)) = c.keyword()? { | 110 | 23.9k | if kw == $kw { | 111 | 23.9k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 23.9k | }) |
<wast::kw::local as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 25.1k | parser.step(|c| { | 109 | 25.1k | if let Some((kw, rest)) = c.keyword()? { | 110 | 25.1k | if kw == $kw { | 111 | 25.1k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 25.1k | }) |
<wast::kw::memory as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 34.9k | parser.step(|c| { | 109 | 34.9k | if let Some((kw, rest)) = c.keyword()? { | 110 | 34.9k | if kw == $kw { | 111 | 34.9k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 34.9k | }) |
<wast::kw::module as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 10.7k | parser.step(|c| { | 109 | 10.7k | if let Some((kw, rest)) = c.keyword()? { | 110 | 10.7k | if kw == $kw { | 111 | 10.7k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 10.7k | }) |
Unexecuted instantiation: <wast::kw::modulecode as wast::parser::Parse>::parse::{closure#0}<wast::kw::noextern as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 40.5k | parser.step(|c| { | 109 | 40.5k | if let Some((kw, rest)) = c.keyword()? { | 110 | 40.5k | if kw == $kw { | 111 | 40.5k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 40.5k | }) |
Unexecuted instantiation: <wast::kw::noexn as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::nullexternref as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::nullexnref as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::nullref as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::offset as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::on as wast::parser::Parse>::parse::{closure#0}<wast::kw::none as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 166k | parser.step(|c| { | 109 | 166k | if let Some((kw, rest)) = c.keyword()? { | 110 | 166k | if kw == $kw { | 111 | 166k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 166k | }) |
<wast::kw::null as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 530k | parser.step(|c| { | 109 | 530k | if let Some((kw, rest)) = c.keyword()? { | 110 | 530k | if kw == $kw { | 111 | 530k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 530k | }) |
Unexecuted instantiation: <wast::kw::nullcontref as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::nullfuncref as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::outer as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::quote as wast::parser::Parse>::parse::{closure#0}<wast::kw::else as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 2.30k | parser.step(|c| { | 109 | 2.30k | if let Some((kw, rest)) = c.keyword()? { | 110 | 2.30k | if kw == $kw { | 111 | 2.30k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 2.30k | }) |
Unexecuted instantiation: <wast::kw::if as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::loop as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::own as wast::parser::Parse>::parse::{closure#0}<wast::kw::pagesize as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 17.4k | parser.step(|c| { | 109 | 17.4k | if let Some((kw, rest)) = c.keyword()? { | 110 | 17.4k | if kw == $kw { | 111 | 17.4k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 17.4k | }) |
<wast::kw::param as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 219k | parser.step(|c| { | 109 | 219k | if let Some((kw, rest)) = c.keyword()? { | 110 | 219k | if kw == $kw { | 111 | 219k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 219k | }) |
Unexecuted instantiation: <wast::kw::parent as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::passive as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::assert_exception as wast::parser::Parse>::parse::{closure#0}<wast::kw::assert_exhaustion as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 1 | parser.step(|c| { | 109 | 1 | if let Some((kw, rest)) = c.keyword()? { | 110 | 1 | if kw == $kw { | 111 | 1 | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 1 | }) |
Unexecuted instantiation: <wast::kw::assert_invalid as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::assert_invalid_custom as wast::parser::Parse>::parse::{closure#0}<wast::kw::mut as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 621k | parser.step(|c| { | 109 | 621k | if let Some((kw, rest)) = c.keyword()? { | 110 | 621k | if kw == $kw { | 111 | 621k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 621k | }) |
<wast::kw::type as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 640k | parser.step(|c| { | 109 | 640k | if let Some((kw, rest)) = c.keyword()? { | 110 | 640k | if kw == $kw { | 111 | 640k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 640k | }) |
<wast::kw::rec as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 56.0k | parser.step(|c| { | 109 | 56.0k | if let Some((kw, rest)) = c.keyword()? { | 110 | 56.0k | if kw == $kw { | 111 | 56.0k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 56.0k | }) |
Unexecuted instantiation: <wast::kw::acq_rel as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::rep as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::resource as wast::parser::Parse>::parse::{closure#0}<wast::kw::any as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 16.8k | parser.step(|c| { | 109 | 16.8k | if let Some((kw, rest)) = c.keyword()? { | 110 | 16.8k | if kw == $kw { | 111 | 16.8k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 16.8k | }) |
<wast::kw::ref as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 538k | parser.step(|c| { | 109 | 538k | if let Some((kw, rest)) = c.keyword()? { | 110 | 538k | if kw == $kw { | 111 | 538k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 538k | }) |
Unexecuted instantiation: <wast::kw::ref_func as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::ref_null as wast::parser::Parse>::parse::{closure#0}<wast::kw::register as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 1 | parser.step(|c| { | 109 | 1 | if let Some((kw, rest)) = c.keyword()? { | 110 | 1 | if kw == $kw { | 111 | 1 | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 1 | }) |
Unexecuted instantiation: <wast::kw::resource_new as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::resource_drop as wast::parser::Parse>::parse::{closure#0}<wast::kw::start as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 230 | parser.step(|c| { | 109 | 230 | if let Some((kw, rest)) = c.keyword()? { | 110 | 230 | if kw == $kw { | 111 | 230 | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 230 | }) |
<wast::kw::sub as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 148k | parser.step(|c| { | 109 | 148k | if let Some((kw, rest)) = c.keyword()? { | 110 | 148k | if kw == $kw { | 111 | 148k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 148k | }) |
Unexecuted instantiation: <wast::kw::switch as wast::parser::Parse>::parse::{closure#0}<wast::kw::final as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 9.84k | parser.step(|c| { | 109 | 9.84k | if let Some((kw, rest)) = c.keyword()? { | 110 | 9.84k | if kw == $kw { | 111 | 9.84k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 9.84k | }) |
<wast::kw::table as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 47.2k | parser.step(|c| { | 109 | 47.2k | if let Some((kw, rest)) = c.keyword()? { | 110 | 47.2k | if kw == $kw { | 111 | 47.2k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 47.2k | }) |
Unexecuted instantiation: <wast::kw::resource_rep as wast::parser::Parse>::parse::{closure#0}<wast::kw::result as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 560k | parser.step(|c| { | 109 | 560k | if let Some((kw, rest)) = c.keyword()? { | 110 | 560k | if kw == $kw { | 111 | 560k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 560k | }) |
Unexecuted instantiation: <wast::kw::seq_cst as wast::parser::Parse>::parse::{closure#0}<wast::kw::shared as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 100k | parser.step(|c| { | 109 | 100k | if let Some((kw, rest)) = c.keyword()? { | 110 | 100k | if kw == $kw { | 111 | 100k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 100k | }) |
<wast::kw::then as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 27.1k | parser.step(|c| { | 109 | 27.1k | if let Some((kw, rest)) = c.keyword()? { | 110 | 27.1k | if kw == $kw { | 111 | 27.1k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 27.1k | }) |
Unexecuted instantiation: <wast::kw::s32 as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::s64 as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::u8 as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::u16 as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::try as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::v128 as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::value as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::s8 as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::s16 as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::u32 as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::u64 as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::bool_ as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::float32 as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::float64 as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::variant as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::char as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::case as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::record as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::string as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::flags as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::option as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::canon as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::lift as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::lower as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::enum_ as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::string_utf8 as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::tuple as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::list as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::map as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::error as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::string_utf16 as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::with as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::core as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::core_type as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::gc as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::string_latin1_utf16 as wast::parser::Parse>::parse::{closure#0}<wast::kw::struct as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 72.7k | parser.step(|c| { | 109 | 72.7k | if let Some((kw, rest)) = c.keyword()? { | 110 | 72.7k | if kw == $kw { | 111 | 72.7k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 72.7k | }) |
Unexecuted instantiation: <wast::kw::structref as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::realloc as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::post_return as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::true_ as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::false_ as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::needed as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::export_info as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::import_info as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::runtime_path as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::anyref as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::language as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::sdk as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::processed_by as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::mem_info as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::thread as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::thread_spawn_ref as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::task_return as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::task_cancel as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::subtask_drop as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::subtask_cancel as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::stream_new as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::thread_spawn_indirect as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::thread_available_parallelism as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::backpressure_inc as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::backpressure_dec as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::stream_read as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::future_new as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::future_read as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::future_write as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::future_cancel_read as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::stream_write as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::stream_cancel_read as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::stream_cancel_write as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::stream_drop_readable as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::stream_drop_writable as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::future_cancel_write as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::future_drop_readable as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::wait as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::definition as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::async as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::callback as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::future_drop_writable as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::error_context_new as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::error_context_debug_message as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::error_context_drop as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::stream as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::future as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::waitable_set_drop as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::waitable_join as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::context_get as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::context_set as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::thread_index as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::error_context as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::waitable_set_new as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::waitable_set_wait as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::waitable_set_poll as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::thread_new_indirect as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::thread_suspend_then_promote as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::thread_yield_then_promote as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::cancellable as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::versionsuffix as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::thread_resume_later as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::thread_suspend as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::thread_yield as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::thread_suspend_then_resume as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::thread_yield_then_resume as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::external_id as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::kw::arg as wast::parser::Parse>::parse::{closure#0}<wast::kw::array as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 108 | 251k | parser.step(|c| { | 109 | 251k | if let Some((kw, rest)) = c.keyword()? { | 110 | 251k | if kw == $kw { | 111 | 251k | return Ok(($name(c.cur_span()), rest)); | 112 | 0 | } | 113 | 0 | } | 114 | 0 | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | 251k | }) |
Unexecuted instantiation: <wast::kw::arrayref as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Parse>::parse::{closure#0} |
116 | 6.43M | } Unexecuted instantiation: <wast::kw::after as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::assert_malformed as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::assert_malformed_custom as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::before as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::binary as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::block as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::borrow as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::assert_return as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::assert_trap as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::assert_unlinkable as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::assert_suspension as wast::parser::Parse>::parse <wast::kw::catch as wast::parser::Parse>::parse Line | Count | Source | 107 | 21.9k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 21.9k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 21.9k | } |
<wast::kw::catch_ref as wast::parser::Parse>::parse Line | Count | Source | 107 | 30 | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 30 | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 30 | } |
Unexecuted instantiation: <wast::kw::contref as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::component as wast::parser::Parse>::parse <wast::kw::data as wast::parser::Parse>::parse Line | Count | Source | 107 | 15.0k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 15.0k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 15.0k | } |
<wast::kw::declare as wast::parser::Parse>::parse Line | Count | Source | 107 | 2.80k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 2.80k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 2.80k | } |
Unexecuted instantiation: <wast::kw::delegate as wast::parser::Parse>::parse <wast::kw::catch_all as wast::parser::Parse>::parse Line | Count | Source | 107 | 292k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 292k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 292k | } |
<wast::kw::catch_all_ref as wast::parser::Parse>::parse Line | Count | Source | 107 | 666 | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 666 | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 666 | } |
Unexecuted instantiation: <wast::kw::code as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::cont as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::descriptor as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::exact as wast::parser::Parse>::parse <wast::kw::tag as wast::parser::Parse>::parse Line | Count | Source | 107 | 24.8k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 24.8k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 24.8k | } |
<wast::kw::exn as wast::parser::Parse>::parse Line | Count | Source | 107 | 21.2k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 21.2k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 21.2k | } |
Unexecuted instantiation: <wast::kw::exnref as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::describes as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::do as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::dtor as wast::parser::Parse>::parse <wast::kw::elem as wast::parser::Parse>::parse Line | Count | Source | 107 | 24.5k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 24.5k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 24.5k | } |
Unexecuted instantiation: <wast::kw::end as wast::parser::Parse>::parse <wast::kw::export as wast::parser::Parse>::parse Line | Count | Source | 107 | 58.0k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 58.0k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 58.0k | } |
<wast::kw::extern as wast::parser::Parse>::parse Line | Count | Source | 107 | 13.2k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 13.2k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 13.2k | } |
Unexecuted instantiation: <wast::kw::f32x4 as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::f64 as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::f64x2 as wast::parser::Parse>::parse <wast::kw::field as wast::parser::Parse>::parse Line | Count | Source | 107 | 550k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 550k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 550k | } |
Unexecuted instantiation: <wast::kw::alias as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::externref as wast::parser::Parse>::parse <wast::kw::eq as wast::parser::Parse>::parse Line | Count | Source | 107 | 6.55k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 6.55k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 6.55k | } |
Unexecuted instantiation: <wast::kw::eqref as wast::parser::Parse>::parse <wast::kw::f32 as wast::parser::Parse>::parse Line | Count | Source | 107 | 4 | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 4 | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 4 | } |
Unexecuted instantiation: <wast::kw::first as wast::parser::Parse>::parse <wast::kw::func as wast::parser::Parse>::parse Line | Count | Source | 107 | 314k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 314k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 314k | } |
Unexecuted instantiation: <wast::kw::i16x8 as wast::parser::Parse>::parse <wast::kw::i31 as wast::parser::Parse>::parse Line | Count | Source | 107 | 4.48k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 4.48k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 4.48k | } |
Unexecuted instantiation: <wast::kw::i31ref as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::i32 as wast::parser::Parse>::parse <wast::kw::i32x4 as wast::parser::Parse>::parse Line | Count | Source | 107 | 99.0k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 99.0k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 99.0k | } |
Unexecuted instantiation: <wast::kw::funcref as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::get as wast::parser::Parse>::parse <wast::kw::global as wast::parser::Parse>::parse Line | Count | Source | 107 | 102k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 102k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 102k | } |
<wast::kw::i16 as wast::parser::Parse>::parse Line | Count | Source | 107 | 148k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 148k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 148k | } |
<wast::kw::i64 as wast::parser::Parse>::parse Line | Count | Source | 107 | 32.8k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 32.8k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 32.8k | } |
Unexecuted instantiation: <wast::kw::instance as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::instantiate as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::interface as wast::parser::Parse>::parse <wast::kw::invoke as wast::parser::Parse>::parse Line | Count | Source | 107 | 3 | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 3 | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 3 | } |
Unexecuted instantiation: <wast::kw::i64x2 as wast::parser::Parse>::parse <wast::kw::i8 as wast::parser::Parse>::parse Line | Count | Source | 107 | 437k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 437k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 437k | } |
Unexecuted instantiation: <wast::kw::i8x16 as wast::parser::Parse>::parse <wast::kw::import as wast::parser::Parse>::parse Line | Count | Source | 107 | 54.6k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 54.6k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 54.6k | } |
Unexecuted instantiation: <wast::kw::implements as wast::parser::Parse>::parse <wast::kw::item as wast::parser::Parse>::parse Line | Count | Source | 107 | 45.5k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 45.5k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 45.5k | } |
Unexecuted instantiation: <wast::kw::last as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::nan_arithmetic as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::nan_canonical as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::nocont as wast::parser::Parse>::parse <wast::kw::nofunc as wast::parser::Parse>::parse Line | Count | Source | 107 | 23.9k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 23.9k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 23.9k | } |
<wast::kw::local as wast::parser::Parse>::parse Line | Count | Source | 107 | 25.1k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 25.1k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 25.1k | } |
<wast::kw::memory as wast::parser::Parse>::parse Line | Count | Source | 107 | 34.9k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 34.9k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 34.9k | } |
<wast::kw::module as wast::parser::Parse>::parse Line | Count | Source | 107 | 10.7k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 10.7k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 10.7k | } |
Unexecuted instantiation: <wast::kw::modulecode as wast::parser::Parse>::parse <wast::kw::noextern as wast::parser::Parse>::parse Line | Count | Source | 107 | 40.5k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 40.5k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 40.5k | } |
Unexecuted instantiation: <wast::kw::noexn as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::nullexternref as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::nullexnref as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::nullref as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::offset as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::on as wast::parser::Parse>::parse <wast::kw::none as wast::parser::Parse>::parse Line | Count | Source | 107 | 166k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 166k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 166k | } |
<wast::kw::null as wast::parser::Parse>::parse Line | Count | Source | 107 | 530k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 530k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 530k | } |
Unexecuted instantiation: <wast::kw::nullcontref as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::nullfuncref as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::outer as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::quote as wast::parser::Parse>::parse <wast::kw::else as wast::parser::Parse>::parse Line | Count | Source | 107 | 2.30k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 2.30k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 2.30k | } |
Unexecuted instantiation: <wast::kw::if as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::loop as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::own as wast::parser::Parse>::parse <wast::kw::pagesize as wast::parser::Parse>::parse Line | Count | Source | 107 | 17.4k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 17.4k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 17.4k | } |
<wast::kw::param as wast::parser::Parse>::parse Line | Count | Source | 107 | 219k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 219k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 219k | } |
Unexecuted instantiation: <wast::kw::parent as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::passive as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::assert_exception as wast::parser::Parse>::parse <wast::kw::assert_exhaustion as wast::parser::Parse>::parse Line | Count | Source | 107 | 1 | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 1 | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 1 | } |
Unexecuted instantiation: <wast::kw::assert_invalid as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::assert_invalid_custom as wast::parser::Parse>::parse <wast::kw::mut as wast::parser::Parse>::parse Line | Count | Source | 107 | 621k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 621k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 621k | } |
<wast::kw::type as wast::parser::Parse>::parse Line | Count | Source | 107 | 640k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 640k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 640k | } |
<wast::kw::rec as wast::parser::Parse>::parse Line | Count | Source | 107 | 56.0k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 56.0k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 56.0k | } |
Unexecuted instantiation: <wast::kw::acq_rel as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::rep as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::resource as wast::parser::Parse>::parse <wast::kw::any as wast::parser::Parse>::parse Line | Count | Source | 107 | 16.8k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 16.8k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 16.8k | } |
<wast::kw::ref as wast::parser::Parse>::parse Line | Count | Source | 107 | 538k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 538k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 538k | } |
Unexecuted instantiation: <wast::kw::ref_func as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::ref_null as wast::parser::Parse>::parse <wast::kw::register as wast::parser::Parse>::parse Line | Count | Source | 107 | 1 | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 1 | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 1 | } |
Unexecuted instantiation: <wast::kw::resource_new as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::resource_drop as wast::parser::Parse>::parse <wast::kw::start as wast::parser::Parse>::parse Line | Count | Source | 107 | 230 | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 230 | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 230 | } |
<wast::kw::sub as wast::parser::Parse>::parse Line | Count | Source | 107 | 148k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 148k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 148k | } |
Unexecuted instantiation: <wast::kw::switch as wast::parser::Parse>::parse <wast::kw::final as wast::parser::Parse>::parse Line | Count | Source | 107 | 9.84k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 9.84k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 9.84k | } |
<wast::kw::table as wast::parser::Parse>::parse Line | Count | Source | 107 | 47.2k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 47.2k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 47.2k | } |
Unexecuted instantiation: <wast::kw::resource_rep as wast::parser::Parse>::parse <wast::kw::result as wast::parser::Parse>::parse Line | Count | Source | 107 | 560k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 560k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 560k | } |
Unexecuted instantiation: <wast::kw::seq_cst as wast::parser::Parse>::parse <wast::kw::shared as wast::parser::Parse>::parse Line | Count | Source | 107 | 100k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 100k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 100k | } |
<wast::kw::then as wast::parser::Parse>::parse Line | Count | Source | 107 | 27.1k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 27.1k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 27.1k | } |
Unexecuted instantiation: <wast::kw::s32 as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::s64 as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::u8 as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::u16 as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::try as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::v128 as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::value as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::s8 as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::s16 as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::u32 as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::u64 as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::bool_ as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::float32 as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::float64 as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::variant as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::char as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::case as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::record as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::string as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::flags as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::option as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::canon as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::lift as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::lower as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::enum_ as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::string_utf8 as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::tuple as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::list as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::map as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::error as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::string_utf16 as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::with as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::core as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::core_type as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::gc as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::string_latin1_utf16 as wast::parser::Parse>::parse <wast::kw::struct as wast::parser::Parse>::parse Line | Count | Source | 107 | 72.7k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 72.7k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 72.7k | } |
Unexecuted instantiation: <wast::kw::structref as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::realloc as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::post_return as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::true_ as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::false_ as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::needed as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::export_info as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::import_info as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::runtime_path as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::anyref as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::language as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::sdk as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::processed_by as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::mem_info as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::thread as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::thread_spawn_ref as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::task_return as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::task_cancel as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::subtask_drop as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::subtask_cancel as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::stream_new as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::thread_spawn_indirect as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::thread_available_parallelism as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::backpressure_inc as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::backpressure_dec as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::stream_read as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::future_new as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::future_read as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::future_write as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::future_cancel_read as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::stream_write as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::stream_cancel_read as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::stream_cancel_write as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::stream_drop_readable as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::stream_drop_writable as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::future_cancel_write as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::future_drop_readable as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::wait as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::definition as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::async as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::callback as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::future_drop_writable as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::error_context_new as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::error_context_debug_message as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::error_context_drop as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::stream as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::future as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::waitable_set_drop as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::waitable_join as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::context_get as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::context_set as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::thread_index as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::error_context as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::waitable_set_new as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::waitable_set_wait as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::waitable_set_poll as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::thread_new_indirect as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::thread_suspend_then_promote as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::thread_yield_then_promote as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::cancellable as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::versionsuffix as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::thread_resume_later as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::thread_suspend as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::thread_yield as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::thread_suspend_then_resume as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::thread_yield_then_resume as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::external_id as wast::parser::Parse>::parse Unexecuted instantiation: <wast::kw::arg as wast::parser::Parse>::parse <wast::kw::array as wast::parser::Parse>::parse Line | Count | Source | 107 | 251k | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 108 | 251k | parser.step(|c| { | 109 | | if let Some((kw, rest)) = c.keyword()? { | 110 | | if kw == $kw { | 111 | | return Ok(($name(c.cur_span()), rest)); | 112 | | } | 113 | | } | 114 | | Err(c.error(concat!("expected keyword `", $kw, "`"))) | 115 | | }) | 116 | 251k | } |
Unexecuted instantiation: <wast::kw::arrayref as wast::parser::Parse>::parse Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Parse>::parse Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Parse>::parse Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Parse>::parse Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Parse>::parse Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Parse>::parse Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Parse>::parse Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Parse>::parse Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Parse>::parse Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Parse>::parse |
117 | | } |
118 | | |
119 | | impl $crate::parser::Peek for $name { |
120 | 24.1M | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { |
121 | 24.1M | Ok(if let Some((kw, _rest)) = cursor.keyword()? { |
122 | 22.5M | kw == $kw |
123 | | } else { |
124 | 1.55M | false |
125 | | }) |
126 | 24.1M | } <wast::kw::assert_malformed as wast::parser::Peek>::peek Line | Count | Source | 120 | 10 | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 10 | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 9 | kw == $kw | 123 | | } else { | 124 | 1 | false | 125 | | }) | 126 | 10 | } |
<wast::kw::assert_malformed_custom as wast::parser::Peek>::peek Line | Count | Source | 120 | 10 | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 10 | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 9 | kw == $kw | 123 | | } else { | 124 | 1 | false | 125 | | }) | 126 | 10 | } |
Unexecuted instantiation: <wast::kw::before as wast::parser::Peek>::peek <wast::kw::binary as wast::parser::Peek>::peek Line | Count | Source | 120 | 10.7k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 10.7k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 6 | kw == $kw | 123 | | } else { | 124 | 10.7k | false | 125 | | }) | 126 | 10.7k | } |
Unexecuted instantiation: <wast::kw::block as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::borrow as wast::parser::Peek>::peek <wast::kw::assert_return as wast::parser::Peek>::peek Line | Count | Source | 120 | 7 | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 7 | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 6 | kw == $kw | 123 | | } else { | 124 | 1 | false | 125 | | }) | 126 | 7 | } |
<wast::kw::assert_trap as wast::parser::Peek>::peek Line | Count | Source | 120 | 7 | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 7 | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 6 | kw == $kw | 123 | | } else { | 124 | 1 | false | 125 | | }) | 126 | 7 | } |
<wast::kw::assert_unlinkable as wast::parser::Peek>::peek Line | Count | Source | 120 | 6 | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 6 | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 5 | kw == $kw | 123 | | } else { | 124 | 1 | false | 125 | | }) | 126 | 6 | } |
<wast::kw::assert_suspension as wast::parser::Peek>::peek Line | Count | Source | 120 | 6 | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 6 | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 5 | kw == $kw | 123 | | } else { | 124 | 1 | false | 125 | | }) | 126 | 6 | } |
<wast::kw::catch as wast::parser::Peek>::peek Line | Count | Source | 120 | 686k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 686k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 686k | kw == $kw | 123 | | } else { | 124 | 0 | false | 125 | | }) | 126 | 686k | } |
<wast::kw::catch_ref as wast::parser::Peek>::peek Line | Count | Source | 120 | 664k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 664k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 664k | kw == $kw | 123 | | } else { | 124 | 0 | false | 125 | | }) | 126 | 664k | } |
Unexecuted instantiation: <wast::kw::contref as wast::parser::Peek>::peek <wast::kw::component as wast::parser::Peek>::peek Line | Count | Source | 120 | 2.16k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 2.16k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 848 | kw == $kw | 123 | | } else { | 124 | 1.31k | false | 125 | | }) | 126 | 2.16k | } |
<wast::kw::data as wast::parser::Peek>::peek Line | Count | Source | 120 | 34.2k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 34.2k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 33.9k | kw == $kw | 123 | | } else { | 124 | 293 | false | 125 | | }) | 126 | 34.2k | } |
<wast::kw::declare as wast::parser::Peek>::peek Line | Count | Source | 120 | 24.5k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 24.5k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 6.85k | kw == $kw | 123 | | } else { | 124 | 17.6k | false | 125 | | }) | 126 | 24.5k | } |
Unexecuted instantiation: <wast::kw::delegate as wast::parser::Peek>::peek <wast::kw::catch_all as wast::parser::Peek>::peek Line | Count | Source | 120 | 642k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 642k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 642k | kw == $kw | 123 | | } else { | 124 | 0 | false | 125 | | }) | 126 | 642k | } |
<wast::kw::catch_all_ref as wast::parser::Peek>::peek Line | Count | Source | 120 | 57.8k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 57.8k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 57.8k | kw == $kw | 123 | | } else { | 124 | 0 | false | 125 | | }) | 126 | 57.8k | } |
Unexecuted instantiation: <wast::kw::code as wast::parser::Peek>::peek <wast::kw::cont as wast::parser::Peek>::peek Line | Count | Source | 120 | 521k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 521k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 521k | kw == $kw | 123 | | } else { | 124 | 2 | false | 125 | | }) | 126 | 521k | } |
<wast::kw::descriptor as wast::parser::Peek>::peek Line | Count | Source | 120 | 430k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 430k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 430k | kw == $kw | 123 | | } else { | 124 | 2 | false | 125 | | }) | 126 | 430k | } |
<wast::kw::exact as wast::parser::Peek>::peek Line | Count | Source | 120 | 59.1k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 59.1k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 57.3k | kw == $kw | 123 | | } else { | 124 | 1.84k | false | 125 | | }) | 126 | 59.1k | } |
<wast::kw::tag as wast::parser::Peek>::peek Line | Count | Source | 120 | 25.4k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 25.4k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 25.1k | kw == $kw | 123 | | } else { | 124 | 293 | false | 125 | | }) | 126 | 25.4k | } |
<wast::kw::exn as wast::parser::Peek>::peek Line | Count | Source | 120 | 555k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 555k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 555k | kw == $kw | 123 | | } else { | 124 | 0 | false | 125 | | }) | 126 | 555k | } |
Unexecuted instantiation: <wast::kw::exnref as wast::parser::Peek>::peek <wast::kw::describes as wast::parser::Peek>::peek Line | Count | Source | 120 | 430k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 430k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 430k | kw == $kw | 123 | | } else { | 124 | 2 | false | 125 | | }) | 126 | 430k | } |
Unexecuted instantiation: <wast::kw::do as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::dtor as wast::parser::Peek>::peek <wast::kw::elem as wast::parser::Peek>::peek Line | Count | Source | 120 | 58.7k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 58.7k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 58.4k | kw == $kw | 123 | | } else { | 124 | 293 | false | 125 | | }) | 126 | 58.7k | } |
Unexecuted instantiation: <wast::kw::end as wast::parser::Peek>::peek <wast::kw::export as wast::parser::Peek>::peek Line | Count | Source | 120 | 99.3k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 99.3k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 99.0k | kw == $kw | 123 | | } else { | 124 | 293 | false | 125 | | }) | 126 | 99.3k | } |
<wast::kw::extern as wast::parser::Peek>::peek Line | Count | Source | 120 | 580k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 580k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 580k | kw == $kw | 123 | | } else { | 124 | 0 | false | 125 | | }) | 126 | 580k | } |
Unexecuted instantiation: <wast::kw::f32x4 as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::f64 as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::f64x2 as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::field as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::externref as wast::parser::Peek>::peek <wast::kw::eq as wast::parser::Peek>::peek Line | Count | Source | 120 | 488k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 488k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 488k | kw == $kw | 123 | | } else { | 124 | 0 | false | 125 | | }) | 126 | 488k | } |
Unexecuted instantiation: <wast::kw::eqref as wast::parser::Peek>::peek <wast::kw::f32 as wast::parser::Peek>::peek Line | Count | Source | 120 | 4 | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 4 | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 4 | kw == $kw | 123 | | } else { | 124 | 0 | false | 125 | | }) | 126 | 4 | } |
Unexecuted instantiation: <wast::kw::first as wast::parser::Peek>::peek <wast::kw::func as wast::parser::Peek>::peek Line | Count | Source | 120 | 1.50M | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 1.50M | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 1.50M | kw == $kw | 123 | | } else { | 124 | 3.92k | false | 125 | | }) | 126 | 1.50M | } |
<wast::kw::i16x8 as wast::parser::Peek>::peek Line | Count | Source | 120 | 99.0k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 99.0k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 99.0k | kw == $kw | 123 | | } else { | 124 | 0 | false | 125 | | }) | 126 | 99.0k | } |
<wast::kw::i31 as wast::parser::Peek>::peek Line | Count | Source | 120 | 460k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 460k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 460k | kw == $kw | 123 | | } else { | 124 | 0 | false | 125 | | }) | 126 | 460k | } |
Unexecuted instantiation: <wast::kw::i31ref as wast::parser::Peek>::peek <wast::kw::i32 as wast::parser::Peek>::peek Line | Count | Source | 120 | 103k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 103k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 68.5k | kw == $kw | 123 | | } else { | 124 | 35.1k | false | 125 | | }) | 126 | 103k | } |
<wast::kw::i32x4 as wast::parser::Peek>::peek Line | Count | Source | 120 | 99.0k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 99.0k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 99.0k | kw == $kw | 123 | | } else { | 124 | 0 | false | 125 | | }) | 126 | 99.0k | } |
Unexecuted instantiation: <wast::kw::alias as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::funcref as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::get as wast::parser::Peek>::peek <wast::kw::global as wast::parser::Peek>::peek Line | Count | Source | 120 | 208k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 208k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 208k | kw == $kw | 123 | | } else { | 124 | 293 | false | 125 | | }) | 126 | 208k | } |
<wast::kw::i16 as wast::parser::Peek>::peek Line | Count | Source | 120 | 356k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 356k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 301k | kw == $kw | 123 | | } else { | 124 | 55.0k | false | 125 | | }) | 126 | 356k | } |
<wast::kw::i64 as wast::parser::Peek>::peek Line | Count | Source | 120 | 103k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 103k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 68.5k | kw == $kw | 123 | | } else { | 124 | 35.1k | false | 125 | | }) | 126 | 103k | } |
<wast::kw::instance as wast::parser::Peek>::peek Line | Count | Source | 120 | 8 | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 8 | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 3 | kw == $kw | 123 | | } else { | 124 | 5 | false | 125 | | }) | 126 | 8 | } |
Unexecuted instantiation: <wast::kw::instantiate as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::interface as wast::parser::Peek>::peek <wast::kw::invoke as wast::parser::Peek>::peek Line | Count | Source | 120 | 9 | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 9 | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 8 | kw == $kw | 123 | | } else { | 124 | 1 | false | 125 | | }) | 126 | 9 | } |
Unexecuted instantiation: <wast::kw::i64x2 as wast::parser::Peek>::peek <wast::kw::i8 as wast::parser::Peek>::peek Line | Count | Source | 120 | 793k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 793k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 738k | kw == $kw | 123 | | } else { | 124 | 55.0k | false | 125 | | }) | 126 | 793k | } |
<wast::kw::i8x16 as wast::parser::Peek>::peek Line | Count | Source | 120 | 99.0k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 99.0k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 99.0k | kw == $kw | 123 | | } else { | 124 | 0 | false | 125 | | }) | 126 | 99.0k | } |
<wast::kw::import as wast::parser::Peek>::peek Line | Count | Source | 120 | 406k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 406k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 405k | kw == $kw | 123 | | } else { | 124 | 293 | false | 125 | | }) | 126 | 406k | } |
Unexecuted instantiation: <wast::kw::implements as wast::parser::Peek>::peek <wast::kw::item as wast::parser::Peek>::peek Line | Count | Source | 120 | 277k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 277k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 277k | kw == $kw | 123 | | } else { | 124 | 0 | false | 125 | | }) | 126 | 277k | } |
Unexecuted instantiation: <wast::kw::last as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::nan_arithmetic as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::nan_canonical as wast::parser::Peek>::peek <wast::kw::nocont as wast::parser::Peek>::peek Line | Count | Source | 120 | 328k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 328k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 328k | kw == $kw | 123 | | } else { | 124 | 0 | false | 125 | | }) | 126 | 328k | } |
<wast::kw::nofunc as wast::parser::Peek>::peek Line | Count | Source | 120 | 453k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 453k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 453k | kw == $kw | 123 | | } else { | 124 | 0 | false | 125 | | }) | 126 | 453k | } |
<wast::kw::local as wast::parser::Peek>::peek Line | Count | Source | 120 | 168k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 168k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 91.5k | kw == $kw | 123 | | } else { | 124 | 77.0k | false | 125 | | }) | 126 | 168k | } |
<wast::kw::memory as wast::parser::Peek>::peek Line | Count | Source | 120 | 245k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 245k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 245k | kw == $kw | 123 | | } else { | 124 | 295 | false | 125 | | }) | 126 | 245k | } |
<wast::kw::module as wast::parser::Peek>::peek Line | Count | Source | 120 | 13.1k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 13.1k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 11.5k | kw == $kw | 123 | | } else { | 124 | 1.31k | false | 125 | | }) | 126 | 13.1k | } |
Unexecuted instantiation: <wast::kw::modulecode as wast::parser::Peek>::peek <wast::kw::noextern as wast::parser::Peek>::peek Line | Count | Source | 120 | 408k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 408k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 408k | kw == $kw | 123 | | } else { | 124 | 0 | false | 125 | | }) | 126 | 408k | } |
<wast::kw::noexn as wast::parser::Peek>::peek Line | Count | Source | 120 | 328k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 328k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 328k | kw == $kw | 123 | | } else { | 124 | 0 | false | 125 | | }) | 126 | 328k | } |
Unexecuted instantiation: <wast::kw::nullexternref as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::nullexnref as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::nullref as wast::parser::Peek>::peek <wast::kw::offset as wast::parser::Peek>::peek Line | Count | Source | 120 | 19.9k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 19.9k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 19.9k | kw == $kw | 123 | | } else { | 124 | 7 | false | 125 | | }) | 126 | 19.9k | } |
Unexecuted instantiation: <wast::kw::on as wast::parser::Peek>::peek <wast::kw::none as wast::parser::Peek>::peek Line | Count | Source | 120 | 328k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 328k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 328k | kw == $kw | 123 | | } else { | 124 | 0 | false | 125 | | }) | 126 | 328k | } |
<wast::kw::null as wast::parser::Peek>::peek Line | Count | Source | 120 | 538k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 538k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 536k | kw == $kw | 123 | | } else { | 124 | 2.37k | false | 125 | | }) | 126 | 538k | } |
Unexecuted instantiation: <wast::kw::nullcontref as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::nullfuncref as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::outer as wast::parser::Peek>::peek <wast::kw::quote as wast::parser::Peek>::peek Line | Count | Source | 120 | 17 | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 17 | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 6 | kw == $kw | 123 | | } else { | 124 | 10 | false | 125 | | }) | 126 | 17 | } |
Unexecuted instantiation: <wast::kw::else as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::if as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::loop as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::own as wast::parser::Peek>::peek <wast::kw::pagesize as wast::parser::Peek>::peek Line | Count | Source | 120 | 17.4k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 17.4k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 17.4k | kw == $kw | 123 | | } else { | 124 | 1 | false | 125 | | }) | 126 | 17.4k | } |
<wast::kw::param as wast::parser::Peek>::peek Line | Count | Source | 120 | 2.17M | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 2.17M | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 1.83M | kw == $kw | 123 | | } else { | 124 | 345k | false | 125 | | }) | 126 | 2.17M | } |
Unexecuted instantiation: <wast::kw::parent as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::passive as wast::parser::Peek>::peek <wast::kw::assert_exception as wast::parser::Peek>::peek Line | Count | Source | 120 | 6 | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 6 | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 5 | kw == $kw | 123 | | } else { | 124 | 1 | false | 125 | | }) | 126 | 6 | } |
<wast::kw::assert_exhaustion as wast::parser::Peek>::peek Line | Count | Source | 120 | 7 | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 7 | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 6 | kw == $kw | 123 | | } else { | 124 | 1 | false | 125 | | }) | 126 | 7 | } |
<wast::kw::assert_invalid as wast::parser::Peek>::peek Line | Count | Source | 120 | 10 | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 10 | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 9 | kw == $kw | 123 | | } else { | 124 | 1 | false | 125 | | }) | 126 | 10 | } |
<wast::kw::assert_invalid_custom as wast::parser::Peek>::peek Line | Count | Source | 120 | 10 | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 10 | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 9 | kw == $kw | 123 | | } else { | 124 | 1 | false | 125 | | }) | 126 | 10 | } |
Unexecuted instantiation: <wast::kw::after as wast::parser::Peek>::peek <wast::kw::mut as wast::parser::Peek>::peek Line | Count | Source | 120 | 953k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 953k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 705k | kw == $kw | 123 | | } else { | 124 | 247k | false | 125 | | }) | 126 | 953k | } |
<wast::kw::type as wast::parser::Peek>::peek Line | Count | Source | 120 | 1.67M | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 1.67M | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 1.55M | kw == $kw | 123 | | } else { | 124 | 125k | false | 125 | | }) | 126 | 1.67M | } |
<wast::kw::rec as wast::parser::Peek>::peek Line | Count | Source | 120 | 462k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 462k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 461k | kw == $kw | 123 | | } else { | 124 | 293 | false | 125 | | }) | 126 | 462k | } |
Unexecuted instantiation: <wast::kw::acq_rel as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::rep as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::resource as wast::parser::Peek>::peek <wast::kw::ref as wast::parser::Peek>::peek Line | Count | Source | 120 | 614k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 614k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 614k | kw == $kw | 123 | | } else { | 124 | 7 | false | 125 | | }) | 126 | 614k | } |
Unexecuted instantiation: <wast::kw::ref_func as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::ref_null as wast::parser::Peek>::peek <wast::kw::register as wast::parser::Peek>::peek Line | Count | Source | 120 | 10 | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 10 | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 9 | kw == $kw | 123 | | } else { | 124 | 1 | false | 125 | | }) | 126 | 10 | } |
Unexecuted instantiation: <wast::kw::resource_new as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::resource_drop as wast::parser::Peek>::peek <wast::kw::start as wast::parser::Peek>::peek Line | Count | Source | 120 | 58.9k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 58.9k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 58.7k | kw == $kw | 123 | | } else { | 124 | 293 | false | 125 | | }) | 126 | 58.9k | } |
<wast::kw::sub as wast::parser::Peek>::peek Line | Count | Source | 120 | 430k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 430k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 430k | kw == $kw | 123 | | } else { | 124 | 2 | false | 125 | | }) | 126 | 430k | } |
Unexecuted instantiation: <wast::kw::switch as wast::parser::Peek>::peek <wast::kw::final as wast::parser::Peek>::peek Line | Count | Source | 120 | 148k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 148k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 9.84k | kw == $kw | 123 | | } else { | 124 | 138k | false | 125 | | }) | 126 | 148k | } |
<wast::kw::table as wast::parser::Peek>::peek Line | Count | Source | 120 | 291k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 291k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 291k | kw == $kw | 123 | | } else { | 124 | 298 | false | 125 | | }) | 126 | 291k | } |
<wast::kw::any as wast::parser::Peek>::peek Line | Count | Source | 120 | 521k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 521k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 521k | kw == $kw | 123 | | } else { | 124 | 0 | false | 125 | | }) | 126 | 521k | } |
Unexecuted instantiation: <wast::kw::resource_rep as wast::parser::Peek>::peek <wast::kw::result as wast::parser::Peek>::peek Line | Count | Source | 120 | 1.81M | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 1.81M | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 1.45M | kw == $kw | 123 | | } else { | 124 | 353k | false | 125 | | }) | 126 | 1.81M | } |
Unexecuted instantiation: <wast::kw::seq_cst as wast::parser::Peek>::peek <wast::kw::shared as wast::parser::Peek>::peek Line | Count | Source | 120 | 673k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 673k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 632k | kw == $kw | 123 | | } else { | 124 | 40.4k | false | 125 | | }) | 126 | 673k | } |
<wast::kw::then as wast::parser::Peek>::peek Line | Count | Source | 120 | 54.6k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 54.6k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 54.6k | kw == $kw | 123 | | } else { | 124 | 3 | false | 125 | | }) | 126 | 54.6k | } |
Unexecuted instantiation: <wast::kw::s32 as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::s64 as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::u8 as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::u16 as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::try as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::v128 as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::value as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::s8 as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::s16 as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::u32 as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::u64 as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::bool_ as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::float32 as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::float64 as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::variant as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::char as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::case as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::record as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::string as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::flags as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::option as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::canon as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::lift as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::lower as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::enum_ as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::string_utf8 as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::tuple as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::list as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::map as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::error as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::string_utf16 as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::with as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::core as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::core_type as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::gc as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::string_latin1_utf16 as wast::parser::Peek>::peek <wast::kw::struct as wast::parser::Peek>::peek Line | Count | Source | 120 | 788k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 788k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 788k | kw == $kw | 123 | | } else { | 124 | 2 | false | 125 | | }) | 126 | 788k | } |
Unexecuted instantiation: <wast::kw::structref as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::realloc as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::post_return as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::true_ as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::false_ as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::needed as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::export_info as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::import_info as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::runtime_path as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::language as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::sdk as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::processed_by as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::mem_info as wast::parser::Peek>::peek <wast::kw::thread as wast::parser::Peek>::peek Line | Count | Source | 120 | 6 | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 6 | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 5 | kw == $kw | 123 | | } else { | 124 | 1 | false | 125 | | }) | 126 | 6 | } |
Unexecuted instantiation: <wast::kw::thread_spawn_ref as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::task_return as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::task_cancel as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::subtask_drop as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::subtask_cancel as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::stream_new as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::anyref as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::thread_spawn_indirect as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::thread_available_parallelism as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::backpressure_inc as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::backpressure_dec as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::stream_read as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::future_new as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::future_read as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::future_write as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::future_cancel_read as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::stream_write as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::stream_cancel_read as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::stream_cancel_write as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::stream_drop_readable as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::stream_drop_writable as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::future_cancel_write as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::future_drop_readable as wast::parser::Peek>::peek <wast::kw::wait as wast::parser::Peek>::peek Line | Count | Source | 120 | 6 | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 6 | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 5 | kw == $kw | 123 | | } else { | 124 | 1 | false | 125 | | }) | 126 | 6 | } |
<wast::kw::definition as wast::parser::Peek>::peek Line | Count | Source | 120 | 8 | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 8 | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 3 | kw == $kw | 123 | | } else { | 124 | 5 | false | 125 | | }) | 126 | 8 | } |
Unexecuted instantiation: <wast::kw::async as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::callback as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::future_drop_writable as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::error_context_new as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::error_context_debug_message as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::error_context_drop as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::stream as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::future as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::waitable_set_drop as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::waitable_join as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::context_get as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::context_set as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::thread_index as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::error_context as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::waitable_set_new as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::waitable_set_wait as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::waitable_set_poll as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::thread_new_indirect as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::thread_suspend_then_promote as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::thread_yield_then_promote as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::cancellable as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::versionsuffix as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::thread_resume_later as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::thread_suspend as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::thread_yield as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::thread_suspend_then_resume as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::thread_yield_then_resume as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::external_id as wast::parser::Peek>::peek Unexecuted instantiation: <wast::kw::arg as wast::parser::Peek>::peek <wast::kw::array as wast::parser::Peek>::peek Line | Count | Source | 120 | 714k | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 121 | 714k | Ok(if let Some((kw, _rest)) = cursor.keyword()? { | 122 | 714k | kw == $kw | 123 | | } else { | 124 | 2 | false | 125 | | }) | 126 | 714k | } |
Unexecuted instantiation: <wast::kw::arrayref as wast::parser::Peek>::peek Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Peek>::peek Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Peek>::peek Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Peek>::peek Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Peek>::peek Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Peek>::peek Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Peek>::peek Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Peek>::peek Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Peek>::peek Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Peek>::peek |
127 | | |
128 | 5.17M | fn display() -> &'static str { |
129 | 5.17M | concat!("`", $kw, "`") |
130 | 5.17M | } <wast::kw::assert_malformed as wast::parser::Peek>::display Line | Count | Source | 128 | 10 | fn display() -> &'static str { | 129 | 10 | concat!("`", $kw, "`") | 130 | 10 | } |
<wast::kw::assert_malformed_custom as wast::parser::Peek>::display Line | Count | Source | 128 | 10 | fn display() -> &'static str { | 129 | 10 | concat!("`", $kw, "`") | 130 | 10 | } |
Unexecuted instantiation: <wast::kw::before as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::binary as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::block as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::borrow as wast::parser::Peek>::display <wast::kw::assert_return as wast::parser::Peek>::display Line | Count | Source | 128 | 7 | fn display() -> &'static str { | 129 | 7 | concat!("`", $kw, "`") | 130 | 7 | } |
<wast::kw::assert_trap as wast::parser::Peek>::display Line | Count | Source | 128 | 7 | fn display() -> &'static str { | 129 | 7 | concat!("`", $kw, "`") | 130 | 7 | } |
<wast::kw::assert_unlinkable as wast::parser::Peek>::display Line | Count | Source | 128 | 6 | fn display() -> &'static str { | 129 | 6 | concat!("`", $kw, "`") | 130 | 6 | } |
<wast::kw::assert_suspension as wast::parser::Peek>::display Line | Count | Source | 128 | 6 | fn display() -> &'static str { | 129 | 6 | concat!("`", $kw, "`") | 130 | 6 | } |
Unexecuted instantiation: <wast::kw::catch as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::catch_ref as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::contref as wast::parser::Peek>::display <wast::kw::component as wast::parser::Peek>::display Line | Count | Source | 128 | 10 | fn display() -> &'static str { | 129 | 10 | concat!("`", $kw, "`") | 130 | 10 | } |
Unexecuted instantiation: <wast::kw::data as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::declare as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::delegate as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::catch_all as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::catch_all_ref as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::code as wast::parser::Peek>::display <wast::kw::cont as wast::parser::Peek>::display Line | Count | Source | 128 | 270k | fn display() -> &'static str { | 129 | 270k | concat!("`", $kw, "`") | 130 | 270k | } |
Unexecuted instantiation: <wast::kw::descriptor as wast::parser::Peek>::display <wast::kw::exact as wast::parser::Peek>::display Line | Count | Source | 128 | 37.6k | fn display() -> &'static str { | 129 | 37.6k | concat!("`", $kw, "`") | 130 | 37.6k | } |
Unexecuted instantiation: <wast::kw::tag as wast::parser::Peek>::display <wast::kw::exn as wast::parser::Peek>::display Line | Count | Source | 128 | 270k | fn display() -> &'static str { | 129 | 270k | concat!("`", $kw, "`") | 130 | 270k | } |
Unexecuted instantiation: <wast::kw::exnref as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::describes as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::do as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::dtor as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::elem as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::end as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::export as wast::parser::Peek>::display <wast::kw::extern as wast::parser::Peek>::display Line | Count | Source | 128 | 292k | fn display() -> &'static str { | 129 | 292k | concat!("`", $kw, "`") | 130 | 292k | } |
Unexecuted instantiation: <wast::kw::f32x4 as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::f64 as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::f64x2 as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::field as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::externref as wast::parser::Peek>::display <wast::kw::eq as wast::parser::Peek>::display Line | Count | Source | 128 | 247k | fn display() -> &'static str { | 129 | 247k | concat!("`", $kw, "`") | 130 | 247k | } |
Unexecuted instantiation: <wast::kw::eqref as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::f32 as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::first as wast::parser::Peek>::display <wast::kw::func as wast::parser::Peek>::display Line | Count | Source | 128 | 685k | fn display() -> &'static str { | 129 | 685k | concat!("`", $kw, "`") | 130 | 685k | } |
<wast::kw::i16x8 as wast::parser::Peek>::display Line | Count | Source | 128 | 99.0k | fn display() -> &'static str { | 129 | 99.0k | concat!("`", $kw, "`") | 130 | 99.0k | } |
<wast::kw::i31 as wast::parser::Peek>::display Line | Count | Source | 128 | 230k | fn display() -> &'static str { | 129 | 230k | concat!("`", $kw, "`") | 130 | 230k | } |
Unexecuted instantiation: <wast::kw::i31ref as wast::parser::Peek>::display <wast::kw::i32 as wast::parser::Peek>::display Line | Count | Source | 128 | 26.5k | fn display() -> &'static str { | 129 | 26.5k | concat!("`", $kw, "`") | 130 | 26.5k | } |
Unexecuted instantiation: <wast::kw::i32x4 as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::alias as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::funcref as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::get as wast::parser::Peek>::display <wast::kw::global as wast::parser::Peek>::display Line | Count | Source | 128 | 6.31k | fn display() -> &'static str { | 129 | 6.31k | concat!("`", $kw, "`") | 130 | 6.31k | } |
<wast::kw::i16 as wast::parser::Peek>::display Line | Count | Source | 128 | 207k | fn display() -> &'static str { | 129 | 207k | concat!("`", $kw, "`") | 130 | 207k | } |
<wast::kw::i64 as wast::parser::Peek>::display Line | Count | Source | 128 | 4.52k | fn display() -> &'static str { | 129 | 4.52k | concat!("`", $kw, "`") | 130 | 4.52k | } |
Unexecuted instantiation: <wast::kw::instance as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::instantiate as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::interface as wast::parser::Peek>::display <wast::kw::invoke as wast::parser::Peek>::display Line | Count | Source | 128 | 7 | fn display() -> &'static str { | 129 | 7 | concat!("`", $kw, "`") | 130 | 7 | } |
Unexecuted instantiation: <wast::kw::i64x2 as wast::parser::Peek>::display <wast::kw::i8 as wast::parser::Peek>::display Line | Count | Source | 128 | 356k | fn display() -> &'static str { | 129 | 356k | concat!("`", $kw, "`") | 130 | 356k | } |
<wast::kw::i8x16 as wast::parser::Peek>::display Line | Count | Source | 128 | 99.0k | fn display() -> &'static str { | 129 | 99.0k | concat!("`", $kw, "`") | 130 | 99.0k | } |
Unexecuted instantiation: <wast::kw::import as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::implements as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::item as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::last as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::nan_arithmetic as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::nan_canonical as wast::parser::Peek>::display <wast::kw::nocont as wast::parser::Peek>::display Line | Count | Source | 128 | 166k | fn display() -> &'static str { | 129 | 166k | concat!("`", $kw, "`") | 130 | 166k | } |
<wast::kw::nofunc as wast::parser::Peek>::display Line | Count | Source | 128 | 206k | fn display() -> &'static str { | 129 | 206k | concat!("`", $kw, "`") | 130 | 206k | } |
Unexecuted instantiation: <wast::kw::local as wast::parser::Peek>::display <wast::kw::memory as wast::parser::Peek>::display Line | Count | Source | 128 | 39.1k | fn display() -> &'static str { | 129 | 39.1k | concat!("`", $kw, "`") | 130 | 39.1k | } |
<wast::kw::module as wast::parser::Peek>::display Line | Count | Source | 128 | 10 | fn display() -> &'static str { | 129 | 10 | concat!("`", $kw, "`") | 130 | 10 | } |
Unexecuted instantiation: <wast::kw::modulecode as wast::parser::Peek>::display <wast::kw::noextern as wast::parser::Peek>::display Line | Count | Source | 128 | 166k | fn display() -> &'static str { | 129 | 166k | concat!("`", $kw, "`") | 130 | 166k | } |
<wast::kw::noexn as wast::parser::Peek>::display Line | Count | Source | 128 | 166k | fn display() -> &'static str { | 129 | 166k | concat!("`", $kw, "`") | 130 | 166k | } |
Unexecuted instantiation: <wast::kw::nullexternref as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::nullexnref as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::nullref as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::offset as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::on as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::none as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::null as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::nullcontref as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::nullfuncref as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::outer as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::quote as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::else as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::if as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::loop as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::own as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::pagesize as wast::parser::Peek>::display <wast::kw::param as wast::parser::Peek>::display Line | Count | Source | 128 | 560k | fn display() -> &'static str { | 129 | 560k | concat!("`", $kw, "`") | 130 | 560k | } |
Unexecuted instantiation: <wast::kw::parent as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::passive as wast::parser::Peek>::display <wast::kw::assert_exception as wast::parser::Peek>::display Line | Count | Source | 128 | 6 | fn display() -> &'static str { | 129 | 6 | concat!("`", $kw, "`") | 130 | 6 | } |
<wast::kw::assert_exhaustion as wast::parser::Peek>::display Line | Count | Source | 128 | 6 | fn display() -> &'static str { | 129 | 6 | concat!("`", $kw, "`") | 130 | 6 | } |
<wast::kw::assert_invalid as wast::parser::Peek>::display Line | Count | Source | 128 | 10 | fn display() -> &'static str { | 129 | 10 | concat!("`", $kw, "`") | 130 | 10 | } |
<wast::kw::assert_invalid_custom as wast::parser::Peek>::display Line | Count | Source | 128 | 10 | fn display() -> &'static str { | 129 | 10 | concat!("`", $kw, "`") | 130 | 10 | } |
Unexecuted instantiation: <wast::kw::after as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::mut as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::type as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::rec as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::acq_rel as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::rep as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::resource as wast::parser::Peek>::display <wast::kw::ref as wast::parser::Peek>::display Line | Count | Source | 128 | 2 | fn display() -> &'static str { | 129 | 2 | concat!("`", $kw, "`") | 130 | 2 | } |
Unexecuted instantiation: <wast::kw::ref_func as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::ref_null as wast::parser::Peek>::display <wast::kw::register as wast::parser::Peek>::display Line | Count | Source | 128 | 9 | fn display() -> &'static str { | 129 | 9 | concat!("`", $kw, "`") | 130 | 9 | } |
Unexecuted instantiation: <wast::kw::resource_new as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::resource_drop as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::start as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::sub as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::switch as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::final as wast::parser::Peek>::display <wast::kw::table as wast::parser::Peek>::display Line | Count | Source | 128 | 46.4k | fn display() -> &'static str { | 129 | 46.4k | concat!("`", $kw, "`") | 130 | 46.4k | } |
<wast::kw::any as wast::parser::Peek>::display Line | Count | Source | 128 | 254k | fn display() -> &'static str { | 129 | 254k | concat!("`", $kw, "`") | 130 | 254k | } |
Unexecuted instantiation: <wast::kw::resource_rep as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::result as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::seq_cst as wast::parser::Peek>::display <wast::kw::shared as wast::parser::Peek>::display Line | Count | Source | 128 | 12.8k | fn display() -> &'static str { | 129 | 12.8k | concat!("`", $kw, "`") | 130 | 12.8k | } |
Unexecuted instantiation: <wast::kw::then as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::s32 as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::s64 as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::u8 as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::u16 as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::try as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::v128 as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::value as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::s8 as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::s16 as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::u32 as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::u64 as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::bool_ as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::float32 as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::float64 as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::variant as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::char as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::case as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::record as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::string as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::flags as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::option as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::canon as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::lift as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::lower as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::enum_ as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::string_utf8 as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::tuple as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::list as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::map as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::error as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::string_utf16 as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::with as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::core as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::core_type as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::gc as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::string_latin1_utf16 as wast::parser::Peek>::display <wast::kw::struct as wast::parser::Peek>::display Line | Count | Source | 128 | 486k | fn display() -> &'static str { | 129 | 486k | concat!("`", $kw, "`") | 130 | 486k | } |
Unexecuted instantiation: <wast::kw::structref as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::realloc as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::post_return as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::true_ as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::false_ as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::needed as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::export_info as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::import_info as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::runtime_path as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::language as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::sdk as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::processed_by as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::mem_info as wast::parser::Peek>::display <wast::kw::thread as wast::parser::Peek>::display Line | Count | Source | 128 | 6 | fn display() -> &'static str { | 129 | 6 | concat!("`", $kw, "`") | 130 | 6 | } |
Unexecuted instantiation: <wast::kw::thread_spawn_ref as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::task_return as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::task_cancel as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::subtask_drop as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::subtask_cancel as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::stream_new as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::anyref as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::thread_spawn_indirect as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::thread_available_parallelism as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::backpressure_inc as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::backpressure_dec as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::stream_read as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::future_new as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::future_read as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::future_write as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::future_cancel_read as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::stream_write as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::stream_cancel_read as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::stream_cancel_write as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::stream_drop_readable as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::stream_drop_writable as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::future_cancel_write as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::future_drop_readable as wast::parser::Peek>::display <wast::kw::wait as wast::parser::Peek>::display Line | Count | Source | 128 | 6 | fn display() -> &'static str { | 129 | 6 | concat!("`", $kw, "`") | 130 | 6 | } |
Unexecuted instantiation: <wast::kw::definition as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::async as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::callback as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::future_drop_writable as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::error_context_new as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::error_context_debug_message as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::error_context_drop as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::stream as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::future as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::waitable_set_drop as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::waitable_join as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::context_get as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::context_set as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::thread_index as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::error_context as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::waitable_set_new as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::waitable_set_wait as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::waitable_set_poll as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::thread_new_indirect as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::thread_suspend_then_promote as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::thread_yield_then_promote as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::cancellable as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::versionsuffix as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::thread_resume_later as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::thread_suspend as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::thread_yield as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::thread_suspend_then_resume as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::thread_yield_then_resume as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::external_id as wast::parser::Peek>::display Unexecuted instantiation: <wast::kw::arg as wast::parser::Peek>::display <wast::kw::array as wast::parser::Peek>::display Line | Count | Source | 128 | 235k | fn display() -> &'static str { | 129 | 235k | concat!("`", $kw, "`") | 130 | 235k | } |
Unexecuted instantiation: <wast::kw::arrayref as wast::parser::Peek>::display Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Peek>::display Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Peek>::display Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Peek>::display Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Peek>::display Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Peek>::display Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Peek>::display Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Peek>::display Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Peek>::display Unexecuted instantiation: <wast::core::custom::parse_sym_flags::flag as wast::parser::Peek>::display |
131 | | } |
132 | | }; |
133 | | } |
134 | | |
135 | | /// A macro for defining custom reserved symbols. |
136 | | /// |
137 | | /// This is like `custom_keyword!` but for reserved symbols (`Token::Reserved`) |
138 | | /// instead of keywords (`Token::Keyword`). |
139 | | /// |
140 | | /// ``` |
141 | | /// use wast::parser::{Parser, Result, Parse}; |
142 | | /// |
143 | | /// // Define a custom reserved symbol, the "spaceship" operator: `<=>`. |
144 | | /// wast::custom_reserved!(spaceship = "<=>"); |
145 | | /// |
146 | | /// /// A "three-way comparison" like `(<=> a b)` that returns -1 if `a` is less |
147 | | /// /// than `b`, 0 if they're equal, and 1 if `a` is greater than `b`. |
148 | | /// struct ThreeWayComparison<'a> { |
149 | | /// lhs: wast::core::Expression<'a>, |
150 | | /// rhs: wast::core::Expression<'a>, |
151 | | /// } |
152 | | /// |
153 | | /// impl<'a> Parse<'a> for ThreeWayComparison<'a> { |
154 | | /// fn parse(parser: Parser<'a>) -> Result<Self> { |
155 | | /// parser.parse::<spaceship>()?; |
156 | | /// let lhs = parser.parse()?; |
157 | | /// let rhs = parser.parse()?; |
158 | | /// Ok(ThreeWayComparison { lhs, rhs }) |
159 | | /// } |
160 | | /// } |
161 | | /// ``` |
162 | | #[macro_export] |
163 | | macro_rules! custom_reserved { |
164 | | ($name:ident) => { |
165 | | $crate::custom_reserved!($name = stringify!($name)); |
166 | | }; |
167 | | ($name:ident = $rsv:expr) => { |
168 | | #[allow(non_camel_case_types)] |
169 | | #[allow(missing_docs)] |
170 | | #[derive(Debug)] |
171 | | pub struct $name(pub $crate::token::Span); |
172 | | |
173 | | impl<'a> $crate::parser::Parse<'a> for $name { |
174 | | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { |
175 | | parser.step(|c| { |
176 | | if let Some((rsv, rest)) = c.reserved()? { |
177 | | if rsv == $rsv { |
178 | | return Ok(($name(c.cur_span()), rest)); |
179 | | } |
180 | | } |
181 | | Err(c.error(concat!("expected reserved symbol `", $rsv, "`"))) |
182 | | }) |
183 | | } |
184 | | } |
185 | | |
186 | | impl $crate::parser::Peek for $name { |
187 | | fn peek(cursor: $crate::parser::Cursor<'_>) -> Result<bool> { |
188 | | if let Some((rsv, _rest)) = cursor.reserved()? { |
189 | | Ok(rsv == $rsv) |
190 | | } else { |
191 | | Ok(false) |
192 | | } |
193 | | } |
194 | | |
195 | | fn display() -> &'static str { |
196 | | concat!("`", $rsv, "`") |
197 | | } |
198 | | } |
199 | | }; |
200 | | } |
201 | | |
202 | | /// A macro, like [`custom_keyword`], to create a type which can be used to |
203 | | /// parse/peek annotation directives. |
204 | | /// |
205 | | /// Note that when you're parsing custom annotations it can be somewhat tricky |
206 | | /// due to the nature that most of them are skipped. You'll want to be sure to |
207 | | /// consult the documentation of [`Parser::register_annotation`][register] when |
208 | | /// using this macro. |
209 | | /// |
210 | | /// # Examples |
211 | | /// |
212 | | /// To see an example of how to use this macro, let's invent our own syntax for |
213 | | /// the [producers section][section] which looks like: |
214 | | /// |
215 | | /// ```wat |
216 | | /// (@producer "wat" "1.0.2") |
217 | | /// ``` |
218 | | /// |
219 | | /// Here, for simplicity, we'll assume everything is a `processed-by` directive, |
220 | | /// but you could get much more fancy with this as well. |
221 | | /// |
222 | | /// ``` |
223 | | /// # use wast::*; |
224 | | /// # use wast::parser::*; |
225 | | /// |
226 | | /// // First we define the custom annotation keyword we're using, and by |
227 | | /// // convention we define it in an `annotation` module. |
228 | | /// mod annotation { |
229 | | /// wast::annotation!(producer); |
230 | | /// } |
231 | | /// |
232 | | /// struct Producer<'a> { |
233 | | /// name: &'a str, |
234 | | /// version: &'a str, |
235 | | /// } |
236 | | /// |
237 | | /// impl<'a> Parse<'a> for Producer<'a> { |
238 | | /// fn parse(parser: Parser<'a>) -> Result<Self> { |
239 | | /// // Remember that parser conventionally parse the *interior* of an |
240 | | /// // s-expression, so we parse our `@producer` annotation and then we |
241 | | /// // parse the payload of our annotation. |
242 | | /// parser.parse::<annotation::producer>()?; |
243 | | /// Ok(Producer { |
244 | | /// name: parser.parse()?, |
245 | | /// version: parser.parse()?, |
246 | | /// }) |
247 | | /// } |
248 | | /// } |
249 | | /// ``` |
250 | | /// |
251 | | /// Note though that this is only half of the parser for annotations. The other |
252 | | /// half is calling the [`register_annotation`][register] method at the right |
253 | | /// time to ensure the parser doesn't automatically skip our `@producer` |
254 | | /// directive. Note that we *can't* call it inside the `Parse for Producer` |
255 | | /// definition because that's too late and the annotation would already have |
256 | | /// been skipped. |
257 | | /// |
258 | | /// Instead we'll need to call it from a higher level-parser before the |
259 | | /// parenthesis have been parsed, like so: |
260 | | /// |
261 | | /// ``` |
262 | | /// # use wast::*; |
263 | | /// # use wast::parser::*; |
264 | | /// struct Module<'a> { |
265 | | /// fields: Vec<ModuleField<'a>>, |
266 | | /// } |
267 | | /// |
268 | | /// impl<'a> Parse<'a> for Module<'a> { |
269 | | /// fn parse(parser: Parser<'a>) -> Result<Self> { |
270 | | /// // .. parse module header here ... |
271 | | /// |
272 | | /// // register our custom `@producer` annotation before we start |
273 | | /// // parsing the parentheses of each field |
274 | | /// let _r = parser.register_annotation("producer"); |
275 | | /// |
276 | | /// let mut fields = Vec::new(); |
277 | | /// while !parser.is_empty() { |
278 | | /// fields.push(parser.parens(|p| p.parse())?); |
279 | | /// } |
280 | | /// Ok(Module { fields }) |
281 | | /// } |
282 | | /// } |
283 | | /// |
284 | | /// enum ModuleField<'a> { |
285 | | /// Producer(Producer<'a>), |
286 | | /// // ... |
287 | | /// } |
288 | | /// # struct Producer<'a>(&'a str); |
289 | | /// # impl<'a> Parse<'a> for Producer<'a> { |
290 | | /// # fn parse(parser: Parser<'a>) -> Result<Self> { Ok(Producer(parser.parse()?)) } |
291 | | /// # } |
292 | | /// # mod annotation { wast::annotation!(producer); } |
293 | | /// |
294 | | /// impl<'a> Parse<'a> for ModuleField<'a> { |
295 | | /// fn parse(parser: Parser<'a>) -> Result<Self> { |
296 | | /// // and here `peek` works and our delegated parsing works because the |
297 | | /// // annotation has been registered. |
298 | | /// if parser.peek::<annotation::producer>()? { |
299 | | /// return Ok(ModuleField::Producer(parser.parse()?)); |
300 | | /// } |
301 | | /// |
302 | | /// // .. typically we'd parse other module fields here... |
303 | | /// |
304 | | /// Err(parser.error("unknown module field")) |
305 | | /// } |
306 | | /// } |
307 | | /// ``` |
308 | | /// |
309 | | /// [register]: crate::parser::Parser::register_annotation |
310 | | /// [section]: https://github.com/WebAssembly/tool-conventions/blob/master/ProducersSection.md |
311 | | #[macro_export] |
312 | | macro_rules! annotation { |
313 | | ($name:ident) => { |
314 | | $crate::annotation!($name = stringify!($name)); |
315 | | }; |
316 | | ($name:ident = $annotation:expr) => { |
317 | | #[allow(non_camel_case_types)] |
318 | | #[allow(missing_docs)] |
319 | | #[derive(Debug)] |
320 | | pub struct $name(pub $crate::token::Span); |
321 | | |
322 | | impl<'a> $crate::parser::Parse<'a> for $name { |
323 | 6 | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { |
324 | 6 | parser.step(|c| { |
325 | 6 | if let Some((a, rest)) = c.annotation()? { |
326 | 6 | if a == $annotation { |
327 | 6 | return Ok(($name(c.cur_span()), rest)); |
328 | 0 | } |
329 | 0 | } |
330 | 0 | Err(c.error(concat!("expected annotation `@", $annotation, "`"))) |
331 | 6 | }) <wast::annotation::custom as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 324 | 4 | parser.step(|c| { | 325 | 4 | if let Some((a, rest)) = c.annotation()? { | 326 | 4 | if a == $annotation { | 327 | 4 | return Ok(($name(c.cur_span()), rest)); | 328 | 0 | } | 329 | 0 | } | 330 | 0 | Err(c.error(concat!("expected annotation `@", $annotation, "`"))) | 331 | 4 | }) |
Unexecuted instantiation: <wast::annotation::name as wast::parser::Parse>::parse::{closure#0}Unexecuted instantiation: <wast::annotation::producers as wast::parser::Parse>::parse::{closure#0}<wast::annotation::dylink_0 as wast::parser::Parse>::parse::{closure#0}Line | Count | Source | 324 | 2 | parser.step(|c| { | 325 | 2 | if let Some((a, rest)) = c.annotation()? { | 326 | 2 | if a == $annotation { | 327 | 2 | return Ok(($name(c.cur_span()), rest)); | 328 | 0 | } | 329 | 0 | } | 330 | 0 | Err(c.error(concat!("expected annotation `@", $annotation, "`"))) | 331 | 2 | }) |
Unexecuted instantiation: <wast::annotation::metadata_code_branch_hint as wast::parser::Parse>::parse::{closure#0} |
332 | 6 | } <wast::annotation::custom as wast::parser::Parse>::parse Line | Count | Source | 323 | 4 | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 324 | 4 | parser.step(|c| { | 325 | | if let Some((a, rest)) = c.annotation()? { | 326 | | if a == $annotation { | 327 | | return Ok(($name(c.cur_span()), rest)); | 328 | | } | 329 | | } | 330 | | Err(c.error(concat!("expected annotation `@", $annotation, "`"))) | 331 | | }) | 332 | 4 | } |
Unexecuted instantiation: <wast::annotation::name as wast::parser::Parse>::parse Unexecuted instantiation: <wast::annotation::producers as wast::parser::Parse>::parse <wast::annotation::dylink_0 as wast::parser::Parse>::parse Line | Count | Source | 323 | 2 | fn parse(parser: $crate::parser::Parser<'a>) -> $crate::parser::Result<Self> { | 324 | 2 | parser.step(|c| { | 325 | | if let Some((a, rest)) = c.annotation()? { | 326 | | if a == $annotation { | 327 | | return Ok(($name(c.cur_span()), rest)); | 328 | | } | 329 | | } | 330 | | Err(c.error(concat!("expected annotation `@", $annotation, "`"))) | 331 | | }) | 332 | 2 | } |
Unexecuted instantiation: <wast::annotation::metadata_code_branch_hint as wast::parser::Parse>::parse |
333 | | } |
334 | | |
335 | | impl $crate::parser::Peek for $name { |
336 | 5.57M | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { |
337 | 5.57M | Ok(if let Some((a, _rest)) = cursor.annotation()? { |
338 | 66 | a == $annotation |
339 | | } else { |
340 | 5.57M | false |
341 | | }) |
342 | 5.57M | } <wast::annotation::name as wast::parser::Peek>::peek Line | Count | Source | 336 | 1.55M | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 337 | 1.55M | Ok(if let Some((a, _rest)) = cursor.annotation()? { | 338 | 4 | a == $annotation | 339 | | } else { | 340 | 1.55M | false | 341 | | }) | 342 | 1.55M | } |
<wast::annotation::producers as wast::parser::Peek>::peek Line | Count | Source | 336 | 667 | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 337 | 667 | Ok(if let Some((a, _rest)) = cursor.annotation()? { | 338 | 21 | a == $annotation | 339 | | } else { | 340 | 646 | false | 341 | | }) | 342 | 667 | } |
<wast::annotation::dylink_0 as wast::parser::Peek>::peek Line | Count | Source | 336 | 667 | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 337 | 667 | Ok(if let Some((a, _rest)) = cursor.annotation()? { | 338 | 21 | a == $annotation | 339 | | } else { | 340 | 646 | false | 341 | | }) | 342 | 667 | } |
<wast::annotation::custom as wast::parser::Peek>::peek Line | Count | Source | 336 | 682 | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 337 | 682 | Ok(if let Some((a, _rest)) = cursor.annotation()? { | 338 | 19 | a == $annotation | 339 | | } else { | 340 | 646 | false | 341 | | }) | 342 | 682 | } |
<wast::annotation::metadata_code_branch_hint as wast::parser::Peek>::peek Line | Count | Source | 336 | 4.01M | fn peek(cursor: $crate::parser::Cursor<'_>) -> $crate::parser::Result<bool> { | 337 | 4.01M | Ok(if let Some((a, _rest)) = cursor.annotation()? { | 338 | 1 | a == $annotation | 339 | | } else { | 340 | 4.01M | false | 341 | | }) | 342 | 4.01M | } |
|
343 | | |
344 | 0 | fn display() -> &'static str { |
345 | 0 | concat!("`@", $annotation, "`") |
346 | 0 | } Unexecuted instantiation: <wast::annotation::name as wast::parser::Peek>::display Unexecuted instantiation: <wast::annotation::producers as wast::parser::Peek>::display Unexecuted instantiation: <wast::annotation::dylink_0 as wast::parser::Peek>::display Unexecuted instantiation: <wast::annotation::custom as wast::parser::Peek>::display Unexecuted instantiation: <wast::annotation::metadata_code_branch_hint as wast::parser::Peek>::display |
347 | | } |
348 | | }; |
349 | | } |
350 | | |
351 | | pub mod lexer; |
352 | | pub mod parser; |
353 | | pub mod token; |
354 | | |
355 | | #[cfg(feature = "wasm-module")] |
356 | | mod encode; |
357 | | mod error; |
358 | | #[cfg(feature = "wasm-module")] |
359 | | mod gensym; |
360 | | #[cfg(feature = "wasm-module")] |
361 | | mod names; |
362 | | pub use self::error::*; |
363 | | |
364 | | #[cfg(feature = "wasm-module")] |
365 | | macro_rules! id { |
366 | | ($($t:tt)*) => ($($t)*) |
367 | | } |
368 | | |
369 | | #[cfg(feature = "wasm-module")] |
370 | | id! { |
371 | | mod wast; |
372 | | mod wat; |
373 | | pub use self::wast::*; |
374 | | pub use self::wat::*; |
375 | | |
376 | | // Support for core wasm parsing |
377 | | pub mod core; |
378 | | |
379 | | // Support for component model parsing |
380 | | #[cfg(feature = "component-model")] |
381 | | pub mod component; |
382 | | #[cfg(not(feature = "component-model"))] |
383 | | #[path = "component_disabled.rs"] |
384 | | pub mod component; |
385 | | } |
386 | | |
387 | | /// Common keyword used to parse WebAssembly text files. |
388 | | pub mod kw { |
389 | | custom_keyword!(after); |
390 | | custom_keyword!(alias); |
391 | | custom_keyword!(any); |
392 | | custom_keyword!(anyref); |
393 | | custom_keyword!(arg); |
394 | | custom_keyword!(array); |
395 | | custom_keyword!(arrayref); |
396 | | custom_keyword!(assert_exception); |
397 | | custom_keyword!(assert_exhaustion); |
398 | | custom_keyword!(assert_invalid); |
399 | | custom_keyword!(assert_invalid_custom); |
400 | | custom_keyword!(assert_malformed); |
401 | | custom_keyword!(assert_malformed_custom); |
402 | | custom_keyword!(assert_return); |
403 | | custom_keyword!(assert_trap); |
404 | | custom_keyword!(assert_unlinkable); |
405 | | custom_keyword!(assert_suspension); |
406 | | custom_keyword!(before); |
407 | | custom_keyword!(binary); |
408 | | custom_keyword!(block); |
409 | | custom_keyword!(borrow); |
410 | | custom_keyword!(catch); |
411 | | custom_keyword!(catch_ref); |
412 | | custom_keyword!(catch_all); |
413 | | custom_keyword!(catch_all_ref); |
414 | | custom_keyword!(code); |
415 | | custom_keyword!(cont); |
416 | | custom_keyword!(contref); |
417 | | custom_keyword!(component); |
418 | | custom_keyword!(data); |
419 | | custom_keyword!(declare); |
420 | | custom_keyword!(delegate); |
421 | | custom_keyword!(descriptor); |
422 | | custom_keyword!(describes); |
423 | | custom_keyword!(r#do = "do"); |
424 | | custom_keyword!(dtor); |
425 | | custom_keyword!(elem); |
426 | | custom_keyword!(end); |
427 | | custom_keyword!(exact); |
428 | | custom_keyword!(tag); |
429 | | custom_keyword!(exn); |
430 | | custom_keyword!(exnref); |
431 | | custom_keyword!(export); |
432 | | custom_keyword!(r#extern = "extern"); |
433 | | custom_keyword!(externref); |
434 | | custom_keyword!(eq); |
435 | | custom_keyword!(eqref); |
436 | | custom_keyword!(f32); |
437 | | custom_keyword!(f32x4); |
438 | | custom_keyword!(f64); |
439 | | custom_keyword!(f64x2); |
440 | | custom_keyword!(field); |
441 | | custom_keyword!(first); |
442 | | custom_keyword!(func); |
443 | | custom_keyword!(funcref); |
444 | | custom_keyword!(get); |
445 | | custom_keyword!(global); |
446 | | custom_keyword!(i16); |
447 | | custom_keyword!(i16x8); |
448 | | custom_keyword!(i31); |
449 | | custom_keyword!(i31ref); |
450 | | custom_keyword!(i32); |
451 | | custom_keyword!(i32x4); |
452 | | custom_keyword!(i64); |
453 | | custom_keyword!(i64x2); |
454 | | custom_keyword!(i8); |
455 | | custom_keyword!(i8x16); |
456 | | custom_keyword!(import); |
457 | | custom_keyword!(implements); |
458 | | custom_keyword!(instance); |
459 | | custom_keyword!(instantiate); |
460 | | custom_keyword!(interface); |
461 | | custom_keyword!(invoke); |
462 | | custom_keyword!(item); |
463 | | custom_keyword!(last); |
464 | | custom_keyword!(local); |
465 | | custom_keyword!(memory); |
466 | | custom_keyword!(module); |
467 | | custom_keyword!(modulecode); |
468 | | custom_keyword!(nan_arithmetic = "nan:arithmetic"); |
469 | | custom_keyword!(nan_canonical = "nan:canonical"); |
470 | | custom_keyword!(nocont); |
471 | | custom_keyword!(nofunc); |
472 | | custom_keyword!(noextern); |
473 | | custom_keyword!(noexn); |
474 | | custom_keyword!(none); |
475 | | custom_keyword!(null); |
476 | | custom_keyword!(nullcontref); |
477 | | custom_keyword!(nullfuncref); |
478 | | custom_keyword!(nullexternref); |
479 | | custom_keyword!(nullexnref); |
480 | | custom_keyword!(nullref); |
481 | | custom_keyword!(offset); |
482 | | custom_keyword!(on); |
483 | | custom_keyword!(outer); |
484 | | custom_keyword!(own); |
485 | | custom_keyword!(pagesize); |
486 | | custom_keyword!(param); |
487 | | custom_keyword!(parent); |
488 | | custom_keyword!(passive); |
489 | | custom_keyword!(quote); |
490 | | custom_keyword!(r#else = "else"); |
491 | | custom_keyword!(r#if = "if"); |
492 | | custom_keyword!(r#loop = "loop"); |
493 | | custom_keyword!(r#mut = "mut"); |
494 | | custom_keyword!(r#type = "type"); |
495 | | custom_keyword!(r#ref = "ref"); |
496 | | custom_keyword!(ref_func = "ref.func"); |
497 | | custom_keyword!(ref_null = "ref.null"); |
498 | | custom_keyword!(register); |
499 | | custom_keyword!(rec); |
500 | | custom_keyword!(acq_rel); |
501 | | custom_keyword!(rep); |
502 | | custom_keyword!(resource); |
503 | | custom_keyword!(resource_new = "resource.new"); |
504 | | custom_keyword!(resource_drop = "resource.drop"); |
505 | | custom_keyword!(resource_rep = "resource.rep"); |
506 | | custom_keyword!(result); |
507 | | custom_keyword!(seq_cst); |
508 | | custom_keyword!(shared); |
509 | | custom_keyword!(start); |
510 | | custom_keyword!(sub); |
511 | | custom_keyword!(switch); |
512 | | custom_keyword!(r#final = "final"); |
513 | | custom_keyword!(table); |
514 | | custom_keyword!(then); |
515 | | custom_keyword!(r#try = "try"); |
516 | | custom_keyword!(v128); |
517 | | custom_keyword!(value); |
518 | | custom_keyword!(s8); |
519 | | custom_keyword!(s16); |
520 | | custom_keyword!(s32); |
521 | | custom_keyword!(s64); |
522 | | custom_keyword!(u8); |
523 | | custom_keyword!(u16); |
524 | | custom_keyword!(u32); |
525 | | custom_keyword!(u64); |
526 | | custom_keyword!(char); |
527 | | custom_keyword!(case); |
528 | | custom_keyword!(record); |
529 | | custom_keyword!(string); |
530 | | custom_keyword!(bool_ = "bool"); |
531 | | custom_keyword!(float32); |
532 | | custom_keyword!(float64); |
533 | | custom_keyword!(variant); |
534 | | custom_keyword!(flags); |
535 | | custom_keyword!(option); |
536 | | custom_keyword!(tuple); |
537 | | custom_keyword!(list); |
538 | | custom_keyword!(map); |
539 | | custom_keyword!(error); |
540 | | custom_keyword!(canon); |
541 | | custom_keyword!(lift); |
542 | | custom_keyword!(lower); |
543 | | custom_keyword!(enum_ = "enum"); |
544 | | custom_keyword!(string_utf8 = "string-encoding=utf8"); |
545 | | custom_keyword!(string_utf16 = "string-encoding=utf16"); |
546 | | custom_keyword!(string_latin1_utf16 = "string-encoding=latin1+utf16"); |
547 | | custom_keyword!(r#struct = "struct"); |
548 | | custom_keyword!(structref); |
549 | | custom_keyword!(realloc); |
550 | | custom_keyword!(post_return = "post-return"); |
551 | | custom_keyword!(with); |
552 | | custom_keyword!(core); |
553 | | custom_keyword!(core_type = "core-type"); |
554 | | custom_keyword!(gc); |
555 | | custom_keyword!(true_ = "true"); |
556 | | custom_keyword!(false_ = "false"); |
557 | | custom_keyword!(language); |
558 | | custom_keyword!(sdk); |
559 | | custom_keyword!(processed_by = "processed-by"); |
560 | | custom_keyword!(mem_info = "mem-info"); |
561 | | custom_keyword!(needed); |
562 | | custom_keyword!(export_info = "export-info"); |
563 | | custom_keyword!(import_info = "import-info"); |
564 | | custom_keyword!(runtime_path = "runtime-path"); |
565 | | custom_keyword!(thread); |
566 | | custom_keyword!(thread_spawn_ref = "thread.spawn-ref"); |
567 | | custom_keyword!(thread_spawn_indirect = "thread.spawn-indirect"); |
568 | | custom_keyword!(thread_available_parallelism = "thread.available_parallelism"); |
569 | | custom_keyword!(backpressure_inc = "backpressure.inc"); |
570 | | custom_keyword!(backpressure_dec = "backpressure.dec"); |
571 | | custom_keyword!(task_return = "task.return"); |
572 | | custom_keyword!(task_cancel = "task.cancel"); |
573 | | custom_keyword!(subtask_drop = "subtask.drop"); |
574 | | custom_keyword!(subtask_cancel = "subtask.cancel"); |
575 | | custom_keyword!(stream_new = "stream.new"); |
576 | | custom_keyword!(stream_read = "stream.read"); |
577 | | custom_keyword!(stream_write = "stream.write"); |
578 | | custom_keyword!(stream_cancel_read = "stream.cancel-read"); |
579 | | custom_keyword!(stream_cancel_write = "stream.cancel-write"); |
580 | | custom_keyword!(stream_drop_readable = "stream.drop-readable"); |
581 | | custom_keyword!(stream_drop_writable = "stream.drop-writable"); |
582 | | custom_keyword!(future_new = "future.new"); |
583 | | custom_keyword!(future_read = "future.read"); |
584 | | custom_keyword!(future_write = "future.write"); |
585 | | custom_keyword!(future_cancel_read = "future.cancel-read"); |
586 | | custom_keyword!(future_cancel_write = "future.cancel-write"); |
587 | | custom_keyword!(future_drop_readable = "future.drop-readable"); |
588 | | custom_keyword!(future_drop_writable = "future.drop-writable"); |
589 | | custom_keyword!(error_context_new = "error-context.new"); |
590 | | custom_keyword!(error_context_debug_message = "error-context.debug-message"); |
591 | | custom_keyword!(error_context_drop = "error-context.drop"); |
592 | | custom_keyword!(wait); |
593 | | custom_keyword!(definition); |
594 | | custom_keyword!(r#async = "async"); |
595 | | custom_keyword!(callback); |
596 | | custom_keyword!(stream); |
597 | | custom_keyword!(future); |
598 | | custom_keyword!(error_context = "error-context"); |
599 | | custom_keyword!(waitable_set_new = "waitable-set.new"); |
600 | | custom_keyword!(waitable_set_wait = "waitable-set.wait"); |
601 | | custom_keyword!(waitable_set_poll = "waitable-set.poll"); |
602 | | custom_keyword!(waitable_set_drop = "waitable-set.drop"); |
603 | | custom_keyword!(waitable_join = "waitable.join"); |
604 | | custom_keyword!(context_get = "context.get"); |
605 | | custom_keyword!(context_set = "context.set"); |
606 | | custom_keyword!(thread_index = "thread.index"); |
607 | | custom_keyword!(thread_new_indirect = "thread.new-indirect"); |
608 | | custom_keyword!(thread_resume_later = "thread.resume-later"); |
609 | | custom_keyword!(thread_suspend = "thread.suspend"); |
610 | | custom_keyword!(thread_yield = "thread.yield"); |
611 | | custom_keyword!(thread_suspend_then_resume = "thread.suspend-then-resume"); |
612 | | custom_keyword!(thread_yield_then_resume = "thread.yield-then-resume"); |
613 | | custom_keyword!(thread_suspend_then_promote = "thread.suspend-then-promote"); |
614 | | custom_keyword!(thread_yield_then_promote = "thread.yield-then-promote"); |
615 | | custom_keyword!(cancellable); |
616 | | custom_keyword!(versionsuffix); |
617 | | custom_keyword!(external_id = "external-id"); |
618 | | } |
619 | | |
620 | | /// Common annotations used to parse WebAssembly text files. |
621 | | pub mod annotation { |
622 | | annotation!(custom); |
623 | | annotation!(name); |
624 | | annotation!(producers); |
625 | | annotation!(dylink_0 = "dylink.0"); |
626 | | annotation!(metadata_code_branch_hint = "metadata.code.branch_hint"); |
627 | | } |