MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / decoratorName

Function decoratorName

src/ui-server/api/steps.ts:342–344  ·  view source on GitHub ↗

The name of a decorator, before its arguments.

(text: string)

Source from the content-addressed store, hash-verified

340
341/** The name of a decorator, before its arguments. */
342function decoratorName(text: string): string {
343 return text.replace(/\(.*$/s, '').trim();
344}
345
346/** The first string literal in a decorator's arguments — `'email'` of `@Process('email')`. */
347function decoratorLiteral(text: string): string | null {

Callers 2

isGuardDecoratorFunction · 0.85
consumerTriggerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected