Fix switch case open/closed analysis

This commit is contained in:
Sam Harwell 2013-02-25 12:56:29 -06:00
parent 789b9578a6
commit 587b95db74
5 changed files with 1 additions and 9 deletions

@ -1 +1 @@
Subproject commit 047ebf59b4eee4fc8700f62c4b365f7d190a5b33
Subproject commit a33407d027751c632b53432f0e07ea8b62ee3a39

View File

@ -475,13 +475,11 @@ namespace Antlr4.Runtime.Atn
{
// not implemented yet
continue;
goto default;
}
default:
{
continue;
break;
}
}
}

View File

@ -514,7 +514,6 @@ namespace Antlr4.Runtime.Atn
{
c = null;
break;
break;
}
}
return c;

View File

@ -601,7 +601,6 @@ namespace Antlr4.Runtime.Atn
}
ReportAmbiguity(dfa, s, startIndex, stopIndex, alts, s.configs);
return alts.NextSetBit(0);
break;
}
}
}
@ -782,7 +781,6 @@ namespace Antlr4.Runtime.Atn
}
ReportAmbiguity(dfa, D, startIndex, stopIndex, alts, D.configs);
return alts.NextSetBit(0);
break;
}
}
}
@ -1411,7 +1409,6 @@ namespace Antlr4.Runtime.Atn
default:
{
break;
break;
}
}
if (checkClosure && !closureBusy.AddItem(c))
@ -1514,7 +1511,6 @@ namespace Antlr4.Runtime.Atn
default:
{
return null;
break;
}
}
}

View File

@ -236,7 +236,6 @@ namespace Antlr4.Runtime
{
// do nothing if we can't identify the exact kind of ATN state
break;
break;
}
}
}