public CustomCodeAnnotationProvider(ExternalAnnotationsModuleFactory externalAnnotationsModuleFactory, IPredefinedTypeCache predefinedTypeCache, UnityApi unityApi) { myPredefinedTypeCache = predefinedTypeCache; myUnityApi = unityApi; myAnnotationsPsiModule = externalAnnotationsModuleFactory.Modules.OfType <IExternalAnnotationPsiModule>().Single(); }
public CustomCodeAnnotationProvider(ExternalAnnotationsModuleFactory externalAnnotationsModuleFactory, IPredefinedTypeCache predefinedTypeCache, UnityApi unityApi) { myPredefinedTypeCache = predefinedTypeCache; myUnityApi = unityApi; myAnnotationsPsiModule = externalAnnotationsModuleFactory .Modules .OfType <IExternalAnnotationPsiModule>() #if RIDER .Single(m => Equals(m.TargetFrameworkId, TargetFrameworkId.Default));