public void setParams ( List < AstNode > params ) { if ( params == null ) { this . params = null ; } else { if ( this . params != null ) this . params . clear ( ) ; for ( AstNode param : params ) addParam ( param ) ; } }
Sets the function parameter list and sets the parent for each element of the list .