Skip to content
  • Federico Mena Quintero's avatar
    pattern.rs: Handle patterns with no children in a cleaner way · 52773b31
    Federico Mena Quintero authored
    We used to peek for node_has_children() in a few places, and used that
    as a special condition to see if a pattern is resolved.
    
    Now we establish the following.  After calling resolve_pattern():
    
    * pattern.node = Some(...) means that we have found a node with
      children among the fallbacks.
    
    * pattern.node = None means that we found no children.
    52773b31