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

Method hasDecoratedFunction

src/db/queries.ts:1724–1728  ·  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

1722
1723 /** Whether any function of `language` carries `decorator`: a project's marker for a framework it uses. */
1724 hasDecoratedFunction(language: Language, decorator: string): boolean {
1725 return !!this.db.prepare(
1726 `SELECT 1 FROM nodes WHERE kind = 'function' AND language = ? AND decorators LIKE ? LIMIT 1`
1727 ).get(language, `%"${decorator}"%`);
1728 }
1729
1730 /**
1731 * 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