public CustomCodeAnnotationProvider(ExternalAnnotationsModuleFactory externalAnnotationsModuleFactory, IPredefinedTypeCache predefinedTypeCache, UnityApi unityApi) { myPredefinedTypeCache = predefinedTypeCache; myUnityApi = unityApi; myAnnotationsPsiModule = externalAnnotationsModuleFactory .GetPsiModule(TargetFrameworkId.Default); }
private IPsiModule GetModule(IClrDeclaredElement element) { return(myExternalAnnotationsModuleFactory.GetPsiModule(element.Module.TargetFrameworkId) ?? element.Module); }