Skip to content

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

docs(dotnet): move options arguments last (#5856)

Darío Kondratiukde16d17726bc
diff --git a/utils/doclint/generateDotnetApi.js b/utils/doclint/generateDotnetApi.js
index 0575d03350..d4d9bfafa7 100644
--- a/utils/doclint/generateDotnetApi.js
+++ b/utils/doclint/generateDotnetApi.js
@@ -521,7 +521,9 @@ function renderMethod(member, parent, output, name) {
pushArg(argType, argName, arg);
};
- member.args.forEach(parseArg);
+ member.argsArray
+ .sort((a, b) => b.alias === 'options' ? -1 : 0) //move options to the back to the arguments list
+ .forEach(parseArg);
output(XmlDoc.renderXmlDoc(member.spec, maxDocumentationColumnWidth));
paramDocs.forEach((val, ind) => {
@@ -720,4 +722,4 @@ function registerAdditionalType(typeName, type) {
}
additionalTypes.set(typeName, type);
-}
\ No newline at end of file
+}