Search in sources :

Example 1 with LanguageSpecResult

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;
}
Also used : BlazeProjectData(com.google.idea.blaze.base.model.BlazeProjectData) LanguageSpecResult(com.google.idea.blaze.base.lang.buildfile.sync.LanguageSpecResult)

Aggregations

LanguageSpecResult (com.google.idea.blaze.base.lang.buildfile.sync.LanguageSpecResult)1 BlazeProjectData (com.google.idea.blaze.base.model.BlazeProjectData)1