Example #1
0
 internal override void RemoveChild(Node child)
 {
     if (_token_ == child)
     {
         _token_ = null;
         return;
     }
     if (_exp_ == child)
     {
         _exp_ = null;
         return;
     }
 }
Example #2
0
        public void SetToken(TCase 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 CaseTCase(TCase node)
 {
     DefaultCase(node);
 }
Example #4
0
 public ACaseSwitchCaseType(
         TCase _token_,
         PExp _exp_
 )
 {
     SetToken(_token_);
     SetExp(_exp_);
 }
Example #5
0
 public override void CaseTCase(TCase node)
 {
     index = 26;
 }