Skip to content

Commit d66f703

Browse files
author
linzhijun
committed
fix
1 parent 8d2a746 commit d66f703

File tree

7 files changed

+11598
-8114
lines changed

7 files changed

+11598
-8114
lines changed

csharp/ToolGood.Algorithm/Internals/DiyNameVisitor.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)