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;
     myExternalAnnotationsModuleFactory = externalAnnotationsModuleFactory;
 }
Exemplo n.º 3
0
 public CustomCodeAnnotationProvider(ExternalAnnotationsModuleFactory externalAnnotationsModuleFactory, IPredefinedTypeCache predefinedTypeCache, UnityApi unityApi)
 {
     myPredefinedTypeCache  = predefinedTypeCache;
     myUnityApi             = unityApi;
     myAnnotationsPsiModule = externalAnnotationsModuleFactory
                              .GetPsiModule(TargetFrameworkId.Default);
 }
        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));