(qualifiedName: string, limit = DEFAULT_LIMIT)
| 371 | * tested-by inference can run without a second query. |
| 372 | */ |
| 373 | export function callsIn(qualifiedName: string, limit = DEFAULT_LIMIT): string { |
| 374 | return `MATCH (a)-[r:${RELATIONS.invocation}]->(b)` |
| 375 | + ` WHERE b.${NODE_PROPS.qualifiedName} = "${escapeLiteral(qualifiedName)}"` |
| 376 | + ` ${ret(COLUMNS.callsIn)}` |
| 377 | + ` ORDER BY r.${REL_PROPS.line} LIMIT ${safeLimit(limit)}`; |
| 378 | } |
| 379 | |
| 380 | /** Error types a symbol raises. */ |
| 381 | export function raises(qualifiedName: string, limit = DEFAULT_LIMIT): string { |
no test coverage detected