csharp
public static class ExceptionUtilitiesGuards for states the code believes cannot happen.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Not syntax-specific — this belongs in a general Vixen.Core primitives assembly once one exists. It lives here because this is the lowest project in the graph today and both the shared tree and Raven need it.
Methods (1)
public static Exception Unreachable(string? path = null, int line = 0)Thrown from a branch believed unreachable, reporting where. Preferred over a bare NotSupportedException in an exhaustive switch: when the assumption turns out to be wrong, the message names the file and line.
Used by (2)
- SyntaxListVixen.Core.Syntax
- SyntaxAntlrVisitorVixen.Raven.Tests