Skip to content

Commit

Permalink
Update AssemblyCSharpBuilder.Compile.cs
Browse files Browse the repository at this point in the history
略微调整一些代码顺序
  • Loading branch information
NMSAzulX committed Jan 8, 2024
1 parent b7c2d86 commit 7a605d4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,14 +267,14 @@ public Assembly GetAssembly()
}
}
}
dllStream.Dispose();
pdbStream?.Dispose();
xmlStream?.Dispose();
if (!compileResult.Success)
else
{
CompileFailedEvent?.Invoke(_compilation, compileResult.Diagnostics);
throw NatashaExceptionAnalyzer.GetCompileException(_compilation, compileResult.Diagnostics);
}
dllStream.Dispose();
pdbStream?.Dispose();
xmlStream?.Dispose();

#if DEBUG
stopwatch.StopAndShowCategoreInfo("[ Emit ]", "编译时长", 2);
Expand Down

0 comments on commit 7a605d4

Please sign in to comment.