(qualifiedName: string, limit = DEFAULT_LIMIT)
| 403 | * which is why this is its own query rather than a filter on type references. |
| 404 | */ |
| 405 | export function envReads(qualifiedName: string, limit = DEFAULT_LIMIT): string { |
| 406 | return `MATCH (a)-[r:${RELATIONS.environment}]->(b:${ENV_LABEL})` |
| 407 | + ` WHERE a.${NODE_PROPS.qualifiedName} = "${escapeLiteral(qualifiedName)}"` |
| 408 | + ` ${ret(COLUMNS.envReads)} LIMIT ${safeLimit(limit)}`; |
| 409 | } |
| 410 | |
| 411 | /** Labels whose nodes carry the per-symbol complexity readings. */ |
| 412 | export const CALLABLE_LABELS = ['Function', 'Method'] as const; |
no test coverage detected