Fixed rebasing issues.

This commit is contained in:
N. Taylor Mullen 2014-10-09 13:48:23 -07:00
parent 74974d371c
commit ae4adf6af6
1 changed files with 7 additions and 10 deletions

View File

@ -134,19 +134,16 @@ namespace Microsoft.AspNet.Razor.Generator.Compiler.CSharp
Writer.WriteStartInstrumentationContext(Context, chunk.Association, isLiteral: true); Writer.WriteStartInstrumentationContext(Context, chunk.Association, isLiteral: true);
} }
if (!string.IsNullOrEmpty(Context.TargetWriterName)) if (Context.ExpressionRenderingMode == ExpressionRenderingMode.WriteToOutput)
{ {
if (Context.ExpressionRenderingMode == ExpressionRenderingMode.WriteToOutput) RenderPreWriteStart();
{ }
RenderPreWriteStart();
}
Writer.WriteStringLiteral(chunk.Text); Writer.WriteStringLiteral(chunk.Text);
if (Context.ExpressionRenderingMode == ExpressionRenderingMode.WriteToOutput) if (Context.ExpressionRenderingMode == ExpressionRenderingMode.WriteToOutput)
{ {
Writer.WriteEndMethodInvocation(); Writer.WriteEndMethodInvocation();
}
} }
if (Context.Host.EnableInstrumentation) if (Context.Host.EnableInstrumentation)