From 740a285794d20f415c27b99cd403e640c9b585a9 Mon Sep 17 00:00:00 2001 From: Paul Lancaster Date: Sun, 11 Oct 2020 10:41:18 +0100 Subject: [PATCH] mdn/spec links@ --- .../primary/async_function_expression/mod.rs | 13 ++----------- .../hoistable/async_function_decl/mod.rs | 4 ++-- .../syntax/parser/statement/declaration/tests.rs | 2 +- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/boa/src/syntax/parser/expression/primary/async_function_expression/mod.rs b/boa/src/syntax/parser/expression/primary/async_function_expression/mod.rs index b810246e9c..bf63eec03a 100644 --- a/boa/src/syntax/parser/expression/primary/async_function_expression/mod.rs +++ b/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, diff --git a/boa/src/syntax/parser/statement/declaration/hoistable/async_function_decl/mod.rs b/boa/src/syntax/parser/statement/declaration/hoistable/async_function_decl/mod.rs index bfb73e44c0..0d00e508b4 100644 --- a/boa/src/syntax/parser/statement/declaration/hoistable/async_function_decl/mod.rs +++ b/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, diff --git a/boa/src/syntax/parser/statement/declaration/tests.rs b/boa/src/syntax/parser/statement/declaration/tests.rs index 1d501148b9..9e09cfe8c3 100644 --- a/boa/src/syntax/parser/statement/declaration/tests.rs +++ b/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,