Skip to content

Commit

Permalink
docs(dotnet): move options arguments last (#5856)
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok authored Mar 18, 2021
1 parent 2367039 commit de16d17
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utils/doclint/generateDotnetApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -720,4 +722,4 @@ function registerAdditionalType(typeName, type) {
}

additionalTypes.set(typeName, type);
}
}

0 comments on commit de16d17

Please sign in to comment.