From 0bf9abbedf6b6be5e5f88d692a90621f80dac8ff Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Thu, 26 Jan 2017 13:39:55 -0800 Subject: [PATCH] Hardcoding the right value for MVC --- .../DefaultRazorRuntimeCSharpLoweringPhase.cs | 2 +- .../PrefixedAttributeTagHelpers_Runtime.codegen.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Microsoft.AspNetCore.Razor.Evolution/DefaultRazorRuntimeCSharpLoweringPhase.cs b/src/Microsoft.AspNetCore.Razor.Evolution/DefaultRazorRuntimeCSharpLoweringPhase.cs index 9f39860c19..3d983dbc13 100644 --- a/src/Microsoft.AspNetCore.Razor.Evolution/DefaultRazorRuntimeCSharpLoweringPhase.cs +++ b/src/Microsoft.AspNetCore.Razor.Evolution/DefaultRazorRuntimeCSharpLoweringPhase.cs @@ -449,7 +449,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution Context.Writer .Write("throw ") .WriteStartNewObject(nameof(InvalidOperationException)) - .WriteStartMethodInvocation("FormatInvalidIndexerAssignment" /* ORIGINAL: FormatInvalidIndexerAssignmentMethodName */) + .WriteStartMethodInvocation("InvalidTagHelperIndexerAssignment" /* ORIGINAL: FormatInvalidIndexerAssignmentMethodName */) .WriteStringLiteral(node.AttributeName) .WriteParameterSeparator() .WriteStringLiteral(node.TagHelperTypeName) diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_Runtime.codegen.cs b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_Runtime.codegen.cs index 1bf17d7b18..75e8545cf5 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_Runtime.codegen.cs +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_Runtime.codegen.cs @@ -100,7 +100,7 @@ __TestNamespace_InputTagHelper1.IntDictionaryProperty = intDictionary; __TestNamespace_InputTagHelper2.IntDictionaryProperty = __TestNamespace_InputTagHelper1.IntDictionaryProperty; if (__TestNamespace_InputTagHelper1.IntDictionaryProperty == null) { - throw new InvalidOperationException(FormatInvalidIndexerAssignment("int-prefix-garlic", "TestNamespace.InputTagHelper1", "IntDictionaryProperty")); + throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("int-prefix-garlic", "TestNamespace.InputTagHelper1", "IntDictionaryProperty")); } #line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" __TestNamespace_InputTagHelper1.IntDictionaryProperty["garlic"] = 37; @@ -140,7 +140,7 @@ __TestNamespace_InputTagHelper1.IntProperty = 42; __tagHelperExecutionContext.AddTagHelperAttribute("int-prefix-grabber", __TestNamespace_InputTagHelper1.IntProperty, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); if (__TestNamespace_InputTagHelper2.IntDictionaryProperty == null) { - throw new InvalidOperationException(FormatInvalidIndexerAssignment("int-prefix-grabber", "TestNamespace.InputTagHelper2", "IntDictionaryProperty")); + throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("int-prefix-grabber", "TestNamespace.InputTagHelper2", "IntDictionaryProperty")); } __TestNamespace_InputTagHelper2.IntDictionaryProperty["grabber"] = __TestNamespace_InputTagHelper1.IntProperty; #line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" @@ -168,7 +168,7 @@ __TestNamespace_InputTagHelper1.IntDictionaryProperty["pepper"] = 98; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); if (__TestNamespace_InputTagHelper1.StringDictionaryProperty == null) { - throw new InvalidOperationException(FormatInvalidIndexerAssignment("string-prefix-cumin", "TestNamespace.InputTagHelper1", "StringDictionaryProperty")); + throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("string-prefix-cumin", "TestNamespace.InputTagHelper1", "StringDictionaryProperty")); } BeginWriteTagHelperAttribute(); WriteLiteral("literate "); @@ -199,7 +199,7 @@ __TestNamespace_InputTagHelper1.IntDictionaryProperty["pepper"] = 98; __tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2); if (__TestNamespace_InputTagHelper1.IntDictionaryProperty == null) { - throw new InvalidOperationException(FormatInvalidIndexerAssignment("int-prefix-value", "TestNamespace.InputTagHelper1", "IntDictionaryProperty")); + throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("int-prefix-value", "TestNamespace.InputTagHelper1", "IntDictionaryProperty")); } #line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml" __TestNamespace_InputTagHelper1.IntDictionaryProperty["value"] = 37;