using Rubberduck.Unmanaged.Abstract.SafeComWrappers.VB;
using VB = Microsoft.Vbe.Interop;

// ReSharper disable once CheckNamespace - Special dispensation due to conflicting file vs namespace priorities
namespace Rubberduck.VBEditor.SafeComWrappers.VBA
{
    public class VBAVBEProvider : ISafeComWrapperProvider<IVBE>
    {
        public bool CanProvideFor(object comObject)
        {
            return comObject is VB.VBE;
        }

        public IVBE Provide(object comObject)
        {
            return new VBE((VB.VBE)comObject);
        }
    }
}
