Exemplo 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;
     }
 }
Exemplo n.º 2
0
 public virtual void CaseTKeywordFunc(TKeywordFunc node)
 {
     DefaultCase(node);
 }
Exemplo n.º 3
0
        public void SetKeywordFunc(TKeywordFunc node)
        {
            if(_keyword_func_ != null)
            {
            _keyword_func_.Parent(null);
            }

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

            node.Parent(this);
            }

            _keyword_func_ = node;
        }
Exemplo 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_);
     }
Exemplo n.º 5
0
 internal override void RemoveChild(Node child)
 {
     if ( _keyword_func_ == child )
     {
     _keyword_func_ = null;
     return;
     }
     if ( _operator_opening_parenthesis_ == child )
     {
     _operator_opening_parenthesis_ = null;
     return;
     }
     if ( _operator_closing_parenthesis_ == child )
     {
     _operator_closing_parenthesis_ = null;
     return;
     }
     if ( _type_ == child )
     {
     _type_ = null;
     return;
     }
     if ( _block_ == child )
     {
     _block_ = null;
     return;
     }
 }
Exemplo n.º 6
0
     public AFunction(
         TKeywordFunc _keyword_func_,
         TOperatorOpeningParenthesis _operator_opening_parenthesis_,
         TOperatorClosingParenthesis _operator_closing_parenthesis_,
         PType _type_,
         PBlock _block_
 )
     {
         SetKeywordFunc (_keyword_func_);
         SetOperatorOpeningParenthesis (_operator_opening_parenthesis_);
         SetOperatorClosingParenthesis (_operator_closing_parenthesis_);
         SetType (_type_);
         SetBlock (_block_);
     }
Exemplo n.º 7
0
 public override void CaseTKeywordFunc(TKeywordFunc node)
 {
     index = 32;
 }