use of com.google.idea.blaze.base.lang.buildfile.sync.LanguageSpecResult in project intellij by bazelbuild.
the class BuildLanguageSpecProviderImpl method getLanguageSpec.
@Override
public BuildLanguageSpec getLanguageSpec(Project project) {
BlazeProjectData blazeProjectData = BlazeProjectDataManager.getInstance(project).getBlazeProjectData();
if (blazeProjectData == null) {
return null;
}
LanguageSpecResult spec = blazeProjectData.syncState.get(LanguageSpecResult.class);
if (spec == null) {
return null;
}
return spec.spec;
}
Aggregations