@@ -1729,7 +1729,7 @@ public FunctionBase VisitHMACSHA1_fun(mathParser.HMACSHA1_funContext context)
17291729 var args2 = exprs [ 1 ] . Accept ( this ) ;
17301730 if ( exprs . Length == 2 ) return new Function_HMACSHA1 ( args1 , args2 , null ) ;
17311731 var args3 = exprs [ 2 ] . Accept ( this ) ;
1732- return new Function_HMACSHA1 ( args1 , args2 , args3 ) ;
1732+ return new Function_HMACSHA1 ( args1 , args2 , args3 ) ;
17331733 }
17341734
17351735 public FunctionBase VisitHMACSHA256_fun ( mathParser . HMACSHA256_funContext context )
@@ -1739,7 +1739,7 @@ public FunctionBase VisitHMACSHA256_fun(mathParser.HMACSHA256_funContext context
17391739 var args2 = exprs [ 1 ] . Accept ( this ) ;
17401740 if ( exprs . Length == 2 ) return new Function_HMACSHA256 ( args1 , args2 , null ) ;
17411741 var args3 = exprs [ 2 ] . Accept ( this ) ;
1742- return new Function_HMACSHA256 ( args1 , args2 , args3 ) ;
1742+ return new Function_HMACSHA256 ( args1 , args2 , args3 ) ;
17431743 }
17441744
17451745 public FunctionBase VisitHMACSHA512_fun ( mathParser . HMACSHA512_funContext context )
@@ -1749,27 +1749,25 @@ public FunctionBase VisitHMACSHA512_fun(mathParser.HMACSHA512_funContext context
17491749 var args2 = exprs [ 1 ] . Accept ( this ) ;
17501750 if ( exprs . Length == 2 ) return new Function_HMACSHA512 ( args1 , args2 , null ) ;
17511751 var args3 = exprs [ 2 ] . Accept ( this ) ;
1752- return new Function_HMACSHA512 ( args1 , args2 , args3 ) ;
1752+ return new Function_HMACSHA512 ( args1 , args2 , args3 ) ;
17531753 }
17541754
17551755 public FunctionBase VisitTRIMSTART_fun ( mathParser . TRIMSTART_funContext context )
17561756 {
17571757 var exprs = context . expr ( ) ;
1758- FunctionBase [ ] args = new FunctionBase [ exprs . Length ] ;
1759- for ( int i = 0 ; i < exprs . Length ; i ++ ) {
1760- args [ i ] = exprs [ i ] . Accept ( this ) ;
1761- }
1762- return new Function_TRIMSTART ( args ) ;
1758+ var args1 = exprs [ 0 ] . Accept ( this ) ;
1759+ if ( exprs . Length == 1 ) return new Function_TRIMSTART ( args1 , null ) ;
1760+ var args2 = exprs [ 1 ] . Accept ( this ) ;
1761+ return new Function_TRIMSTART ( args1 , args2 ) ;
17631762 }
17641763
17651764 public FunctionBase VisitTRIMEND_fun ( mathParser . TRIMEND_funContext context )
17661765 {
17671766 var exprs = context . expr ( ) ;
1768- FunctionBase [ ] args = new FunctionBase [ exprs . Length ] ;
1769- for ( int i = 0 ; i < exprs . Length ; i ++ ) {
1770- args [ i ] = exprs [ i ] . Accept ( this ) ;
1771- }
1772- return new Function_TRIMEND ( args ) ;
1767+ var args1 = exprs [ 0 ] . Accept ( this ) ;
1768+ if ( exprs . Length == 1 ) return new Function_TRIMEND ( args1 , null ) ;
1769+ var args2 = exprs [ 1 ] . Accept ( this ) ;
1770+ return new Function_TRIMEND ( args1 , args2 ) ;
17731771 }
17741772
17751773 public FunctionBase VisitINDEXOF_fun ( mathParser . INDEXOF_funContext context )
0 commit comments