License
Distributed under the
Boost Software License 1.0.
(See accompanying file LICENSE) Source: core/internal/_switch_.d
This module contains compiler support for switch...case statements
(See accompanying file LICENSE) Source: core/internal/_switch_.d
int __switch(T, caseLabels...)(/*in*/ const scope T[] condition) pure nothrow @safe @nogcSupport for switch statements switching on strings. Params: caseLabels = sorted array of strings generated by compiler. Note the strings are sorted by length first, and then lexicographically. cond...int __switchSearch(T)(/*in*/ const scope T[][] cases, /*in*/ const scope T[] condition) pure nothrow @safe @nogcvoid __switch_error()(string file = __FILE__, size_t line = __LINE__)Compiler lowers final switch default case to this (which is a runtime error) Old implementation is in core/exception.d