/// <summary> /// Performs stage specific processing on the compiler context. /// </summary> public void Run() { if (this.mapFile != null) { try { using (FileStream fs = new FileStream(this.mapFile, FileMode.Create, FileAccess.Write, FileShare.Read)) using (StreamWriter writer = new StreamWriter(fs, Encoding.UTF8)) { IAssemblyCompilerStage mapGenerator = new MapFileGenerationStage(writer); mapGenerator.Setup(this.compiler); mapGenerator.Run(); } } catch (Exception x) { Console.WriteLine(@"Failed to generate map file."); Console.WriteLine(x); } } }
/// <summary> /// Performs stage specific processing on the compiler context. /// </summary> public void Run() { if (this.mapFile != null) { try { using (FileStream fs = new FileStream(this.mapFile, FileMode.Create, FileAccess.Write, FileShare.Read)) using (StreamWriter writer = new StreamWriter(fs, Encoding.UTF8)) { IAssemblyCompilerStage mapGenerator = new MapFileGenerationStage(writer); mapGenerator.Setup(this.compiler); mapGenerator.Run(); } } catch (Exception x) { Console.WriteLine(@"Failed to generate map file."); Console.WriteLine(x); } } }