Browse Source

mdn/spec links@

pull/836/head
Paul Lancaster 4 years ago
parent
commit
740a285794
  1. 13
      boa/src/syntax/parser/expression/primary/async_function_expression/mod.rs
  2. 4
      boa/src/syntax/parser/statement/declaration/hoistable/async_function_decl/mod.rs
  3. 2
      boa/src/syntax/parser/statement/declaration/tests.rs

13
boa/src/syntax/parser/expression/primary/async_function_expression/mod.rs

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

4
boa/src/syntax/parser/statement/declaration/hoistable/async_function_decl/mod.rs

@ -17,8 +17,8 @@ use std::io::Read;
/// - [MDN documentation][mdn]
/// - [ECMAScript specification][spec]
///
/// [mdn]:
/// [spec]:
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function
/// [spec]: https://www.ecma-international.org/ecma-262/11.0/index.html#prod-AsyncFunctionDeclaration
#[derive(Debug, Clone, Copy)]
pub(super) struct AsyncFunctionDeclaration {
allow_yield: AllowYield,

2
boa/src/syntax/parser/statement/declaration/tests.rs

@ -1,7 +1,7 @@
use crate::syntax::{
ast::{
node::{
ConstDecl, ConstDeclList, FunctionDecl, LetDecl, LetDeclList, Node, VarDecl,
ConstDecl, ConstDeclList, LetDecl, LetDeclList, Node, VarDecl,
VarDeclList,
},
Const,

Loading…
Cancel
Save