public visitInstanceMethod()

in src/docgen/render/markdown-render.ts [591:617]


  public visitInstanceMethod(
    method: MethodSchema,
  ): MarkdownDocument {
    const md = new MarkdownDocument({
      id: this.anchorFormatter({
        id: method.id,
        displayName: method.displayName,
        fqn: method.fqn,
        ...this.metadata,
      }),
      header: {
        title: method.displayName,
        pre: true,
        strike: method.docs.deprecated,
      },
    });

    if (method.usage) {
      md.code(this.language.toString(), method.usage);
    }

    for (const param of method.parameters) {
      md.section(this.visitParameter(param));
    }

    return md;
  }