Strings can be constant in C#

This commit is contained in:
Sam Harwell 2013-02-26 10:51:42 -06:00
parent e5a1ed6996
commit 54c4bc826f
5 changed files with 8 additions and 8 deletions

@ -1 +1 @@
Subproject commit b48d1045d1b494172f1a1c572aa3798868c94aa4
Subproject commit f01e18ba72eda0825e09da106ff9c9e7c337cd22

View File

@ -48,9 +48,9 @@ namespace Antlr4.Runtime.Atn
public const char RuleVariantDelimiter = '$';
public static readonly string RuleLfVariantMarker = "$lf$";
public const string RuleLfVariantMarker = "$lf$";
public static readonly string RuleNolfVariantMarker = "$nolf$";
public const string RuleNolfVariantMarker = "$nolf$";
/// <summary>Must distinguish between missing edge and edge we know leads nowhere</summary>
[NotNull]

View File

@ -49,11 +49,11 @@ namespace Antlr4.Runtime.Misc
/// <author>Sam Harwell</author>
public class RuleDependencyProcessor : AbstractProcessor
{
public static readonly string RuleDependencyClassName = "org.antlr.v4.runtime.RuleDependency";
public const string RuleDependencyClassName = "org.antlr.v4.runtime.RuleDependency";
public static readonly string RuleDependenciesClassName = "org.antlr.v4.runtime.RuleDependencies";
public const string RuleDependenciesClassName = "org.antlr.v4.runtime.RuleDependencies";
public static readonly string RuleVersionClassName = "org.antlr.v4.runtime.RuleVersion";
public const string RuleVersionClassName = "org.antlr.v4.runtime.RuleVersion";
public RuleDependencyProcessor()
{

View File

@ -55,7 +55,7 @@ namespace Antlr4.Runtime.Misc
/// </remarks>
public class TestRig
{
public static readonly string LexerStartRuleName = "tokens";
public const string LexerStartRuleName = "tokens";
protected internal string grammarName;

View File

@ -94,7 +94,7 @@ namespace Antlr4.Runtime
/// </remarks>
public class TokenStreamRewriter
{
public static readonly string DefaultProgramName = "default";
public const string DefaultProgramName = "default";
public const int ProgramInitSize = 100;