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); WriteStringLiteral(value.Value);
WriteParameterSeparator(); WriteParameterSeparator();
Write(value.Location.AbsoluteIndex.ToString(CultureInfo.InvariantCulture)); Write(value.Location.AbsoluteIndex.ToString(CultureInfo.CurrentCulture));
return this; 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. // Call into the tag helper scope manager to start a new tag helper scope.
// Also capture the value as the current execution context. // Also capture the value as the current execution context.
_writer.WriteStartAssignment(ExecutionContextVariableName) _writer
.WriteStartInstanceMethodInvocation(ScopeManagerVariableName, .WriteStartAssignment(ExecutionContextVariableName)
_tagHelperContext.ScopeManagerBeginMethodName); .WriteStartInstanceMethodInvocation(
ScopeManagerVariableName,
_tagHelperContext.ScopeManagerBeginMethodName);
// Assign a unique ID for this instance of the source HTML tag. This must be unique // 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. // 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 Writer
.WriteParameterSeparator() .WriteParameterSeparator()
.Write(chunk.Start.AbsoluteIndex.ToString(CultureInfo.InvariantCulture)) .Write(chunk.Start.AbsoluteIndex.ToString(CultureInfo.CurrentCulture))
.WriteParameterSeparator() .WriteParameterSeparator()
.Write(chunk.Association.Length.ToString(CultureInfo.InvariantCulture)) .Write(chunk.Association.Length.ToString(CultureInfo.CurrentCulture))
.WriteParameterSeparator() .WriteParameterSeparator()
.WriteBooleanLiteral(value: false) .WriteBooleanLiteral(value: false)
.WriteEndMethodInvocation(); .WriteEndMethodInvocation();
@ -229,9 +229,9 @@ namespace Microsoft.AspNet.Razor.CodeGenerators.Visitors
Writer Writer
.WriteEndMethodInvocation(false) .WriteEndMethodInvocation(false)
.WriteParameterSeparator() .WriteParameterSeparator()
.Write(chunk.Start.AbsoluteIndex.ToString(CultureInfo.InvariantCulture)) .Write(chunk.Start.AbsoluteIndex.ToString(CultureInfo.CurrentCulture))
.WriteParameterSeparator() .WriteParameterSeparator()
.Write(chunk.Association.Length.ToString(CultureInfo.InvariantCulture)) .Write(chunk.Association.Length.ToString(CultureInfo.CurrentCulture))
.WriteParameterSeparator() .WriteParameterSeparator()
.WriteBooleanLiteral(false) .WriteBooleanLiteral(false)
.WriteEndMethodInvocation(); .WriteEndMethodInvocation();
@ -282,9 +282,9 @@ namespace Microsoft.AspNet.Razor.CodeGenerators.Visitors
Writer Writer
.WriteParameterSeparator() .WriteParameterSeparator()
.Write(chunk.ValueLocation.AbsoluteIndex.ToString(CultureInfo.InvariantCulture)) .Write(chunk.ValueLocation.AbsoluteIndex.ToString(CultureInfo.CurrentCulture))
.WriteParameterSeparator() .WriteParameterSeparator()
.Write(chunk.Association.Length.ToString(CultureInfo.InvariantCulture)) .Write(chunk.Association.Length.ToString(CultureInfo.CurrentCulture))
.WriteParameterSeparator() .WriteParameterSeparator()
.WriteBooleanLiteral(false) .WriteBooleanLiteral(false)
.WriteEndMethodInvocation(); .WriteEndMethodInvocation();
@ -294,7 +294,7 @@ namespace Microsoft.AspNet.Razor.CodeGenerators.Visitors
Writer Writer
.WriteLocationTaggedString(chunk.Value) .WriteLocationTaggedString(chunk.Value)
.WriteParameterSeparator() .WriteParameterSeparator()
.Write(chunk.Association.Length.ToString(CultureInfo.InvariantCulture)) .Write(chunk.Association.Length.ToString(CultureInfo.CurrentCulture))
.WriteParameterSeparator() .WriteParameterSeparator()
.WriteBooleanLiteral(true) .WriteBooleanLiteral(true)
.WriteEndMethodInvocation(); .WriteEndMethodInvocation();
@ -330,7 +330,7 @@ namespace Microsoft.AspNet.Razor.CodeGenerators.Visitors
.WriteParameterSeparator() .WriteParameterSeparator()
.WriteLocationTaggedString(chunk.Suffix) .WriteLocationTaggedString(chunk.Suffix)
.WriteParameterSeparator() .WriteParameterSeparator()
.Write(attributeCount.ToString(CultureInfo.InvariantCulture)) .Write(attributeCount.ToString(CultureInfo.CurrentCulture))
.WriteEndMethodInvocation(); .WriteEndMethodInvocation();
Accept(chunk.Children); Accept(chunk.Children);