@@ -15,19 +15,19 @@ 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- }
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+ // }
3131
3232 return VisitChildren ( context ) ;
3333 }
0 commit comments