Package org.jetbrains.plugins.groovy.lang.psi.api.statements

Examples of org.jetbrains.plugins.groovy.lang.psi.api.statements.GrLabeledStatement


    @Override
    public void visitLabeledStatement(GrLabeledStatement labeledStatement) {
        super.visitLabeledStatement(labeledStatement);
        if (labeledStatement != null && getInSpockClass(labeledStatement) && isSpockLabel(labeledStatement)) {
            GrLabeledStatement nextLabeledStatement = getNextLabel(labeledStatement.getNextSibling());
            doVisitLabeledStatement(labeledStatement, nextLabeledStatement);
        }
    }
View Full Code Here


            checkSuccessorValid(nextLabeledStatement);
        }
    }

    protected GrLabeledStatement getNextLabel(@Nullable PsiElement element) {
        GrLabeledStatement nextLabel = null;
        while (element != null && nextLabel == null) {
            element = element.getNextSibling();
            if (element instanceof GrLabeledStatement) {
                nextLabel = ((GrLabeledStatement) element);
            }
View Full Code Here

    @Override
    public void visitElement(PsiElement element) {
        if (!highlightInfoHolder.hasErrorResults()) {
            if (element instanceof GrLabeledStatement) {
                GrLabeledStatement labelElement = (GrLabeledStatement) element;
                if (SpockLabel.contains(labelElement.getName())) {
                    PsiElement label = GrLabeledStatementAdapter.getInstance().getLabel(labelElement);
                    highlightInfoHolder.add(createHighlightInfo(label));
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.jetbrains.plugins.groovy.lang.psi.api.statements.GrLabeledStatement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.