Package ro.redeul.google.go.inspection.fix

Examples of ro.redeul.google.go.inspection.fix.DeleteStmtFix


            result.addProblem(constDecls.getDeclarations()[0],
                              GoBundle.message(
                                  "error.missing.first.const.expression"),
                              ProblemHighlightType.ERROR,
                              new AddMissingExpressionFix(),
                              new DeleteStmtFix()
                    );
        }
    }
View Full Code Here


        if (mayRedeclareVariable) {
            String msg = "No new variables declared";
            if (nonBlankIdCount == 0) {
                PsiElement start = identifiers[0].getParent();
                ctx.addProblem(start, start, msg, ProblemHighlightType.GENERIC_ERROR, new DeleteStmtFix());
            } else if (redeclaredIds.size() == nonBlankIdCount) {
                PsiElement start = identifiers[0];
                PsiElement end = identifiers[identifiers.length - 1];
                ctx.addProblem(start, end, msg, ProblemHighlightType.GENERIC_ERROR, new ConvertToAssignmentFix());
            }
View Full Code Here

TOP

Related Classes of ro.redeul.google.go.inspection.fix.DeleteStmtFix

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.