mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Debug.assert(false) -> Debug.fail()
This commit is contained in:
1 parent
71fb02c099
commit
eec82408d5
2 files changed
+2
-2
No files matched your search
@@ -334,7 +334,7 @@ namespace ts.FindAllReferences.Core {
|
||||
references.push({ type: "node", node: (decl as ts.ModuleDeclaration).name });
|
||||
break;
|
||||
default:
|
||||
Debug.assert(false);
|
||||
Debug.fail("Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -405,7 +405,7 @@ namespace ts.FindAllReferences {
|
||||
case SyntaxKind.ExternalModuleReference:
|
||||
return (decl as ExternalModuleReference).parent;
|
||||
default:
|
||||
Debug.assert(false);
|
||||
Debug.fail(`Unexpected module specifier parent: ${decl.kind}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user