/// <summary>
 /// Handles the addition of an import directive
 /// </summary>
 /// <param name="psiServices">The PSI services.</param>
 /// <param name="action">The action to perform to add the directive.</param>
 /// <param name="generatedAnchor">The existing using anchor.</param>
 /// <param name="before">Whether to add the statements before of after <paramref name="generatedAnchor"/>.</param>
 /// <param name="generatedFile">The generated file.</param>
 /// <returns>An instance of <see cref="IUsingDirective"/>.</returns>
 public IUsingDirective HandleAddImport(IPsiServices psiServices, Func<IUsingDirective> action, IUsingDirective generatedAnchor, bool before, IFile generatedFile)
 {
     return (IUsingDirective) HandleAddImportInternal(psiServices, action, generatedAnchor, before, CSharpLanguage.Instance, generatedFile);
 }
示例#2
0
 public IUsingDirective AddImportBefore(IUsingDirective param, IUsingDirective anchor)
 {
     return _file.AddImportBefore(param, anchor);
 }
示例#3
0
 public void RemoveImport(IUsingDirective param)
 {
     _file.RemoveImport(param);
 }
示例#4
0
 public IUsingDirective AddImportAfter(IUsingDirective param, IUsingDirective anchor)
 {
     return _file.AddImportAfter(param, anchor);
 }
示例#5
0
 public IUsingDirective AddImport(IUsingDirective param, bool saveUsingListPosition = false)
 {
     return _file.AddImport(param, saveUsingListPosition);
 }
 public IUsingDirective HandleAddImport(IPsiServices psiServices, Func<IUsingDirective> action, IUsingDirective generatedAnchor, bool before, IFile generatedFile)
 {
   return action();
 }
 public void HandleRemoveImport(IPsiServices psiServices, ICSharpTypeAndNamespaceHolderDeclaration scope, IUsingDirective usingDirective, Action action)
 {
   action();
 }
 public bool CanRemoveUsing(IDocument document, IUsingDirective usingDirective)
 {
   return false;
 }