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) })
public BuildCtx(ICompilerPool compilerPool, bool verbose) { _cts = new CancellationTokenSource(); _cancelationToken = _cts.Token; Verbose = verbose; CompilerPool = compilerPool; }
public BuildCtx(ICompilerPool compilerPool, bool verbose, Action <string> showTsVersion) { _cts = new CancellationTokenSource(); _cancelationToken = _cts.Token; Verbose = verbose; CompilerPool = compilerPool; ShowTsVersion = showTsVersion; }
public BuildCtx(ICompilerPool compilerPool, DiskCache.DiskCache diskCache, bool verbose, ILogger logger, string currentDirectory) { Verbose = verbose; CompilerPool = compilerPool; _diskCache = diskCache; Logger = logger; CurrentDirectory = currentDirectory; }
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; }