コード例 #1
0
        protected override bool LLEquals(SwiftType other)
        {
            SwiftTupleType st = other as SwiftTupleType;

            if (st == null)
            {
                return(false);
            }
            return(Contents.SequenceEqual(st.Contents));
        }
コード例 #2
0
 static bool TypeMatches(FunctionDeclaration decl, List <ParameterItem> parms, SwiftTupleType tuple, TypeMapper typeMap)
 {
     if (tuple == null || parms.Count != tuple.Contents.Count)
     {
         return(false);
     }
     for (int i = 0; i < parms.Count; i++)
     {
         if (!TypeMatches(decl, parms [i], tuple.Contents [i], decl.IsSubscript, typeMap))
         {
             return(false);
         }
     }
     return(true);
 }