示例#1
0
 public BuildCtx(ICompilerPool compilerPool, DiskCache.DiskCache diskCache, bool verbose, ILogger logger,
                 string currentDirectory, string typeCheckValue) : this(compilerPool, diskCache, verbose, logger,
                                                                        currentDirectory, typeCheckValue switch
 {
     "yes" => RunTypeCheck.Yes, "no" => RunTypeCheck.No, "only" => RunTypeCheck.Only,
     _ => throw new ArgumentException("typeCheck parameter is not valid: " + typeCheckValue)
 })
示例#2
0
文件: BuildCtx.cs 项目: keeema/bbcore
 public BuildCtx(ICompilerPool compilerPool, bool verbose)
 {
     _cts = new CancellationTokenSource();
     _cancelationToken = _cts.Token;
     Verbose           = verbose;
     CompilerPool      = compilerPool;
 }
示例#3
0
 public BuildCtx(ICompilerPool compilerPool, bool verbose, Action <string> showTsVersion)
 {
     _cts = new CancellationTokenSource();
     _cancelationToken = _cts.Token;
     Verbose           = verbose;
     CompilerPool      = compilerPool;
     ShowTsVersion     = showTsVersion;
 }
示例#4
0
 public BuildCtx(ICompilerPool compilerPool, DiskCache.DiskCache diskCache, bool verbose, ILogger logger, string currentDirectory)
 {
     Verbose          = verbose;
     CompilerPool     = compilerPool;
     _diskCache       = diskCache;
     Logger           = logger;
     CurrentDirectory = currentDirectory;
 }
示例#5
0
 BuildCtx(ICompilerPool compilerPool, DiskCache.DiskCache diskCache, bool verbose, ILogger logger,
          string currentDirectory, RunTypeCheck typeCheck)
 {
     Verbose           = verbose;
     CompilerPool      = compilerPool;
     _diskCache        = diskCache;
     _logger           = logger;
     _currentDirectory = currentDirectory;
     _typeCheck        = typeCheck;
 }