tidy: Update pattern for checking for missing specification links. (#34552)

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Josh Matthews 2024-12-11 08:36:57 -05:00 committed by GitHub
parent bd37d5496d
commit 064569ff3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

View file

@ -29,6 +29,7 @@ impl GPUCanvasContext {
}
impl GPUCanvasContextMethods<crate::DomTypeHolder> for GPUCanvasContext {
/// <https://gpuweb.github.io/gpuweb/#dom-gpucanvascontext-canvas>
fn Canvas(&self) -> UnionTypes::HTMLCanvasElementOrOffscreenCanvas {
unimplemented!()
}

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
impl SpecLinkMethods for SpecLink {
impl SpecLinkMethods<crate::DomTypeHolder> for SpecLink {
amacro!("Macros inside impls should trigger spec checks.")
// Method declarations should trigger spec checks.

View file

@ -905,7 +905,7 @@ def check_spec(file_name, lines):
brace_count = 0
in_impl = False
pattern = "impl {}Methods for {} {{".format(file_name, file_name)
pattern = "impl {}Methods<crate::DomTypeHolder> for {} {{".format(file_name, file_name)
for idx, line in enumerate(map(lambda line: line.decode("utf-8"), lines)):
if "// check-tidy: no specs after this line" in line: