|
|
@ -1,12 +1,3 @@ |
|
|
|
//! Async Function expression parsing.
|
|
|
|
|
|
|
|
//!
|
|
|
|
|
|
|
|
//! More information:
|
|
|
|
|
|
|
|
//! - [MDN documentation][mdn]
|
|
|
|
|
|
|
|
//! - [ECMAScript specification][spec]
|
|
|
|
|
|
|
|
//!
|
|
|
|
|
|
|
|
//! [mdn]:
|
|
|
|
|
|
|
|
//! [spec]:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#[cfg(test)] |
|
|
|
#[cfg(test)] |
|
|
|
mod tests; |
|
|
|
mod tests; |
|
|
|
|
|
|
|
|
|
|
@ -31,8 +22,8 @@ use std::io::Read; |
|
|
|
/// - [MDN documentation][mdn]
|
|
|
|
/// - [MDN documentation][mdn]
|
|
|
|
/// - [ECMAScript specification][spec]
|
|
|
|
/// - [ECMAScript specification][spec]
|
|
|
|
///
|
|
|
|
///
|
|
|
|
/// [mdn]:
|
|
|
|
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/async_function
|
|
|
|
/// [spec]:
|
|
|
|
/// [spec]: https://www.ecma-international.org/ecma-262/11.0/index.html#prod-AsyncFunctionExpression
|
|
|
|
#[derive(Debug, Clone, Copy)] |
|
|
|
#[derive(Debug, Clone, Copy)] |
|
|
|
pub(super) struct AsyncFunctionExpression { |
|
|
|
pub(super) struct AsyncFunctionExpression { |
|
|
|
allow_yield: AllowYield, |
|
|
|
allow_yield: AllowYield, |
|
|
|