Fixing formatting in RoslynCompilationService
This commit is contained in:
parent
345021d822
commit
85bb33a62a
|
|
@ -51,12 +51,13 @@ namespace Microsoft.AspNet.Mvc.Razor.Compilation
|
||||||
/// The <see cref="ICompilerOptionsProvider"/> that provides Roslyn compilation settings.
|
/// The <see cref="ICompilerOptionsProvider"/> that provides Roslyn compilation settings.
|
||||||
/// </param>
|
/// </param>
|
||||||
/// <param name="host">The <see cref="IMvcRazorHost"/> that was used to generate the code.</param>
|
/// <param name="host">The <see cref="IMvcRazorHost"/> that was used to generate the code.</param>
|
||||||
public RoslynCompilationService(IApplicationEnvironment environment,
|
public RoslynCompilationService(
|
||||||
IAssemblyLoadContextAccessor loaderAccessor,
|
IApplicationEnvironment environment,
|
||||||
ILibraryExporter libraryExporter,
|
IAssemblyLoadContextAccessor loaderAccessor,
|
||||||
ICompilerOptionsProvider compilerOptionsProvider,
|
ILibraryExporter libraryExporter,
|
||||||
IMvcRazorHost host,
|
ICompilerOptionsProvider compilerOptionsProvider,
|
||||||
IOptions<RazorViewEngineOptions> optionsAccessor)
|
IMvcRazorHost host,
|
||||||
|
IOptions<RazorViewEngineOptions> optionsAccessor)
|
||||||
{
|
{
|
||||||
_environment = environment;
|
_environment = environment;
|
||||||
_loader = loaderAccessor.GetLoadContext(typeof(RoslynCompilationService).GetTypeInfo().Assembly);
|
_loader = loaderAccessor.GetLoadContext(typeof(RoslynCompilationService).GetTypeInfo().Assembly);
|
||||||
|
|
@ -157,7 +158,11 @@ namespace Microsoft.AspNet.Mvc.Razor.Compilation
|
||||||
sourceFileContent = ReadFileContentsSafely(_fileProvider, sourceFilePath);
|
sourceFileContent = ReadFileContentsSafely(_fileProvider, sourceFilePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
var compilationFailure = new CompilationFailure(sourceFilePath, sourceFileContent, compilationContent, group.Select(d => d.ToDiagnosticMessage(_environment.RuntimeFramework)));
|
var compilationFailure = new CompilationFailure(
|
||||||
|
sourceFilePath,
|
||||||
|
sourceFileContent,
|
||||||
|
compilationContent,
|
||||||
|
group.Select(d => d.ToDiagnosticMessage(_environment.RuntimeFramework)));
|
||||||
|
|
||||||
failures.Add(compilationFailure);
|
failures.Add(compilationFailure);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue