Making CreateCodeWriter protected so that it can be overridden in Mvc.
This commit is contained in:
parent
85be731e2b
commit
1f480386f4
|
|
@ -24,8 +24,11 @@ namespace Microsoft.AspNet.Razor.CodeGenerators
|
|||
private ChunkTree Tree { get { return Context.ChunkTreeBuilder.ChunkTree; } }
|
||||
public RazorEngineHost Host { get { return Context.Host; } }
|
||||
|
||||
// Internal for testing
|
||||
internal virtual CSharpCodeWriter CreateCodeWriter()
|
||||
/// <summary>
|
||||
/// Protected for testing.
|
||||
/// </summary>
|
||||
/// <returns>A new instance of <see cref="CSharpCodeWriter"/>.</returns>
|
||||
protected virtual CSharpCodeWriter CreateCodeWriter()
|
||||
{
|
||||
return new CSharpCodeWriter();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ namespace Microsoft.AspNet.Razor.Test.Generator
|
|||
{
|
||||
}
|
||||
|
||||
internal override CSharpCodeWriter CreateCodeWriter()
|
||||
protected override CSharpCodeWriter CreateCodeWriter()
|
||||
{
|
||||
return new TestCodeWriter();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue