示例#1
0
 internal override void RemoveChild(Node child)
 {
     if (_token_ == child)
     {
         _token_ = null;
         return;
     }
     if (_name_ == child)
     {
         _name_ = null;
         return;
     }
     if (_args_.Contains(child))
     {
         _args_.Remove(child);
         return;
     }
 }
示例#2
0
        public void SetToken(TAsyncInvoke node)
        {
            if (_token_ != null)
            {
                _token_.Parent(null);
            }

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

                node.Parent(this);
            }

            _token_ = node;
        }
 public virtual void CaseTAsyncInvoke(TAsyncInvoke node)
 {
     DefaultCase(node);
 }
示例#4
0
 public AAsyncInvokeStm(
         TAsyncInvoke _token_,
         PLvalue _name_,
         IList _args_
 )
 {
     SetToken(_token_);
     SetName(_name_);
     this._args_ = new TypedList(new Args_Cast(this));
     this._args_.Clear();
     this._args_.AddAll(_args_);
 }
示例#5
0
 public override void CaseTAsyncInvoke(TAsyncInvoke node)
 {
     index = 23;
 }