(sql: string)
| 662 | } |
| 663 | |
| 664 | private edgeKindStmt(sql: string): SqliteStatement { |
| 665 | let stmt = this.edgeKindStmts.get(sql); |
| 666 | if (!stmt) { |
| 667 | if (this.edgeKindStmts.size >= 64) this.edgeKindStmts.delete(this.edgeKindStmts.keys().next().value!); |
| 668 | stmt = this.db.prepare(sql); |
| 669 | this.edgeKindStmts.set(sql, stmt); |
| 670 | } |
| 671 | return stmt; |
| 672 | } |
| 673 | |
| 674 | /** Set the normalized project-name tokens used to down-weight non-discriminative |
| 675 | * query words in path scoring (#720). Called once when the project opens. */ |
no test coverage detected