Whether any function of `language` carries `decorator`: a project's marker for a framework it uses.
(language: Language, decorator: string)
| 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). |
no test coverage detected