From 82604038c7f4a366ffb0ec9e61f56c5bbee90109 Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 6 Nov 2019 18:41:21 +0100 Subject: [PATCH] ZoneCodeGenerator: Fix recognizing but not doing anything with const tokens in variables --- src/ZoneCodeGenerator/Parsing/C_Header/Tests/TestVariable.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ZoneCodeGenerator/Parsing/C_Header/Tests/TestVariable.cs b/src/ZoneCodeGenerator/Parsing/C_Header/Tests/TestVariable.cs index bbc0e5f8..20be331f 100644 --- a/src/ZoneCodeGenerator/Parsing/C_Header/Tests/TestVariable.cs +++ b/src/ZoneCodeGenerator/Parsing/C_Header/Tests/TestVariable.cs @@ -20,7 +20,7 @@ namespace ZoneCodeGenerator.Parsing.C_Header.Tests private const string TokenConst = "constToken"; private static readonly TokenMatcher[] arrayOfPointersMatchers = { - new MatcherGroupOptional(new MatcherLiteral("const").WithTag(TokenConst)), + new MatcherGroupOptional(new MatcherLiteral("const").WithName(TokenConst)), new MatcherTypename().WithName(TypeNameToken), new MatcherGroupLoop(MatcherGroupLoop.LoopMode.ZeroOneMultiple, new MatcherLiteral("*").WithName(PointerTokens)), new MatcherName().WithName(NameToken), @@ -33,7 +33,7 @@ namespace ZoneCodeGenerator.Parsing.C_Header.Tests }; private static readonly TokenMatcher[] pointerToArrayMatchers = { - new MatcherGroupOptional(new MatcherLiteral("const").WithTag(TokenConst)), + new MatcherGroupOptional(new MatcherLiteral("const").WithName(TokenConst)), new MatcherTypename().WithName(TypeNameToken), new MatcherLiteral("("), new MatcherGroupLoop(MatcherGroupLoop.LoopMode.OneMultiple, new MatcherLiteral("*").WithName(PointerTokens)),