(hookName: string, funcName: string)
| 243 | } |
| 244 | |
| 245 | const emitHookRef = (hookName: string, funcName: string) => { |
| 246 | const lineNum = funcLineMap.get(funcName); |
| 247 | if (lineNum === undefined) return; |
| 248 | const nodeId = generateNodeId(filePath, 'function', funcName, lineNum); |
| 249 | references.push({ |
| 250 | fromNodeId: nodeId, |
| 251 | referenceName: hookName, |
| 252 | referenceKind: 'references', |
| 253 | line: lineNum, |
| 254 | column: 0, |
| 255 | filePath, |
| 256 | language: 'php', |
| 257 | }); |
| 258 | }; |
| 259 | |
| 260 | // Strategy A: docblock `Implements hook_X().` followed by function definition. |
| 261 | // The docblock and function may be separated by blank lines. |
no test coverage detected