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