示例#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_);
 }
 public virtual void CaseTLBracket(TLBracket node)
 {
     DefaultCase(node);
 }
示例#9
0
 public override void CaseTLBracket(TLBracket node)
 {
     index = 57;
 }