We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5a2969 commit 62fb5e8Copy full SHA for 62fb5e8
1 file changed
src/services/services.ts
@@ -1901,7 +1901,7 @@ namespace ts {
1901
sourceMapText = text;
1902
}
1903
else {
1904
- Debug.assert(outputText === undefined, "Unexpected multiple outputs for the file: " + name);
+ Debug.assert(outputText === undefined, `Unexpected multiple outputs for the file: '${name}'`);
1905
outputText = text;
1906
1907
},
@@ -4248,7 +4248,8 @@ namespace ts {
4248
4249
// Method/function type parameter
4250
let declaration = <Node>getDeclarationOfKind(symbol, SyntaxKind.TypeParameter);
4251
- declaration = declaration ? declaration.parent : undefined;
+ Debug.assert(declaration !== undefined);
4252
+ declaration = declaration.parent;
4253
4254
if (declaration) {
4255
if (isFunctionLikeKind(declaration.kind)) {
0 commit comments