From 8b337bd44f0d0fec210e2ea1652f7a3b233eb096 Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Tue, 8 Apr 2014 07:01:01 -0500 Subject: [PATCH] Update CSharp.stg to match changes since 4.2.1 --- .../org/antlr/v4/tool/templates/codegen/CSharp/CSharp.stg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tool/resources/org/antlr/v4/tool/templates/codegen/CSharp/CSharp.stg b/tool/resources/org/antlr/v4/tool/templates/codegen/CSharp/CSharp.stg index 693c9ae2e..48a184a68 100644 --- a/tool/resources/org/antlr/v4/tool/templates/codegen/CSharp/CSharp.stg +++ b/tool/resources/org/antlr/v4/tool/templates/codegen/CSharp/CSharp.stg @@ -606,7 +606,7 @@ StarBlock(choice, alts, sync, iteration) ::= << State = ; _errHandler.Sync(this); _alt = Interpreter.AdaptivePredict(_input,,_ctx); -while ( _alt!= && _alt!=-1 ) { +while ( _alt!= && _alt!=ATN.InvalidAltNumber ) { if ( _alt==1+1 ) { @@ -620,7 +620,7 @@ while ( _alt!= && _alt!=-1 ) { PlusBlock(choice, alts, error) ::= << State = ; _errHandler.Sync(this); -_alt = Interpreter.AdaptivePredict(_input,,_ctx); +_alt = 1+1; do { switch (_alt) { +1: State = ; _errHandler.Sync(this); _alt = Interpreter.AdaptivePredict(_input,,_ctx); -} while ( _alt!= && _alt!=-1 ); +} while ( _alt!= && _alt!=ATN.InvalidAltNumber ); >> Sync(s) ::= "Sync();"