Remove effectively dead code in parser
`parseLabeledExpression` can only be called from `parsePrefixExpression`, but the latter in the beginning tries to parse annotated expression, thus advances any number of AT symbols
This commit is contained in:
@@ -1599,12 +1599,6 @@ public class KotlinExpressionParsing extends AbstractKotlinParsing {
|
||||
* IDENTIFIER "@"
|
||||
*/
|
||||
private void parseLabelDefinition() {
|
||||
if (at(AT)) {
|
||||
// recovery for empty label identifier
|
||||
errorAndAdvance("Label must be named"); // AT
|
||||
return;
|
||||
}
|
||||
|
||||
PsiBuilder.Marker labelWrap = mark();
|
||||
PsiBuilder.Marker mark = mark();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user