Example #1
0
        internal static bool IsDeletable(Identifier left, Identifier right, out bool isCtr)
        {
            Type ctr = SemanticAnalyser.map_to_ctr(left.name.Value);

            isCtr = ctr != null ? true : false;

            if (isCtr)
            {
                return(SemanticAnalyser.get_member(left, right) == null);
            }

            Console.WriteLine("ctr = {0}, left = {1} ({2}); right = {3} ({4})",
                              ctr, left, left.GetType(), right, right.GetType());
            return(false);
        }