Fixed: argument_list should not be transcient.

This caused errors in single-parameter function calls when expressions
had more than a single term.
This commit is contained in:
arookas 2016-01-29 15:24:30 -05:00
parent 7da7b611e0
commit fcff623c29

View file

@ -54,7 +54,6 @@ namespace arookas {
case __sunConstants.AUGMENT_OPERATOR:
case __sunConstants.TERM:
case __sunConstants.PARAMETER:
case __sunConstants.ARGUMENT_LIST:
case __sunConstants.ARGUMENT: {
return ast[0];
}
@ -252,7 +251,7 @@ namespace arookas {
case __sunConstants.SEMICOLON:
case __sunConstants.COMMA:
case __sunConstants.DOT:
// case __sunConstants.ELLIPSIS: // do not exclude ellipsis for variadic parameters
case __sunConstants.ELLIPSIS:
case __sunConstants.QMARK: {
return null;
}