Exemple #1
0
 public string Visit(AST_ListMethod node)
 {
     foreach (var item in node.Methods)
     {
         methodcontext.Reset(item.Id.Id);
         item?.Visit(this);
     }
     return("");
 }
Exemple #2
0
        public bool Visit(AST_ListMethod node)
        {
            bool visit_result = true;

            foreach (var method_def in node.Methods)
            {
                visit_result &= method_def.Visit(this);
            }
            return(visit_result);
        }
Exemple #3
0
        public bool Visit(AST_ListMethod node)
        {
            bool solve = true;

            foreach (var item in node.Methods)
            {
                solve &= item.Visit(this);
            }

            return(solve);
        }
Exemple #4
0
        public bool Visit(AST_ListMethod node)
        {
            bool solve = true;

            HashSet <string> all_methods = new HashSet <string>();

            foreach (var method in node.Methods)
            {
                if (!all_methods.Add(method.Id.Id))
                {
                    solve = false;
                    CurrErrorLoger.LogError(method.Id.row, method.Id.col, "El metodo " + method.Id.Id + " ya esta definido en la clase");
                }
            }

            return(solve);
        }
Exemple #5
0
 public Base_Object_Value Visit(AST_ListMethod node)
 {
     throw new NotImplementedException();
 }