forked from jasder/antlr
Fix switch case open/closed analysis
This commit is contained in:
parent
789b9578a6
commit
587b95db74
|
@ -1 +1 @@
|
|||
Subproject commit 047ebf59b4eee4fc8700f62c4b365f7d190a5b33
|
||||
Subproject commit a33407d027751c632b53432f0e07ea8b62ee3a39
|
|
@ -475,13 +475,11 @@ namespace Antlr4.Runtime.Atn
|
|||
{
|
||||
// not implemented yet
|
||||
continue;
|
||||
goto default;
|
||||
}
|
||||
|
||||
default:
|
||||
{
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -514,7 +514,6 @@ namespace Antlr4.Runtime.Atn
|
|||
{
|
||||
c = null;
|
||||
break;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return c;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -236,7 +236,6 @@ namespace Antlr4.Runtime
|
|||
{
|
||||
// do nothing if we can't identify the exact kind of ATN state
|
||||
break;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue