Пример #1
0
 public CompilerContext(CompilationRecorder compilationRecorder, bool isDebug)
 {
     IsDebug = isDebug;
     CompilationRecorder = compilationRecorder;
     Id = Guid.NewGuid();
 }
Пример #2
0
 internal CompilationRecord Compile(string coffeeScriptFilePath, List<string> includedRequiredFiles)
 {
     var compilationRecorder = new CompilationRecorder();
     compilationRecorder.Start();
     var coffeeScriptFileInfo = new FileInfo(coffeeScriptFilePath);
     var context = new CompilerContext(compilationRecorder, _isDebug) { WorkingDirectory = coffeeScriptFileInfo.Directory.FullName };
     return Compile(context, coffeeScriptFileInfo,  includedRequiredFiles);
 }
Пример #3
0
 public CompilerContext(CompilationRecorder compilationRecorder)
 {
     CompilationRecorder = compilationRecorder;
     Id = Guid.NewGuid();
 }
Пример #4
0
 public CompilationRecord Compile(string workingDirectory, StreamReader input, StreamWriter output)
 {
     var compilationRecorder = new CompilationRecorder();
     compilationRecorder.Start();
     Compile(new CompilerContext(compilationRecorder, _isDebug) { WorkingDirectory = workingDirectory }, input, output);
     compilationRecorder.Stop();
     return compilationRecorder.GetRecord();
 }