We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a9cc2ef + 38206fd commit 470e0c4Copy full SHA for 470e0c4
Using-the-Compiler-API.md
@@ -47,7 +47,7 @@ function compile(fileNames: string[], options: ts.CompilerOptions): void {
47
48
allDiagnostics.forEach(diagnostic => {
49
if (diagnostic.file) {
50
- let { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start!);
+ let { line, character } = ts.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start!);
51
let message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
52
console.log(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`);
53
} else {
0 commit comments