Search in sources :

Example 1 with OCCompilerSettingsBackedByCompilerCache

use of com.jetbrains.cidr.toolchains.OCCompilerSettingsBackedByCompilerCache in project intellij by bazelbuild.

the class OCResolveConfigurationAdapter method getCompilerFeatures.

@Override
public Map<Type<?>, ?> getCompilerFeatures(OCLanguageKind kind, @Nullable VirtualFile virtualFile) {
    OCCompilerSettings compilerSettings = getCompilerSettings();
    if (!(compilerSettings instanceof OCCompilerSettingsBackedByCompilerCache)) {
        return Collections.emptyMap();
    }
    OCCompilerSettingsBackedByCompilerCache backedCompilerSettings = (OCCompilerSettingsBackedByCompilerCache) compilerSettings;
    return backedCompilerSettings.getCompilerFeatures(kind, virtualFile);
}
Also used : OCCompilerSettings(com.jetbrains.cidr.lang.workspace.compiler.OCCompilerSettings) OCCompilerSettingsBackedByCompilerCache(com.jetbrains.cidr.toolchains.OCCompilerSettingsBackedByCompilerCache)

Aggregations

OCCompilerSettings (com.jetbrains.cidr.lang.workspace.compiler.OCCompilerSettings)1 OCCompilerSettingsBackedByCompilerCache (com.jetbrains.cidr.toolchains.OCCompilerSettingsBackedByCompilerCache)1