File: Internal\IPatternContext.cs
Web Access
Project: src\src\libraries\Microsoft.Extensions.FileSystemGlobbing\src\Microsoft.Extensions.FileSystemGlobbing.csproj (Microsoft.Extensions.FileSystemGlobbing)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System;
using Microsoft.Extensions.FileSystemGlobbing.Abstractions;
 
namespace Microsoft.Extensions.FileSystemGlobbing.Internal
{
    /// <summary>
    /// This API supports infrastructure and is not intended to be used
    /// directly from your code. This API may change or be removed in future releases.
    /// </summary>
    public interface IPatternContext
    {
        void Declare(Action<IPathSegment, bool> onDeclare);
 
        bool Test(DirectoryInfoBase directory);
 
        PatternTestResult Test(FileInfoBase file);
 
        void PushDirectory(DirectoryInfoBase directory);
 
        void PopDirectory();
    }
}