Search in sources :

Example 1 with ProblemImpl

use of com.intellij.codeInsight.problems.ProblemImpl in project intellij-community by JetBrains.

the class GeneralHighlightingPass method convertToProblems.

private static List<Problem> convertToProblems(@NotNull Collection<HighlightInfo> infos, @NotNull VirtualFile file, final boolean hasErrorElement) {
    List<Problem> problems = new SmartList<>();
    for (HighlightInfo info : infos) {
        if (info.getSeverity() == HighlightSeverity.ERROR) {
            Problem problem = new ProblemImpl(file, info, hasErrorElement);
            problems.add(problem);
        }
    }
    return problems;
}
Also used : ProblemImpl(com.intellij.codeInsight.problems.ProblemImpl) Problem(com.intellij.problems.Problem) SmartList(com.intellij.util.SmartList)

Aggregations

ProblemImpl (com.intellij.codeInsight.problems.ProblemImpl)1 Problem (com.intellij.problems.Problem)1 SmartList (com.intellij.util.SmartList)1