Creates a failure with a specified message at the given node location.
(node: ts.Node, message: string)
| 81 | |
| 82 | /** Creates a failure with a specified message at the given node location. */ |
| 83 | protected createFailureAtNode(node: ts.Node, message: string) { |
| 84 | const sourceFile = node.getSourceFile(); |
| 85 | this.failures.push({ |
| 86 | filePath: this.fileSystem.resolve(sourceFile.fileName), |
| 87 | position: ts.getLineAndCharacterOfPosition(sourceFile, node.getStart()), |
| 88 | message: message, |
| 89 | }); |
| 90 | } |
| 91 | } |