Example #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);
        }
Example #3
0
 public void Dispose()
 {
     FileProviderFileManager.SetCompilationContext(null);
 }