Example #1
0
        public void SetToken(TThis node)
        {
            if (_token_ != null)
            {
                _token_.Parent(null);
            }

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

                node.Parent(this);
            }

            _token_ = node;
        }
Example #2
0
 internal override void RemoveChild(Node child)
 {
     if (_token_ == child)
     {
         _token_ = null;
         return;
     }
 }
Example #3
0
 public AThisLvalue(
         TThis _token_
 )
 {
     SetToken(_token_);
 }
Example #4
0
 internal override void RemoveChild(Node child)
 {
     if (_visibility_modifier_ == child)
     {
         _visibility_modifier_ = null;
         return;
     }
     if (_type_ == child)
     {
         _type_ = null;
         return;
     }
     if (_token_ == child)
     {
         _token_ = null;
         return;
     }
     if (_arg_type_ == child)
     {
         _arg_type_ = null;
         return;
     }
     if (_arg_name_ == child)
     {
         _arg_name_ = null;
         return;
     }
     if (_getter_ == child)
     {
         _getter_ = null;
         return;
     }
     if (_setter_ == child)
     {
         _setter_ = null;
         return;
     }
 }
Example #5
0
 public AThisArrayPropertyDecl(
         PVisibilityModifier _visibility_modifier_,
         PType _type_,
         TThis _token_,
         PType _arg_type_,
         TIdentifier _arg_name_,
         PBlock _getter_,
         PBlock _setter_
 )
 {
     SetVisibilityModifier(_visibility_modifier_);
     SetType(_type_);
     SetToken(_token_);
     SetArgType(_arg_type_);
     SetArgName(_arg_name_);
     SetGetter(_getter_);
     SetSetter(_setter_);
 }
 public virtual void CaseTThis(TThis node)
 {
     DefaultCase(node);
 }
Example #7
0
 public override void CaseTThis(TThis node)
 {
     index = 48;
 }