Exemplo n.º 1
0
        private string getFieldValueFromSemanticNodeAccessModifierField(object _node)
        {
            //fal_private, fal_internal, fal_protected, fal_public
            if (_node is IClassMemberNode)
            {
                //поместить в класс семант. правил структуру с их строковыми значениями
                IClassMemberNode node = _node as IClassMemberNode;

                if ((node).field_access_level == field_access_level.fal_internal)
                {
                    return("internal" + Indents.BetweenWords);
                }

                if ((node).field_access_level == field_access_level.fal_private)
                {
                    return("private" + Indents.BetweenWords);
                }

                if ((node).field_access_level == field_access_level.fal_protected)
                {
                    return("protected" + Indents.BetweenWords);
                }

                if ((node).field_access_level == field_access_level.fal_public)
                {
                    return("public" + Indents.BetweenWords);
                }
            }

            return("");
        }
Exemplo n.º 2
0
        private access_level get_class_member_access_level(IClassMemberNode icmn)
        {
            access_level al;

            switch (icmn.field_access_level)
            {
            case field_access_level.fal_public: al = access_level.al_public; break;

            case field_access_level.fal_protected: al = access_level.al_protected; break;

            case field_access_level.fal_private: al = access_level.al_private; break;

            case field_access_level.fal_internal: al = access_level.al_internal; break;

            default:
                al = access_level.al_private; break;
            }
            return(al);
        }
 public virtual void visit(IClassMemberNode value)
 {
 }
Exemplo n.º 4
0
 public void visit(IClassMemberNode value)
 {
     string s = value.GetType().ToString() + ".";
     //value.comperehensive_type
     prepare_string_node(value.field_access_level.ToString(), s + "field_access_level");
     prepare_string_node(value.polymorphic_state.ToString(), s + "polymorphic_state");
 }
Exemplo n.º 5
0
		public virtual void visit(IClassMemberNode value)
		{
		}
Exemplo n.º 6
0
 public void visit(IClassMemberNode value)
 {
     throw new System.NotSupportedException(value.GetType().ToString());
 }