Пример #1
0
 internal override void RemoveChild(Node child)
 {
     if (_token_ == child)
     {
         _token_ = null;
         return;
     }
     if (_type_ == child)
     {
         _type_ = null;
         return;
     }
     if (_exp_ == child)
     {
         _exp_ = null;
         return;
     }
 }
Пример #2
0
        public void SetToken(TSharp 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 CaseTSharp(TSharp node)
 {
     DefaultCase(node);
 }
Пример #4
0
 public ASharpCastExp(
         TSharp _token_,
         PType _type_,
         PExp _exp_
 )
 {
     SetToken(_token_);
     SetType(_type_);
     SetExp(_exp_);
 }
Пример #5
0
 public override void CaseTSharp(TSharp node)
 {
     index = 66;
 }