示例#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 }
     })
示例#2
0
 int _GetHashCode(OrExp x)
 => HashCode.Combine(
     typeof(OrExp),
     x.Scopes);
示例#3
0
 bool _Equals(OrExp l, OrExp r)
 => l.Scopes.Equals(r.Scopes);