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)] #[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,

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

@ -17,8 +17,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/Statements/async_function
/// [spec]: /// [spec]: https://www.ecma-international.org/ecma-262/11.0/index.html#prod-AsyncFunctionDeclaration
#[derive(Debug, Clone, Copy)] #[derive(Debug, Clone, Copy)]
pub(super) struct AsyncFunctionDeclaration { pub(super) struct AsyncFunctionDeclaration {
allow_yield: AllowYield, allow_yield: AllowYield,

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

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

Loading…
Cancel
Save