/// <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); }
public IUsingDirective AddImportBefore(IUsingDirective param, IUsingDirective anchor) { return _file.AddImportBefore(param, anchor); }
public void RemoveImport(IUsingDirective param) { _file.RemoveImport(param); }
public IUsingDirective AddImportAfter(IUsingDirective param, IUsingDirective anchor) { return _file.AddImportAfter(param, anchor); }
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; }