Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions utils/doclint/api_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)) {
Expand All @@ -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"
Expand Down
Loading