You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ContextualKeyword: cache classification on UnquotedString, retire ParserContext.AsContextual/MatchContextual, fold TRY/CATCH/THROW/WORK/DELAY/ATOMIC contextual-text matches into the enum.
/// The test cross-checks both directions: every entry in <see cref="Keyword"/>
@@ -95,7 +97,7 @@ public void Keyword_Enum_MatchesCanonicalReservedList()
95
97
96
98
IsEmpty(
97
99
unexpectedExtras,
98
-
$"Keyword enum has entries not in the canonical reserved list at {SourceUrl}: {string.Join(", ",unexpectedExtras)}. The reserved-keyword list is frozen — remove the entry from the enum (and route any contextual-keyword usage through UnquotedString, matching the TRY / CATCH / THROW pattern).");
100
+
$"Keyword enum has entries not in the canonical reserved list at {SourceUrl}: {string.Join(", ",unexpectedExtras)}. The reserved-keyword list is frozen — remove the entry from Keyword. If the parser needs to recognize the identifier in specific positions, add it to ContextualKeyword instead; call sites read it via UnquotedString.ContextualKeyword (see the TRY / CATCH / THROW pattern in Simulation.TryCatch.cs / Simulation.Throw.cs).");
0 commit comments