Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(doclint): index return type properties for enclosingMethod (#39854)

Pavel Feldmane873132b12c9
diff --git a/utils/doclint/documentation.js b/utils/doclint/documentation.js
index 5344584da1..4246c72ed6 100644
--- a/utils/doclint/documentation.js
+++ b/utils/doclint/documentation.js
@@ -383,6 +383,9 @@ class Member {
arg.type?.properties?.sort((p1, p2) => p1.name.localeCompare(p2.name));
indexArg(arg);
}
+ // Also index return type properties so they have enclosingMethod set.
+ if (this.kind === 'method' || this.kind === 'property')
+ indexArg(this);
}
/**