@@ -15,23 +15,16 @@ public object VisitPARAMETER_fun(mathParser.PARAMETER_funContext context)
1515 if ( node != null ) {
1616 diy . Parameters . Add ( new ParameterInfo ( node . GetText ( ) , node . Symbol . StartIndex , node . Symbol . StopIndex ) ) ;
1717 }
18- //node = context.PARAMETER2();
19- //if (node != null) {
20- // string str = node.GetText();
21- // if (str.StartsWith('@')) {
22- // diy.Parameters.Add(new ParameterInfo(str.AsSpan(1).ToString(), node.Symbol.StartIndex, node.Symbol.StopIndex));
23- // } else if ((str.StartsWith('【') && str.EndsWith('】'))
24- // || (str.StartsWith('[') && str.EndsWith(']'))
25- // || (str.StartsWith('#') && str.EndsWith('#'))) {
26- // diy.Parameters.Add(new ParameterInfo(str.AsSpan(1, str.Length - 2).ToString(), node.Symbol.StartIndex, node.Symbol.StopIndex));
27- // } else {
28- // diy.Parameters.Add(new ParameterInfo(str, node.Symbol.StartIndex, node.Symbol.StopIndex));
29- // }
30- //}
31-
3218 return VisitChildren ( context ) ;
3319 }
34-
20+ public object VisitGetJsonValue_fun ( mathParser . GetJsonValue_funContext context )
21+ {
22+ ITerminalNode node = context . PARAMETER ( ) ;
23+ if ( node != null ) {
24+ diy . Parameters . Add ( new ParameterInfo ( node . GetText ( ) , node . Symbol . StartIndex , node . Symbol . StopIndex ) ) ;
25+ }
26+ return VisitChildren ( context ) ;
27+ }
3528 public object VisitDiyFunction_fun ( mathParser . DiyFunction_funContext context )
3629 {
3730 diy . Functions . Add ( context . PARAMETER ( ) . GetText ( ) ) ;
@@ -383,10 +376,7 @@ public object VisitGEOMEAN_fun(mathParser.GEOMEAN_funContext context)
383376 return VisitChildren ( context ) ;
384377 }
385378
386- public object VisitGetJsonValue_fun ( mathParser . GetJsonValue_funContext context )
387- {
388- return VisitChildren ( context ) ;
389- }
379+
390380
391381 public object VisitGUID_fun ( mathParser . GUID_funContext context )
392382 {
0 commit comments