Example #1
0
 internal override void RemoveChild(Node child)
 {
     if (_visibility_modifier_ == child)
     {
         _visibility_modifier_ = null;
         return;
     }
     if (_trigger_ == child)
     {
         _trigger_ = null;
         return;
     }
     if (_static_ == child)
     {
         _static_ = null;
         return;
     }
     if (_native_ == child)
     {
         _native_ = null;
         return;
     }
     if (_inline_ == child)
     {
         _inline_ = null;
         return;
     }
     if (_delegate_ == child)
     {
         _delegate_ = null;
         return;
     }
     if (_return_type_ == child)
     {
         _return_type_ = null;
         return;
     }
     if (_name_ == child)
     {
         _name_ = null;
         return;
     }
     if (_formals_.Contains(child))
     {
         _formals_.Remove(child);
         return;
     }
     if (_block_ == child)
     {
         _block_ = null;
         return;
     }
 }
Example #2
0
        public void SetNative(TNative node)
        {
            if (_native_ != null)
            {
                _native_.Parent(null);
            }

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

                node.Parent(this);
            }

            _native_ = node;
        }
 public virtual void CaseTNative(TNative node)
 {
     DefaultCase(node);
 }
Example #4
0
 public AMethodDecl(
         PVisibilityModifier _visibility_modifier_,
         TTrigger _trigger_,
         TStatic _static_,
         TNative _native_,
         TInline _inline_,
         TDelegate _delegate_,
         PType _return_type_,
         TIdentifier _name_,
         IList _formals_,
         PBlock _block_
 )
 {
     SetVisibilityModifier(_visibility_modifier_);
     SetTrigger(_trigger_);
     SetStatic(_static_);
     SetNative(_native_);
     SetInline(_inline_);
     SetDelegate(_delegate_);
     SetReturnType(_return_type_);
     SetName(_name_);
     this._formals_ = new TypedList(new Formals_Cast(this));
     this._formals_.Clear();
     this._formals_.AddAll(_formals_);
     SetBlock(_block_);
 }
Example #5
0
 public override void CaseTNative(TNative node)
 {
     index = 6;
 }