MCPcopy Create free account
hub / github.com/angular/components / isMethod

Function isMethod

tools/dgeni/common/decorators.ts:8–10  ·  view source on GitHub ↗
(doc: MemberDoc)

Source from the content-addressed store, hash-verified

6import {findJsDocTag, hasJsDocTag} from './tags';
7
8export function isMethod(doc: MemberDoc): boolean {
9 return Object.hasOwn(doc, 'parameters') && !doc.isGetAccessor && !doc.isSetAccessor;
10}
11
12export function isGenericTypeParameter(doc: MemberDoc): boolean {
13 if (doc.containerDoc instanceof ClassExportDoc) {

Callers 1

isPropertyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected