예제 #1
0
        internal SassCompilationContext(ISassCompiler compiler, string rootPath, IFileProvider fileProvider, CancellationToken token)
        {
            Compiler          = compiler;
            RootPath          = rootPath;
            FileProvider      = fileProvider ?? AbstractionFile.NullFileProvider;
            CancellationToken = token;

            FileProviderFileManager.SetCompilationContext(this);
        }
예제 #2
0
        internal SassCompilationContext(ISassCompiler compiler, string rootPath, PathString virtualPathPrefix, IFileProvider fileProvider, PathString outputPath, CancellationToken token)
        {
            Compiler          = compiler;
            RootPath          = rootPath;
            VirtualPathPrefix = virtualPathPrefix;
            FileProvider      = fileProvider ?? AbstractionFile.NullFileProvider;
            OutputPath        = outputPath;
            CancellationToken = token;

            FileProviderFileManager.SetCompilationContext(this);
        }
예제 #3
0
 public void Dispose()
 {
     FileProviderFileManager.SetCompilationContext(null);
 }