Changes per PR comments

This commit is contained in:
Pranav K 2015-09-30 16:35:40 -07:00
parent 3e8b7b607d
commit a60719ff44
3 changed files with 14 additions and 12 deletions

View File

@ -108,7 +108,7 @@ namespace Microsoft.AspNet.Razor.CodeGenerators
{
WriteStringLiteral(value.Value);
WriteParameterSeparator();
Write(value.Location.AbsoluteIndex.ToString(CultureInfo.InvariantCulture));
Write(value.Location.AbsoluteIndex.ToString(CultureInfo.CurrentCulture));
return this;
}

View File

@ -115,9 +115,11 @@ namespace Microsoft.AspNet.Razor.CodeGenerators
// Call into the tag helper scope manager to start a new tag helper scope.
// Also capture the value as the current execution context.
_writer.WriteStartAssignment(ExecutionContextVariableName)
.WriteStartInstanceMethodInvocation(ScopeManagerVariableName,
_tagHelperContext.ScopeManagerBeginMethodName);
_writer
.WriteStartAssignment(ExecutionContextVariableName)
.WriteStartInstanceMethodInvocation(
ScopeManagerVariableName,
_tagHelperContext.ScopeManagerBeginMethodName);
// Assign a unique ID for this instance of the source HTML tag. This must be unique
// per call site, e.g. if the tag is on the view twice, there should be two IDs.

View File

@ -207,9 +207,9 @@ namespace Microsoft.AspNet.Razor.CodeGenerators.Visitors
Writer
.WriteParameterSeparator()
.Write(chunk.Start.AbsoluteIndex.ToString(CultureInfo.InvariantCulture))
.Write(chunk.Start.AbsoluteIndex.ToString(CultureInfo.CurrentCulture))
.WriteParameterSeparator()
.Write(chunk.Association.Length.ToString(CultureInfo.InvariantCulture))
.Write(chunk.Association.Length.ToString(CultureInfo.CurrentCulture))
.WriteParameterSeparator()
.WriteBooleanLiteral(value: false)
.WriteEndMethodInvocation();
@ -229,9 +229,9 @@ namespace Microsoft.AspNet.Razor.CodeGenerators.Visitors
Writer
.WriteEndMethodInvocation(false)
.WriteParameterSeparator()
.Write(chunk.Start.AbsoluteIndex.ToString(CultureInfo.InvariantCulture))
.Write(chunk.Start.AbsoluteIndex.ToString(CultureInfo.CurrentCulture))
.WriteParameterSeparator()
.Write(chunk.Association.Length.ToString(CultureInfo.InvariantCulture))
.Write(chunk.Association.Length.ToString(CultureInfo.CurrentCulture))
.WriteParameterSeparator()
.WriteBooleanLiteral(false)
.WriteEndMethodInvocation();
@ -282,9 +282,9 @@ namespace Microsoft.AspNet.Razor.CodeGenerators.Visitors
Writer
.WriteParameterSeparator()
.Write(chunk.ValueLocation.AbsoluteIndex.ToString(CultureInfo.InvariantCulture))
.Write(chunk.ValueLocation.AbsoluteIndex.ToString(CultureInfo.CurrentCulture))
.WriteParameterSeparator()
.Write(chunk.Association.Length.ToString(CultureInfo.InvariantCulture))
.Write(chunk.Association.Length.ToString(CultureInfo.CurrentCulture))
.WriteParameterSeparator()
.WriteBooleanLiteral(false)
.WriteEndMethodInvocation();
@ -294,7 +294,7 @@ namespace Microsoft.AspNet.Razor.CodeGenerators.Visitors
Writer
.WriteLocationTaggedString(chunk.Value)
.WriteParameterSeparator()
.Write(chunk.Association.Length.ToString(CultureInfo.InvariantCulture))
.Write(chunk.Association.Length.ToString(CultureInfo.CurrentCulture))
.WriteParameterSeparator()
.WriteBooleanLiteral(true)
.WriteEndMethodInvocation();
@ -330,7 +330,7 @@ namespace Microsoft.AspNet.Razor.CodeGenerators.Visitors
.WriteParameterSeparator()
.WriteLocationTaggedString(chunk.Suffix)
.WriteParameterSeparator()
.Write(attributeCount.ToString(CultureInfo.InvariantCulture))
.Write(attributeCount.ToString(CultureInfo.CurrentCulture))
.WriteEndMethodInvocation();
Accept(chunk.Children);