Пример #1
0
        public void SetToken(TLBracket node)
        {
            if (_token_ != null)
            {
                _token_.Parent(null);
            }

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

                node.Parent(this);
            }

            _token_ = node;
        }
Пример #2
0
 internal override void RemoveChild(Node child)
 {
     if (_token_ == child)
     {
         _token_ = null;
         return;
     }
     if (_type_ == child)
     {
         _type_ = null;
         return;
     }
 }
Пример #3
0
 public AArrayTempType(
         TLBracket _token_,
         PType _type_,
         PExp _dimention_,
         TIntegerLiteral _int_dim_
 )
 {
     SetToken(_token_);
     SetType(_type_);
     SetDimention(_dimention_);
     SetIntDim(_int_dim_);
 }
Пример #4
0
 public ADynamicArrayType(
         TLBracket _token_,
         PType _type_
 )
 {
     SetToken(_token_);
     SetType(_type_);
 }
Пример #5
0
 public AArrayShadyDynamicOps(
         TLBracket _token_,
         PExp _exp_
 )
 {
     SetToken(_token_);
     SetExp(_exp_);
 }
Пример #6
0
 internal override void RemoveChild(Node child)
 {
     if (_token_ == child)
     {
         _token_ = null;
         return;
     }
     if (_base_ == child)
     {
         _base_ = null;
         return;
     }
     if (_index_ == child)
     {
         _index_ = null;
         return;
     }
 }
Пример #7
0
 public AArrayLvalue(
         TLBracket _token_,
         PExp _base_,
         PExp _index_
 )
 {
     SetToken(_token_);
     SetBase(_base_);
     SetIndex(_index_);
 }
Пример #8
0
 public virtual void CaseTLBracket(TLBracket node)
 {
     DefaultCase(node);
 }
Пример #9
0
 public override void CaseTLBracket(TLBracket node)
 {
     index = 57;
 }