Include debug assert
This commit is contained in:
parent
c5a2969255
commit
62fb5e85e4
1 changed files with 3 additions and 2 deletions
|
@ -1901,7 +1901,7 @@ namespace ts {
|
|||
sourceMapText = text;
|
||||
}
|
||||
else {
|
||||
Debug.assert(outputText === undefined, "Unexpected multiple outputs for the file: " + name);
|
||||
Debug.assert(outputText === undefined, `Unexpected multiple outputs for the file: '${name}'`);
|
||||
outputText = text;
|
||||
}
|
||||
},
|
||||
|
@ -4248,7 +4248,8 @@ namespace ts {
|
|||
else {
|
||||
// Method/function type parameter
|
||||
let declaration = <Node>getDeclarationOfKind(symbol, SyntaxKind.TypeParameter);
|
||||
declaration = declaration ? declaration.parent : undefined;
|
||||
Debug.assert(declaration !== undefined);
|
||||
declaration = declaration.parent;
|
||||
|
||||
if (declaration) {
|
||||
if (isFunctionLikeKind(declaration.kind)) {
|
||||
|
|
Loading…
Reference in a new issue