use of com.google.idea.blaze.base.scope.OutputSink in project intellij by bazelbuild.
the class ProjectViewUi method parseProjectView.
public ProjectViewSet parseProjectView(final List<IssueOutput> issues) {
final String projectViewText = projectViewEditor.getDocument().getText();
final OutputSink<IssueOutput> issueCollector = output -> {
issues.add(output);
return OutputSink.Propagation.Continue;
};
return Scope.root(context -> {
context.addOutputSink(IssueOutput.class, issueCollector);
ProjectViewParser projectViewParser = new ProjectViewParser(context, workspacePathResolver);
projectViewParser.parseProjectView(projectViewText);
return projectViewParser.getResult();
});
}
Aggregations