コード例 #1
0
 internal override void RemoveChild(Node child)
 {
     if (_visibility_modifier_ == child)
     {
         _visibility_modifier_ = null;
         return;
     }
     if (_static_ == child)
     {
         _static_ = null;
         return;
     }
     if (_token_ == child)
     {
         _token_ = null;
         return;
     }
     if (_type_ == child)
     {
         _type_ = null;
         return;
     }
     if (_name_ == child)
     {
         _name_ = null;
         return;
     }
 }
コード例 #2
0
        public void SetToken(TTypedef node)
        {
            if (_token_ != null)
            {
                _token_.Parent(null);
            }

            if (node != null)
            {
                if (node.Parent() != null)
                {
                    node.Parent().RemoveChild(node);
                }

                node.Parent(this);
            }

            _token_ = node;
        }
コード例 #3
0
 public virtual void CaseTTypedef(TTypedef node)
 {
     DefaultCase(node);
 }
コード例 #4
0
 public ATypedefDecl(
         PVisibilityModifier _visibility_modifier_,
         TStatic _static_,
         TTypedef _token_,
         PType _type_,
         PType _name_
 )
 {
     SetVisibilityModifier(_visibility_modifier_);
     SetStatic(_static_);
     SetToken(_token_);
     SetType(_type_);
     SetName(_name_);
 }
コード例 #5
0
 public override void CaseTTypedef(TTypedef node)
 {
     index = 29;
 }