コード例 #1
0
 public CustomCodeAnnotationProvider(ExternalAnnotationsModuleFactory externalAnnotationsModuleFactory, IPredefinedTypeCache predefinedTypeCache, UnityApi unityApi)
 {
     myPredefinedTypeCache  = predefinedTypeCache;
     myUnityApi             = unityApi;
     myAnnotationsPsiModule = externalAnnotationsModuleFactory
                              .GetPsiModule(TargetFrameworkId.Default);
 }
コード例 #2
0
 private IPsiModule GetModule(IClrDeclaredElement element)
 {
     return(myExternalAnnotationsModuleFactory.GetPsiModule(element.Module.TargetFrameworkId) ?? element.Module);
 }