diff --git a/boa_ast/src/operations.rs b/boa_ast/src/operations.rs index 525f5fdb078..17137866a93 100644 --- a/boa_ast/src/operations.rs +++ b/boa_ast/src/operations.rs @@ -852,11 +852,17 @@ pub fn class_private_name_resolver(node: &mut Class, top_level_class_index: usiz /// This function checks multiple syntax errors conditions for labels, `break` and `continue`. /// /// The following syntax errors are checked: -/// - [`ContainsDuplicateLabels`][https://tc39.es/ecma262/#sec-static-semantics-containsduplicatelabels] -/// - [`ContainsUndefinedBreakTarget`][https://tc39.es/ecma262/#sec-static-semantics-containsundefinedbreaktarget] -/// - [`ContainsUndefinedContinueTarget`][https://tc39.es/ecma262/#sec-static-semantics-containsundefinedcontinuetarget] -/// - Early errors for [`BreakStatement`][https://tc39.es/ecma262/#sec-break-statement-static-semantics-early-errors] -/// - Early errors for [`ContinueStatement`][https://tc39.es/ecma262/#sec-continue-statement-static-semantics-early-errors] +/// - [`ContainsDuplicateLabels`][ContainsDuplicateLabels] +/// - [`ContainsUndefinedBreakTarget`][ContainsUndefinedBreakTarget] +/// - [`ContainsUndefinedContinueTarget`][ContainsUndefinedContinueTarget] +/// - Early errors for [`BreakStatement`][BreakStatement] +/// - Early errors for [`ContinueStatement`][ContinueStatement] +/// +/// [ContainsDuplicateLabels]: https://tc39.es/ecma262/#sec-static-semantics-containsduplicatelabels +/// [ContainsUndefinedBreakTarget]: https://tc39.es/ecma262/#sec-static-semantics-containsundefinedbreaktarget +/// [ContainsUndefinedContinueTarget]: https://tc39.es/ecma262/#sec-static-semantics-containsundefinedcontinuetarget +/// [BreakStatement]: https://tc39.es/ecma262/#sec-break-statement-static-semantics-early-errors +/// [ContinueStatement]: https://tc39.es/ecma262/#sec-continue-statement-static-semantics-early-errors #[must_use] pub fn check_labels(node: &N, interner: &Interner) -> Option where