How to use the @microsoft/tsdoc/lib/beta/DeclarationReference.Meaning.Member function in @microsoft/tsdoc

To help you get started, we’ve selected a few @microsoft/tsdoc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / rushstack / apps / api-extractor / src / generators / DeclarationReferenceGenerator.ts View on Github external
return Meaning.Function;
  }
  if (symbol.flags & meaning & ts.SymbolFlags.Variable) {
    return Meaning.Variable;
  }
  if (symbol.flags & meaning & ts.SymbolFlags.Module) {
    return Meaning.Namespace;
  }
  if (symbol.flags & meaning & ts.SymbolFlags.ClassMember) {
    return Meaning.Member;
  }
  if (symbol.flags & meaning & ts.SymbolFlags.Constructor) {
    return Meaning.Constructor;
  }
  if (symbol.flags & meaning & ts.SymbolFlags.EnumMember) {
    return Meaning.Member;
  }
  if (symbol.flags & meaning & ts.SymbolFlags.Signature) {
    if (symbol.escapedName === ts.InternalSymbolName.Call) {
      return Meaning.CallSignature;
    }
    if (symbol.escapedName === ts.InternalSymbolName.New) {
      return Meaning.ConstructSignature;
    }
    if (symbol.escapedName === ts.InternalSymbolName.Index) {
      return Meaning.IndexSignature;
    }
  }
  if (symbol.flags & meaning & ts.SymbolFlags.TypeParameter) {
    // This should have already been handled in `getDeclarationReferenceOfSymbol`.
    throw new InternalError('Not supported.');
  }
github microsoft / rushstack / apps / api-extractor-model / src / model / ApiEnumMember.ts View on Github external
public buildCanonicalReference(): DeclarationReference {
    const nameComponent: Component = DeclarationReference.parseComponent(this.name);
    return (this.parent ? this.parent.canonicalReference : DeclarationReference.empty())
      .addNavigationStep(Navigation.Exports, nameComponent)
      .withMeaning(Meaning.Member);
  }
}
github microsoft / rushstack / apps / api-extractor-model / src / model / ApiMethodSignature.ts View on Github external
public buildCanonicalReference(): DeclarationReference {
    const nameComponent: Component = DeclarationReference.parseComponent(this.name);
    return (this.parent ? this.parent.canonicalReference : DeclarationReference.empty())
      .addNavigationStep(Navigation.Members, nameComponent)
      .withMeaning(Meaning.Member)
      .withOverloadIndex(this.overloadIndex);
  }
}
github microsoft / rushstack / apps / api-extractor-model / src / model / ApiMethod.ts View on Github external
public buildCanonicalReference(): DeclarationReference {
    const nameComponent: Component = DeclarationReference.parseComponent(this.name);
    return (this.parent ? this.parent.canonicalReference : DeclarationReference.empty())
      .addNavigationStep(this.isStatic ? Navigation.Exports : Navigation.Members, nameComponent)
      .withMeaning(Meaning.Member)
      .withOverloadIndex(this.overloadIndex);
  }
}
github microsoft / rushstack / apps / api-extractor-model / src / model / ApiProperty.ts View on Github external
public buildCanonicalReference(): DeclarationReference {
    const nameComponent: Component = DeclarationReference.parseComponent(this.name);
    return (this.parent ? this.parent.canonicalReference : DeclarationReference.empty())
      .addNavigationStep(this.isStatic ? Navigation.Exports : Navigation.Members, nameComponent)
      .withMeaning(Meaning.Member);
  }
}
github microsoft / rushstack / apps / api-extractor-model / src / model / ApiPropertySignature.ts View on Github external
public buildCanonicalReference(): DeclarationReference {
    const nameComponent: Component = DeclarationReference.parseComponent(this.name);
    return (this.parent ? this.parent.canonicalReference : DeclarationReference.empty())
      .addNavigationStep(Navigation.Members, nameComponent)
      .withMeaning(Meaning.Member);
  }
}