示例#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);
        }
        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);
 }