Пример #1
0
        public int Accepts(CheezType sub)
        {
            Dictionary <string, (CheezType type, object value)> polyTypes = null;

            // TODO: necessary?
            //if (SubExprType.IsPolyType)
            //{
            //    polyTypes = new Dictionary<string, CheezType>();
            //    Workspace.CollectPolyTypes(SubExprType, lhs, polyTypes);
            //}


            return(SubExprType.Match(sub, polyTypes));
        }
Пример #2
0
 public int Accepts(CheezType sub)
 {
     return(SubExprType.Match(sub, null));
 }