Esempio n. 1
0
 internal override void RemoveChild(Node child)
 {
     if ( _keyword_func_ == child )
     {
     _keyword_func_ = null;
     return;
     }
     if ( _identifier_ == child )
     {
     _identifier_ = null;
     return;
     }
     if ( _operator_opening_parenthesis_ == child )
     {
     _operator_opening_parenthesis_ = null;
     return;
     }
     if ( _parameterlist_ == child )
     {
     _parameterlist_ = null;
     return;
     }
     if ( _operator_closing_parenthesis_ == child )
     {
     _operator_closing_parenthesis_ = null;
     return;
     }
     if ( _block_ == child )
     {
     _block_ = null;
     return;
     }
 }
Esempio n. 2
0
        public void SetParameterlist(PParameterlist node)
        {
            if(_parameterlist_ != null)
            {
            _parameterlist_.Parent(null);
            }

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

            node.Parent(this);
            }

            _parameterlist_ = node;
        }
Esempio n. 3
0
 internal override void RemoveChild(Node child)
 {
     if ( _parameterlist_ == child )
     {
     _parameterlist_ = null;
     return;
     }
     if ( _operator_comma_ == child )
     {
     _operator_comma_ = null;
     return;
     }
     if ( _parameter_ == child )
     {
     _parameter_ = null;
     return;
     }
 }
Esempio n. 4
0
     public AFunctiondeclaration(
         TKeywordFunc _keyword_func_,
         TIdentifier _identifier_,
         TOperatorOpeningParenthesis _operator_opening_parenthesis_,
         PParameterlist _parameterlist_,
         TOperatorClosingParenthesis _operator_closing_parenthesis_,
         PBlock _block_
 )
     {
         SetKeywordFunc (_keyword_func_);
         SetIdentifier (_identifier_);
         SetOperatorOpeningParenthesis (_operator_opening_parenthesis_);
         SetParameterlist (_parameterlist_);
         SetOperatorClosingParenthesis (_operator_closing_parenthesis_);
         SetBlock (_block_);
     }
Esempio n. 5
0
     public ABParameterlist(
         PParameterlist _parameterlist_,
         TOperatorComma _operator_comma_,
         PParameter _parameter_
 )
     {
         SetParameterlist (_parameterlist_);
         SetOperatorComma (_operator_comma_);
         SetParameter (_parameter_);
     }