Example #1
0
 internal override void RemoveChild(Node child)
 {
     if ( _keyword_decl_ == child )
     {
     _keyword_decl_ = null;
     return;
     }
     if ( _simple_ == child )
     {
     _simple_ = null;
     return;
     }
     if ( _identifier_ == child )
     {
     _identifier_ = null;
     return;
     }
 }
Example #2
0
 public virtual void CaseTKeywordDecl(TKeywordDecl node)
 {
     DefaultCase(node);
 }
Example #3
0
        public void SetKeywordDecl(TKeywordDecl node)
        {
            if(_keyword_decl_ != null)
            {
            _keyword_decl_.Parent(null);
            }

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

            node.Parent(this);
            }

            _keyword_decl_ = node;
        }
Example #4
0
     public ADeclareempty(
         TKeywordDecl _keyword_decl_,
         PSimple _simple_,
         TIdentifier _identifier_
 )
     {
         SetKeywordDecl (_keyword_decl_);
         SetSimple (_simple_);
         SetIdentifier (_identifier_);
     }
Example #5
0
 internal override void RemoveChild(Node child)
 {
     if ( _keyword_decl_ == child )
     {
     _keyword_decl_ = null;
     return;
     }
     if ( _simple_ == child )
     {
     _simple_ = null;
     return;
     }
     if ( _identifier_ == child )
     {
     _identifier_ = null;
     return;
     }
     if ( _operator_assign_ == child )
     {
     _operator_assign_ = null;
     return;
     }
     if ( _expression_ == child )
     {
     _expression_ = null;
     return;
     }
 }
Example #6
0
     public ADeclareassign(
         TKeywordDecl _keyword_decl_,
         PSimple _simple_,
         TIdentifier _identifier_,
         TOperatorAssign _operator_assign_,
         PExpression _expression_
 )
     {
         SetKeywordDecl (_keyword_decl_);
         SetSimple (_simple_);
         SetIdentifier (_identifier_);
         SetOperatorAssign (_operator_assign_);
         SetExpression (_expression_);
     }
Example #7
0
 public override void CaseTKeywordDecl(TKeywordDecl node)
 {
     index = 31;
 }