diff --git a/utils/doclint/api_parser.js b/utils/doclint/api_parser.js index a4d504ea48d6e..28e67114509e5 100644 --- a/utils/doclint/api_parser.js +++ b/utils/doclint/api_parser.js @@ -93,6 +93,9 @@ class ApiParser { if (!match) throw new Error('Invalid member: ' + spec.text); const metainfo = extractMetainfo(spec); + if (metainfo.hidden) + return; + const name = match[3]; let returnType = null; let optional = false; @@ -125,8 +128,6 @@ class ApiParser { const clazz = /** @type {docs.Class} */(this.classes.get(match[2])); if (!clazz) throw new Error(`Unknown class ${match[2]} for member: ` + spec.text); - if (metainfo.hidden) - return; const existingMember = clazz.membersArray.find(m => m.name === name && m.kind === member.kind); if (existingMember && isTypeOverride(existingMember, member)) { @@ -146,6 +147,9 @@ class ApiParser { const match = spec.text.match(/(param|option): (.*)/); if (!match) throw `Something went wrong with matching ${spec.text}`; + const metainfo = extractMetainfo(spec); + if (metainfo.hidden) + return null; // For "test.describe.only.title": // - className is "test"