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

Method hasDecoratedFunction

src/db/queries.ts:1722–1726  ·  view source on GitHub ↗

Whether any function of `language` carries `decorator`: a project's marker for a framework it uses.

(language: Language, decorator: string)

Source from the content-addressed store, hash-verified

1720
1721 /** Whether any function of `language` carries `decorator`: a project's marker for a framework it uses. */
1722 hasDecoratedFunction(language: Language, decorator: string): boolean {
1723 return !!this.db.prepare(
1724 `SELECT 1 FROM nodes WHERE kind = 'function' AND language = ? AND decorators LIKE ? LIMIT 1`
1725 ).get(language, `%"${decorator}"%`);
1726 }
1727
1728 /**
1729 * Get nodes by exact name match (uses idx_nodes_name index).

Callers 1

hasTauriCoreFunction · 0.80

Calls 2

getMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected