@Override public void visitContinueStatement( @NotNull PsiContinueStatement statement) { super.visitContinueStatement(statement); final PsiIdentifier label = statement.getLabelIdentifier(); if (label == null) { return; } final String labelText = label.getText(); if (labelText == null) { return; } if (labelText.length() == 0) { return; } registerStatementError(statement); }
@Override public void visitContinueStatement( @NotNull PsiContinueStatement statement) { super.visitContinueStatement(statement); if (!ControlFlowUtils.isInFinallyBlock(statement)) { return; } final PsiStatement continuedStatement = statement.findContinuedStatement(); if (continuedStatement == null) { return; } if (ControlFlowUtils.isInFinallyBlock(continuedStatement)) { return; } registerStatementError(statement); }
@Override public void visitContinueStatement(PsiContinueStatement statement) { mVisitor.report("PsiContinueStatement", statement.getText(), statement); super.visitStatement(statement); }
@Override public void visitContinueStatement( @NotNull PsiContinueStatement statement) { super.visitContinueStatement(statement); registerStatementError(statement); }