mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 19:16:17 -06:00
Debug.assert(false) -> Debug.fail()
This commit is contained in:
parent
71fb02c099
commit
eec82408d5
@ -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}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user