• N
    Replace old switch implementation with new one · d46f75ae
    Neal Gafter 提交于
    - Add a new bound node to represent the dispatch of a switch statement, and use it for a sequence of value tests in the pattern switch.
    - Generate a string switch using a hash code (as before) for a pattern switch.
    - Remove much of the old switch binder, except what is still used.
    - Fix wrong `InputType` recorded for BoundRecursivePattern.
    - Prevent cascaded subsumption errors from erroneous patterns.
    - Make the bound node factory use BoundSwitchDispatch rather than BoundSwitchStatement.
    - Remove obsolete bound nodes from previous switch implementation.
    d46f75ae
LambdaRewriter.cs 77.6 KB