Ejemplo n.º 1
0
 private static Scope Read(Scope _, OrExp x)
 {
     var scopes2 = x.Scopes
                   .Select(Read)
                   .SelectMany(s => s.Exp switch
     {
         OrExp y => y.Scopes.AsEnumerable(),
         _ => new[] { s }
     })
Ejemplo n.º 2
0
 int _GetHashCode(OrExp x)
 => HashCode.Combine(
     typeof(OrExp),
     x.Scopes);
Ejemplo n.º 3
0
 bool _Equals(OrExp l, OrExp r)
 => l.Scopes.Equals(r.Scopes);