[Fixes #958] Added support for AddTagHelper, RemoveTagHelper and TagHelperPrefix directives
This commit is contained in:
parent
93981ab13e
commit
406522d14b
|
|
@ -94,6 +94,18 @@ namespace Microsoft.AspNetCore.Razor.Evolution
|
|||
|
||||
node.Parent.Children.Insert(sectionIndex, defineSectionStartStatement);
|
||||
}
|
||||
else if (string.Equals(node.Name, CSharpCodeParser.AddTagHelperDirectiveDescriptor.Name, StringComparison.Ordinal))
|
||||
{
|
||||
node.Parent.Children.Remove(node);
|
||||
}
|
||||
else if (string.Equals(node.Name, CSharpCodeParser.RemoveTagHelperDirectiveDescriptor.Name, StringComparison.Ordinal))
|
||||
{
|
||||
node.Parent.Children.Remove(node);
|
||||
}
|
||||
else if (string.Equals(node.Name, CSharpCodeParser.TagHelperPrefixDirectiveDescriptor.Name, StringComparison.Ordinal))
|
||||
{
|
||||
node.Parent.Children.Remove(node);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -118,14 +118,59 @@ namespace Microsoft.AspNetCore.Razor.Evolution
|
|||
|
||||
public override void VisitAddTagHelperSpan(AddTagHelperChunkGenerator chunkGenerator, Span span)
|
||||
{
|
||||
_builder.Push(new DirectiveIRNode()
|
||||
{
|
||||
Name = CSharpCodeParser.AddTagHelperDirectiveDescriptor.Name,
|
||||
Descriptor = CSharpCodeParser.AddTagHelperDirectiveDescriptor,
|
||||
Source = BuildSourceSpanFromNode(span),
|
||||
});
|
||||
|
||||
_builder.Add(new DirectiveTokenIRNode()
|
||||
{
|
||||
Content = chunkGenerator.LookupText,
|
||||
Descriptor = CSharpCodeParser.AddTagHelperDirectiveDescriptor.Tokens.First(),
|
||||
Source = BuildSourceSpanFromNode(span),
|
||||
});
|
||||
|
||||
_builder.Pop();
|
||||
}
|
||||
|
||||
public override void VisitRemoveTagHelperSpan(RemoveTagHelperChunkGenerator chunkGenerator, Span span)
|
||||
{
|
||||
_builder.Push(new DirectiveIRNode()
|
||||
{
|
||||
Name = CSharpCodeParser.RemoveTagHelperDirectiveDescriptor.Name,
|
||||
Descriptor = CSharpCodeParser.RemoveTagHelperDirectiveDescriptor,
|
||||
Source = BuildSourceSpanFromNode(span),
|
||||
});
|
||||
|
||||
_builder.Add(new DirectiveTokenIRNode()
|
||||
{
|
||||
Content = chunkGenerator.LookupText,
|
||||
Descriptor = CSharpCodeParser.RemoveTagHelperDirectiveDescriptor.Tokens.First(),
|
||||
Source = BuildSourceSpanFromNode(span),
|
||||
});
|
||||
|
||||
_builder.Pop();
|
||||
}
|
||||
|
||||
public override void VisitTagHelperPrefixDirectiveSpan(TagHelperPrefixDirectiveChunkGenerator chunkGenerator, Span span)
|
||||
{
|
||||
_builder.Push(new DirectiveIRNode()
|
||||
{
|
||||
Name = CSharpCodeParser.TagHelperPrefixDirectiveDescriptor.Name,
|
||||
Descriptor = CSharpCodeParser.TagHelperPrefixDirectiveDescriptor,
|
||||
Source = BuildSourceSpanFromNode(span),
|
||||
});
|
||||
|
||||
_builder.Add(new DirectiveTokenIRNode()
|
||||
{
|
||||
Content = chunkGenerator.Prefix,
|
||||
Descriptor = CSharpCodeParser.TagHelperPrefixDirectiveDescriptor.Tokens.First(),
|
||||
Source = BuildSourceSpanFromNode(span),
|
||||
});
|
||||
|
||||
_builder.Pop();
|
||||
}
|
||||
|
||||
protected SourceSpan BuildSourceSpanFromNode(SyntaxTreeNode node)
|
||||
|
|
|
|||
|
|
@ -20,11 +20,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.Legacy
|
|||
visitor.VisitAddTagHelperSpan(this, span);
|
||||
}
|
||||
|
||||
public override void GenerateChunk(Span target, ChunkGeneratorContext context)
|
||||
{
|
||||
//context.ChunkTreeBuilder.AddAddTagHelperChunk(LookupText, target);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -31,6 +31,24 @@ namespace Microsoft.AspNetCore.Razor.Evolution.Legacy
|
|||
.AddType()
|
||||
.Build();
|
||||
|
||||
internal static readonly DirectiveDescriptor AddTagHelperDirectiveDescriptor =
|
||||
DirectiveDescriptorBuilder
|
||||
.Create(SyntaxConstants.CSharp.AddTagHelperKeyword)
|
||||
.AddString()
|
||||
.Build();
|
||||
|
||||
internal static readonly DirectiveDescriptor RemoveTagHelperDirectiveDescriptor =
|
||||
DirectiveDescriptorBuilder
|
||||
.Create(SyntaxConstants.CSharp.RemoveTagHelperKeyword)
|
||||
.AddString()
|
||||
.Build();
|
||||
|
||||
internal static readonly DirectiveDescriptor TagHelperPrefixDirectiveDescriptor =
|
||||
DirectiveDescriptorBuilder
|
||||
.Create(SyntaxConstants.CSharp.TagHelperPrefixKeyword)
|
||||
.AddString()
|
||||
.Build();
|
||||
|
||||
internal static readonly IEnumerable<DirectiveDescriptor> DefaultDirectiveDescriptors = new[]
|
||||
{
|
||||
SectionDirectiveDescriptor,
|
||||
|
|
@ -1793,19 +1811,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.Legacy
|
|||
LegacyResources.FormatParseError_IncompleteQuotesAroundDirective(keyword),
|
||||
rawValue.Length);
|
||||
}
|
||||
else if (startsWithQuote)
|
||||
{
|
||||
if (rawValue.Length > 2)
|
||||
{
|
||||
// Remove extra quotes
|
||||
rawValue = rawValue.Substring(1, rawValue.Length - 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
// raw value is only quotes
|
||||
rawValue = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
chunkGenerator = chunkGeneratorFactory(rawValue);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,11 +20,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.Legacy
|
|||
visitor.VisitRemoveTagHelperSpan(this, span);
|
||||
}
|
||||
|
||||
public override void GenerateChunk(Span target, ChunkGeneratorContext context)
|
||||
{
|
||||
//context.ChunkTreeBuilder.AddRemoveTagHelperChunk(LookupText, target);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -20,11 +20,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.Legacy
|
|||
visitor.VisitTagHelperPrefixDirectiveSpan(this, span);
|
||||
}
|
||||
|
||||
public override void GenerateChunk(Span target, ChunkGeneratorContext context)
|
||||
{
|
||||
//context.ChunkTreeBuilder.AddTagHelperPrefixDirectiveChunk(Prefix, target);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -342,6 +342,11 @@ namespace Microsoft.AspNetCore.Razor.Evolution
|
|||
TagHelperDirectiveType directiveType)
|
||||
{
|
||||
directiveText = directiveText.Trim();
|
||||
if (directiveText.StartsWith("\"", StringComparison.Ordinal) &&
|
||||
directiveText.EndsWith("\"", StringComparison.Ordinal))
|
||||
{
|
||||
directiveText = directiveText.Substring(1, directiveText.Length - 2);
|
||||
}
|
||||
|
||||
// If this is the "string literal" form of a directive, we'll need to postprocess the location
|
||||
// and content.
|
||||
|
|
|
|||
|
|
@ -560,10 +560,16 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
|
|||
RunRuntimeTagHelpersTest(TestTagHelperDescriptors.SimpleTagHelperDescriptors);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TagHelpersWithPrefix_Runtime()
|
||||
{
|
||||
// Arrange, Act & Assert
|
||||
RunRuntimeTagHelpersTest(TestTagHelperDescriptors.SimpleTagHelperDescriptors);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void NestedTagHelpers_Runtime()
|
||||
{
|
||||
|
||||
// Arrange, Act & Assert
|
||||
RunRuntimeTagHelpersTest(TestTagHelperDescriptors.SimpleTagHelperDescriptors);
|
||||
}
|
||||
|
|
@ -610,6 +616,20 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
|
|||
RunRuntimeTagHelpersTest(TestTagHelperDescriptors.PrefixedPAndInputTagHelperDescriptors);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void BasicTagHelpers_RemoveTagHelper_Runtime()
|
||||
{
|
||||
// Arrange, Act & Assert
|
||||
RunRuntimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CssSelectorTagHelperAttributes_Runtime()
|
||||
{
|
||||
// Arrange, Act & Assert
|
||||
RunRuntimeTagHelpersTest(TestTagHelperDescriptors.CssSelectorTagHelperDescriptors);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ComplexTagHelpers_Runtime()
|
||||
{
|
||||
|
|
@ -673,6 +693,13 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
|
|||
RunRuntimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void MinimizedTagHelpers_Runtime()
|
||||
{
|
||||
// Arrange, Act & Assert
|
||||
RunRuntimeTagHelpersTest(TestTagHelperDescriptors.MinimizedTagHelpers_Descriptors);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void NestedScriptTagTagHelpers_Runtime()
|
||||
{
|
||||
|
|
@ -693,6 +720,13 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
|
|||
// Arrange, Act & Assert
|
||||
RunRuntimeTagHelpersTest(TestTagHelperDescriptors.EnumTagHelperDescriptors);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TagHelpersInSection_Runtime()
|
||||
{
|
||||
// Arrange, Act & Assert
|
||||
RunRuntimeTagHelpersTest(TestTagHelperDescriptors.TagHelpersInSectionDescriptors);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region DesignTime
|
||||
|
|
@ -1242,6 +1276,34 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
|
|||
AssertDesignTimeDocumentMatchBaseline(document);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AddTagHelperDirective_DesignTime()
|
||||
{
|
||||
// Arrange
|
||||
var engine = RazorEngine.CreateDesignTime(builder => builder.Features.Add(new ApiSetsIRTestAdapter()));
|
||||
var document = CreateCodeDocument();
|
||||
|
||||
// Act
|
||||
engine.Process(document);
|
||||
|
||||
// Assert
|
||||
AssertDesignTimeDocumentMatchBaseline(document);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void RemoveTagHelperDirective_DesignTime()
|
||||
{
|
||||
// Arrange
|
||||
var engine = RazorEngine.CreateDesignTime(builder => builder.Features.Add(new ApiSetsIRTestAdapter()));
|
||||
var document = CreateCodeDocument();
|
||||
|
||||
// Act
|
||||
engine.Process(document);
|
||||
|
||||
// Assert
|
||||
AssertDesignTimeDocumentMatchBaseline(document);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SimpleTagHelpers_DesignTime()
|
||||
{
|
||||
|
|
@ -1256,10 +1318,16 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
|
|||
RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.SimpleTagHelperDescriptors);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TagHelpersWithPrefix_DesignTime()
|
||||
{
|
||||
// Arrange, Act & Assert
|
||||
RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.SimpleTagHelperDescriptors);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void NestedTagHelpers_DesignTime()
|
||||
{
|
||||
|
||||
// Arrange, Act & Assert
|
||||
RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.SimpleTagHelperDescriptors);
|
||||
}
|
||||
|
|
@ -1369,6 +1437,13 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
|
|||
RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.DefaultPAndInputTagHelperDescriptors);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void MinimizedTagHelpers_DesignTime()
|
||||
{
|
||||
// Arrange, Act & Assert
|
||||
RunDesignTimeTagHelpersTest(TestTagHelperDescriptors.MinimizedTagHelpers_Descriptors);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void NestedScriptTagTagHelpers_DesignTime()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -566,6 +566,33 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
|
|||
}
|
||||
}
|
||||
|
||||
internal static IEnumerable<TagHelperDescriptor> TagHelpersInSectionDescriptors
|
||||
{
|
||||
get
|
||||
{
|
||||
var propertyInfo = typeof(TestType).GetProperty("BoundProperty");
|
||||
return new[]
|
||||
{
|
||||
new TagHelperDescriptor
|
||||
{
|
||||
TagName = "MyTagHelper",
|
||||
TypeName = "TestNamespace.MyTagHelper",
|
||||
AssemblyName = "TestAssembly",
|
||||
Attributes = new []
|
||||
{
|
||||
new TagHelperAttributeDescriptor("BoundProperty", propertyInfo)
|
||||
}
|
||||
},
|
||||
new TagHelperDescriptor
|
||||
{
|
||||
TagName = "NestedTagHelper",
|
||||
TypeName = "TestNamespace.NestedTagHelper",
|
||||
AssemblyName = "TestAssembly"
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
private static IEnumerable<TagHelperDescriptor> BuildPAndInputTagHelperDescriptors(string prefix)
|
||||
{
|
||||
var pAgePropertyInfo = typeof(TestType).GetProperty("Age");
|
||||
|
|
|
|||
|
|
@ -176,6 +176,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.Intermediate
|
|||
n => Checksum(n),
|
||||
n => Using("System", n),
|
||||
n => Using(typeof(Task).Namespace, n),
|
||||
n => Directive(
|
||||
SyntaxConstants.CSharp.AddTagHelperKeyword,
|
||||
n,
|
||||
v => DirectiveToken(DirectiveTokenKind.String, "*, TestAssembly", v)),
|
||||
n => TagHelperFieldDeclaration(n, "SpanTagHelper"),
|
||||
n =>
|
||||
{
|
||||
|
|
@ -219,6 +223,14 @@ namespace Microsoft.AspNetCore.Razor.Evolution.Intermediate
|
|||
n => Checksum(n),
|
||||
n => Using("System", n),
|
||||
n => Using(typeof(Task).Namespace, n),
|
||||
n => Directive(
|
||||
SyntaxConstants.CSharp.AddTagHelperKeyword,
|
||||
n,
|
||||
v => DirectiveToken(DirectiveTokenKind.String, "*, TestAssembly", v)),
|
||||
n => Directive(
|
||||
SyntaxConstants.CSharp.TagHelperPrefixKeyword,
|
||||
n,
|
||||
v => DirectiveToken(DirectiveTokenKind.String, "cool:", v)),
|
||||
n => TagHelperFieldDeclaration(n, "SpanTagHelper"),
|
||||
n =>
|
||||
{
|
||||
|
|
@ -264,6 +276,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.Intermediate
|
|||
n => Checksum(n),
|
||||
n => Using("System", n),
|
||||
n => Using(typeof(Task).Namespace, n),
|
||||
n => Directive(
|
||||
SyntaxConstants.CSharp.AddTagHelperKeyword,
|
||||
n,
|
||||
v => DirectiveToken(DirectiveTokenKind.String, "*, TestAssembly", v)),
|
||||
n => Directive(
|
||||
"section",
|
||||
n,
|
||||
|
|
@ -319,6 +335,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.Intermediate
|
|||
n => Checksum(n),
|
||||
n => Using("System", n),
|
||||
n => Using(typeof(Task).Namespace, n),
|
||||
n => Directive(
|
||||
SyntaxConstants.CSharp.AddTagHelperKeyword,
|
||||
n,
|
||||
v => DirectiveToken(DirectiveTokenKind.String, "*, TestAssembly", v)),
|
||||
n => TagHelperFieldDeclaration(n, "InputTagHelper"),
|
||||
n =>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -384,7 +384,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.Legacy
|
|||
.MetaCode(SyntaxConstants.CSharp.TagHelperPrefixKeyword + " ")
|
||||
.Accepts(AcceptedCharacters.None),
|
||||
Factory.Code("\"\"")
|
||||
.AsTagHelperPrefixDirective(string.Empty)));
|
||||
.AsTagHelperPrefixDirective("\"\"")));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
@ -410,7 +410,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.Legacy
|
|||
.MetaCode(SyntaxConstants.CSharp.TagHelperPrefixKeyword + " ")
|
||||
.Accepts(AcceptedCharacters.None),
|
||||
Factory.Code("\"Foo\"")
|
||||
.AsTagHelperPrefixDirective("Foo")));
|
||||
.AsTagHelperPrefixDirective("\"Foo\"")));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
@ -480,7 +480,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.Legacy
|
|||
Factory.MetaCode(SyntaxConstants.CSharp.RemoveTagHelperKeyword + " ")
|
||||
.Accepts(AcceptedCharacters.None),
|
||||
Factory.Code("\"\"")
|
||||
.AsRemoveTagHelper(string.Empty)));
|
||||
.AsRemoveTagHelper("\"\"")));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
@ -504,7 +504,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.Legacy
|
|||
Factory.MetaCode(SyntaxConstants.CSharp.RemoveTagHelperKeyword + " ")
|
||||
.Accepts(AcceptedCharacters.None),
|
||||
Factory.Code("\"Foo\"")
|
||||
.AsRemoveTagHelper("Foo")));
|
||||
.AsRemoveTagHelper("\"Foo\"")));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
@ -585,7 +585,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.Legacy
|
|||
Factory.MetaCode(SyntaxConstants.CSharp.AddTagHelperKeyword + " ")
|
||||
.Accepts(AcceptedCharacters.None),
|
||||
Factory.Code("\"\"")
|
||||
.AsAddTagHelper(string.Empty)));
|
||||
.AsAddTagHelper("\"\"")));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
@ -609,7 +609,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.Legacy
|
|||
Factory.MetaCode(SyntaxConstants.CSharp.AddTagHelperKeyword + " ")
|
||||
.Accepts(AcceptedCharacters.None),
|
||||
Factory.Code("\"Foo\"")
|
||||
.AsAddTagHelper("Foo")));
|
||||
.AsAddTagHelper("\"Foo\"")));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution
|
|||
}
|
||||
|
||||
[Fact]
|
||||
public void Execute_RewritesTagHelpers_TagHelperMatchesElementTwice()
|
||||
public void Execute_DirectiveWithoutQuotes_RewritesTagHelpers_TagHelperMatchesElementTwice()
|
||||
{
|
||||
// Arrange
|
||||
var engine = RazorEngine.Create(builder =>
|
||||
|
|
@ -99,11 +99,76 @@ namespace Microsoft.AspNetCore.Razor.Evolution
|
|||
Engine = engine,
|
||||
};
|
||||
|
||||
var content =
|
||||
@"
|
||||
var content = @"
|
||||
@addTagHelper *, TestAssembly
|
||||
<form a=""hi"" b=""there"">
|
||||
</form>";
|
||||
|
||||
var sourceDocument = TestRazorSourceDocument.Create(content);
|
||||
var codeDocument = RazorCodeDocument.Create(sourceDocument);
|
||||
var originalTree = RazorSyntaxTree.Parse(sourceDocument);
|
||||
|
||||
// Act
|
||||
var rewrittenTree = pass.Execute(codeDocument, originalTree);
|
||||
|
||||
// Assert
|
||||
Assert.Empty(rewrittenTree.Diagnostics);
|
||||
Assert.Equal(3, rewrittenTree.Root.Children.Count);
|
||||
|
||||
var formTagHelper = Assert.IsType<TagHelperBlock>(rewrittenTree.Root.Children[2]);
|
||||
Assert.Equal("form", formTagHelper.TagName);
|
||||
Assert.Single(formTagHelper.Descriptors);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Execute_DirectiveWithQuotes_RewritesTagHelpers_TagHelperMatchesElementTwice()
|
||||
{
|
||||
// Arrange
|
||||
var engine = RazorEngine.Create(builder =>
|
||||
{
|
||||
builder.AddTagHelpers(new[]
|
||||
{
|
||||
new TagHelperDescriptor
|
||||
{
|
||||
AssemblyName = "TestAssembly",
|
||||
TagName = "form",
|
||||
TypeName = "TestFormTagHelper",
|
||||
RequiredAttributes = new List<TagHelperRequiredAttributeDescriptor>()
|
||||
{
|
||||
new TagHelperRequiredAttributeDescriptor()
|
||||
{
|
||||
Name = "a",
|
||||
NameComparison = TagHelperRequiredAttributeNameComparison.FullMatch
|
||||
}
|
||||
},
|
||||
},
|
||||
new TagHelperDescriptor
|
||||
{
|
||||
AssemblyName = "TestAssembly",
|
||||
TagName = "form",
|
||||
TypeName = "TestFormTagHelper",
|
||||
RequiredAttributes = new List<TagHelperRequiredAttributeDescriptor>()
|
||||
{
|
||||
new TagHelperRequiredAttributeDescriptor()
|
||||
{
|
||||
Name = "b",
|
||||
NameComparison = TagHelperRequiredAttributeNameComparison.FullMatch
|
||||
}
|
||||
},
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
var pass = new TagHelperBinderSyntaxTreePass()
|
||||
{
|
||||
Engine = engine,
|
||||
};
|
||||
|
||||
var content = @"
|
||||
@addTagHelper ""*, TestAssembly""
|
||||
<form a=""hi"" b=""there"">
|
||||
</form>";
|
||||
|
||||
var sourceDocument = TestRazorSourceDocument.Create(content);
|
||||
var codeDocument = RazorCodeDocument.Create(sourceDocument);
|
||||
var originalTree = RazorSyntaxTree.Parse(sourceDocument);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
||||
{
|
||||
#line hidden
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AddTagHelperDirective_DesignTime
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
#pragma warning disable 1998
|
||||
public async System.Threading.Tasks.Task ExecuteAsync()
|
||||
{
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective.cshtml)
|
||||
|"*, TestAssembly"|
|
||||
Generated Location: (422:10,29 [17] )
|
||||
|"*, TestAssembly"|
|
||||
|
||||
|
|
@ -7,6 +7,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
|||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,15 @@
|
|||
Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml)
|
||||
|*, TestAssembly|
|
||||
Generated Location: (430:10,30 [15] )
|
||||
|*, TestAssembly|
|
||||
|
||||
Source Location: (187:5,36 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml)
|
||||
|true|
|
||||
Generated Location: (1565:25,42 [4] )
|
||||
Generated Location: (1674:29,42 [4] )
|
||||
|true|
|
||||
|
||||
Source Location: (233:6,36 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml)
|
||||
|true|
|
||||
Generated Location: (2218:35,42 [4] )
|
||||
Generated Location: (2327:39,42 [4] )
|
||||
|true|
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
|||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,15 @@
|
|||
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml)
|
||||
|"*, TestAssembly"|
|
||||
Generated Location: (416:10,29 [17] )
|
||||
|"*, TestAssembly"|
|
||||
|
||||
Source Location: (220:5,38 [23] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml)
|
||||
|ViewBag.DefaultInterval|
|
||||
Generated Location: (1273:22,41 [23] )
|
||||
Generated Location: (1382:26,41 [23] )
|
||||
|ViewBag.DefaultInterval|
|
||||
|
||||
Source Location: (303:6,40 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml)
|
||||
|true|
|
||||
Generated Location: (1971:33,42 [4] )
|
||||
Generated Location: (2080:37,42 [4] )
|
||||
|true|
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,14 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
|||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "THS";
|
||||
}
|
||||
))();
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,15 @@
|
|||
Source Location: (17:0,17 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml)
|
||||
|"THS"|
|
||||
Generated Location: (425:10,29 [5] )
|
||||
|"THS"|
|
||||
|
||||
Source Location: (38:1,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml)
|
||||
|"*, TestAssembly"|
|
||||
Generated Location: (522:14,29 [17] )
|
||||
|"*, TestAssembly"|
|
||||
|
||||
Source Location: (226:7,43 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml)
|
||||
|true|
|
||||
Generated Location: (1350:23,43 [4] )
|
||||
Generated Location: (1556:31,43 [4] )
|
||||
|true|
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,112 @@
|
|||
#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "8479a280916bffac36ca773a941b3f9155fe4ace"
|
||||
namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
||||
{
|
||||
#line hidden
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicTagHelpers_RemoveTagHelper_Runtime
|
||||
{
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "text", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "checkbox", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("Hello World"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
#line hidden
|
||||
#pragma warning disable 0414
|
||||
private string __tagHelperStringValueBuffer = null;
|
||||
#pragma warning restore 0414
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext = null;
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null;
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if (__backed__tagHelperScopeManager == null)
|
||||
{
|
||||
__backed__tagHelperScopeManager = new Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope);
|
||||
}
|
||||
return __backed__tagHelperScopeManager;
|
||||
}
|
||||
}
|
||||
private global::TestNamespace.PTagHelper __TestNamespace_PTagHelper = null;
|
||||
private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper = null;
|
||||
private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2 = null;
|
||||
#pragma warning disable 1998
|
||||
public async System.Threading.Tasks.Task ExecuteAsync()
|
||||
{
|
||||
WriteLiteral("\r\n<div class=\"randomNonTagHelperAttribute\">\r\n ");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
|
||||
WriteLiteral("\r\n ");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
|
||||
}
|
||||
);
|
||||
__TestNamespace_PTagHelper = CreateTagHelper<global::TestNamespace.PTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_PTagHelper);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
WriteLiteral("\r\n ");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => {
|
||||
}
|
||||
);
|
||||
__TestNamespace_InputTagHelper = CreateTagHelper<global::TestNamespace.InputTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper);
|
||||
__TestNamespace_InputTagHelper2 = CreateTagHelper<global::TestNamespace.InputTagHelper2>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2);
|
||||
__TestNamespace_InputTagHelper.Type = (string)__tagHelperAttribute_0.Value;
|
||||
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
|
||||
__TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_0.Value;
|
||||
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
WriteLiteral("\r\n ");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => {
|
||||
}
|
||||
);
|
||||
__TestNamespace_InputTagHelper = CreateTagHelper<global::TestNamespace.InputTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper);
|
||||
__TestNamespace_InputTagHelper2 = CreateTagHelper<global::TestNamespace.InputTagHelper2>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2);
|
||||
__TestNamespace_InputTagHelper.Type = (string)__tagHelperAttribute_1.Value;
|
||||
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
|
||||
__TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_1.Value;
|
||||
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
|
||||
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper.cshtml"
|
||||
__TestNamespace_InputTagHelper2.Checked = true;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
__tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
WriteLiteral("\r\n ");
|
||||
}
|
||||
);
|
||||
__TestNamespace_PTagHelper = CreateTagHelper<global::TestNamespace.PTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_PTagHelper);
|
||||
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
WriteLiteral("\r\n</div>");
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
}
|
||||
}
|
||||
|
|
@ -7,6 +7,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
|||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,15 @@
|
|||
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|"*, TestAssembly"|
|
||||
Generated Location: (418:10,29 [17] )
|
||||
|"*, TestAssembly"|
|
||||
|
||||
Source Location: (36:2,1 [52] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|if (true)
|
||||
{
|
||||
var checkbox = "checkbox";
|
||||
|
||||
|
|
||||
Generated Location: (934:19,1 [52] )
|
||||
Generated Location: (1043:23,1 [52] )
|
||||
|if (true)
|
||||
{
|
||||
var checkbox = "checkbox";
|
||||
|
|
@ -15,7 +20,7 @@ Source Location: (224:9,13 [43] TestFiles/IntegrationTests/CodeGenerationIntegra
|
|||
|if (false)
|
||||
{
|
||||
|
|
||||
Generated Location: (1126:28,13 [43] )
|
||||
Generated Location: (1235:32,13 [43] )
|
||||
|if (false)
|
||||
{
|
||||
|
|
||||
|
|
@ -26,7 +31,7 @@ Source Location: (350:11,99 [66] TestFiles/IntegrationTests/CodeGenerationIntegr
|
|||
else
|
||||
{
|
||||
|
|
||||
Generated Location: (1846:40,99 [66] )
|
||||
Generated Location: (1955:44,99 [66] )
|
||||
|
|
||||
}
|
||||
else
|
||||
|
|
@ -35,194 +40,194 @@ Generated Location: (1846:40,99 [66] )
|
|||
|
||||
Source Location: (446:15,46 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|checkbox|
|
||||
Generated Location: (2296:51,49 [8] )
|
||||
Generated Location: (2405:55,49 [8] )
|
||||
|checkbox|
|
||||
|
||||
Source Location: (463:15,63 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|true|
|
||||
Generated Location: (2649:58,63 [4] )
|
||||
Generated Location: (2758:62,63 [4] )
|
||||
|true|
|
||||
|
||||
Source Location: (474:15,74 [18] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|
|
||||
|
|
||||
Generated Location: (2950:64,74 [18] )
|
||||
Generated Location: (3059:68,74 [18] )
|
||||
|
|
||||
|
|
||||
|
||||
Source Location: (507:16,31 [30] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|true ? "checkbox" : "anything"|
|
||||
Generated Location: (3337:72,34 [30] )
|
||||
Generated Location: (3446:76,34 [30] )
|
||||
|true ? "checkbox" : "anything"|
|
||||
|
||||
Source Location: (542:16,66 [18] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|
|
||||
|
|
||||
Generated Location: (3715:79,66 [18] )
|
||||
Generated Location: (3824:83,66 [18] )
|
||||
|
|
||||
|
|
||||
|
||||
Source Location: (574:17,30 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|if(true) { |
|
||||
Generated Location: (4098:87,30 [11] )
|
||||
Generated Location: (4207:91,30 [11] )
|
||||
|if(true) { |
|
||||
|
||||
Source Location: (606:17,62 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
| } else { |
|
||||
Generated Location: (4298:92,62 [10] )
|
||||
Generated Location: (4407:96,62 [10] )
|
||||
| } else { |
|
||||
|
||||
Source Location: (637:17,93 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
| }|
|
||||
Generated Location: (4528:97,93 [2] )
|
||||
Generated Location: (4637:101,93 [2] )
|
||||
| }|
|
||||
|
||||
Source Location: (641:17,97 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|
|
||||
}|
|
||||
Generated Location: (4908:104,97 [15] )
|
||||
Generated Location: (5017:108,97 [15] )
|
||||
|
|
||||
}|
|
||||
|
||||
Source Location: (163:7,32 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|DateTime.Now|
|
||||
Generated Location: (5179:111,35 [12] )
|
||||
Generated Location: (5288:115,35 [12] )
|
||||
|DateTime.Now|
|
||||
|
||||
Source Location: (783:21,14 [21] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
| var @object = false;|
|
||||
Generated Location: (5333:116,14 [21] )
|
||||
Generated Location: (5442:120,14 [21] )
|
||||
| var @object = false;|
|
||||
|
||||
Source Location: (836:22,29 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|(|
|
||||
Generated Location: (5731:123,42 [1] )
|
||||
Generated Location: (5840:127,42 [1] )
|
||||
|(|
|
||||
|
||||
Source Location: (837:22,30 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|@object|
|
||||
Generated Location: (5732:123,43 [7] )
|
||||
Generated Location: (5841:127,43 [7] )
|
||||
|@object|
|
||||
|
||||
Source Location: (844:22,37 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|)|
|
||||
Generated Location: (5739:123,50 [1] )
|
||||
Generated Location: (5848:127,50 [1] )
|
||||
|)|
|
||||
|
||||
Source Location: (711:20,39 [23] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|DateTimeOffset.Now.Year|
|
||||
Generated Location: (6001:129,38 [23] )
|
||||
Generated Location: (6110:133,38 [23] )
|
||||
|DateTimeOffset.Now.Year|
|
||||
|
||||
Source Location: (734:20,62 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
| - 1970|
|
||||
Generated Location: (6024:129,61 [7] )
|
||||
Generated Location: (6133:133,61 [7] )
|
||||
| - 1970|
|
||||
|
||||
Source Location: (976:25,61 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|(|
|
||||
Generated Location: (6427:136,60 [1] )
|
||||
Generated Location: (6536:140,60 [1] )
|
||||
|(|
|
||||
|
||||
Source Location: (977:25,62 [30] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|DateTimeOffset.Now.Year > 2014|
|
||||
Generated Location: (6428:136,61 [30] )
|
||||
Generated Location: (6537:140,61 [30] )
|
||||
|DateTimeOffset.Now.Year > 2014|
|
||||
|
||||
Source Location: (1007:25,92 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|)|
|
||||
Generated Location: (6458:136,91 [1] )
|
||||
Generated Location: (6567:140,91 [1] )
|
||||
|)|
|
||||
|
||||
Source Location: (879:24,16 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|-1970 + |
|
||||
Generated Location: (6715:142,33 [8] )
|
||||
Generated Location: (6824:146,33 [8] )
|
||||
|-1970 + |
|
||||
|
||||
Source Location: (887:24,24 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|@|
|
||||
Generated Location: (6723:142,41 [1] )
|
||||
Generated Location: (6832:146,41 [1] )
|
||||
|@|
|
||||
|
||||
Source Location: (888:24,25 [23] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|DateTimeOffset.Now.Year|
|
||||
Generated Location: (6724:142,42 [23] )
|
||||
Generated Location: (6833:146,42 [23] )
|
||||
|DateTimeOffset.Now.Year|
|
||||
|
||||
Source Location: (1106:28,28 [30] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|DateTimeOffset.Now.Year > 2014|
|
||||
Generated Location: (7125:149,42 [30] )
|
||||
Generated Location: (7234:153,42 [30] )
|
||||
|DateTimeOffset.Now.Year > 2014|
|
||||
|
||||
Source Location: (1044:27,16 [30] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|DateTimeOffset.Now.Year - 1970|
|
||||
Generated Location: (7411:155,33 [30] )
|
||||
Generated Location: (7520:159,33 [30] )
|
||||
|DateTimeOffset.Now.Year - 1970|
|
||||
|
||||
Source Location: (1234:31,28 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
| |
|
||||
Generated Location: (7819:162,42 [3] )
|
||||
Generated Location: (7928:166,42 [3] )
|
||||
| |
|
||||
|
||||
Source Location: (1237:31,31 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|@(|
|
||||
Generated Location: (7822:162,45 [2] )
|
||||
Generated Location: (7931:166,45 [2] )
|
||||
|@(|
|
||||
|
||||
Source Location: (1239:31,33 [27] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
| DateTimeOffset.Now.Year |
|
||||
Generated Location: (7824:162,47 [27] )
|
||||
Generated Location: (7933:166,47 [27] )
|
||||
| DateTimeOffset.Now.Year |
|
||||
|
||||
Source Location: (1266:31,60 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|)|
|
||||
Generated Location: (7851:162,74 [1] )
|
||||
Generated Location: (7960:166,74 [1] )
|
||||
|)|
|
||||
|
||||
Source Location: (1267:31,61 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
| > 2014 |
|
||||
Generated Location: (7852:162,75 [10] )
|
||||
Generated Location: (7961:166,75 [10] )
|
||||
| > 2014 |
|
||||
|
||||
Source Location: (1171:30,17 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|(|
|
||||
Generated Location: (8118:168,33 [1] )
|
||||
Generated Location: (8227:172,33 [1] )
|
||||
|(|
|
||||
|
||||
Source Location: (1172:30,18 [29] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|"My age is this long.".Length|
|
||||
Generated Location: (8119:168,34 [29] )
|
||||
Generated Location: (8228:172,34 [29] )
|
||||
|"My age is this long.".Length|
|
||||
|
||||
Source Location: (1201:30,47 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|)|
|
||||
Generated Location: (8148:168,63 [1] )
|
||||
Generated Location: (8257:172,63 [1] )
|
||||
|)|
|
||||
|
||||
Source Location: (1306:33,9 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|someMethod(|
|
||||
Generated Location: (8289:173,12 [11] )
|
||||
Generated Location: (8398:177,12 [11] )
|
||||
|someMethod(|
|
||||
|
||||
Source Location: (1361:33,64 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|checked|
|
||||
Generated Location: (8742:177,63 [7] )
|
||||
Generated Location: (8851:181,63 [7] )
|
||||
|checked|
|
||||
|
||||
Source Location: (1326:33,29 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|123|
|
||||
Generated Location: (8997:183,33 [3] )
|
||||
Generated Location: (9106:187,33 [3] )
|
||||
|123|
|
||||
|
||||
Source Location: (1375:33,78 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|)|
|
||||
Generated Location: (9038:188,1 [1] )
|
||||
Generated Location: (9147:192,1 [1] )
|
||||
|)|
|
||||
|
||||
Source Location: (1388:34,10 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
||||
|
|
||||
}|
|
||||
Generated Location: (9177:193,10 [3] )
|
||||
Generated Location: (9286:197,10 [3] )
|
||||
|
|
||||
}|
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,239 @@
|
|||
#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "1ba28534da506a7c741c3d82251fd700658ff7c8"
|
||||
namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
||||
{
|
||||
#line hidden
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CssSelectorTagHelperAttributes_Runtime
|
||||
{
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("href", new global::Microsoft.AspNetCore.Html.HtmlString("~/"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("href", new global::Microsoft.AspNetCore.Html.HtmlString("~/hello"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("href", new global::Microsoft.AspNetCore.Html.HtmlString("~/?hello=world"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_3 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("href", new global::Microsoft.AspNetCore.Html.HtmlString("~/?hello=world@false"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_4 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "text", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_5 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("value", new global::Microsoft.AspNetCore.Html.HtmlString("3 TagHelpers"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_6 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "texty", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes);
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_7 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "checkbox", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_8 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("value", new global::Microsoft.AspNetCore.Html.HtmlString("2 TagHelper"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
#line hidden
|
||||
#pragma warning disable 0414
|
||||
private string __tagHelperStringValueBuffer = null;
|
||||
#pragma warning restore 0414
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext = null;
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null;
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if (__backed__tagHelperScopeManager == null)
|
||||
{
|
||||
__backed__tagHelperScopeManager = new Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope);
|
||||
}
|
||||
return __backed__tagHelperScopeManager;
|
||||
}
|
||||
}
|
||||
private global::TestNamespace.ATagHelper __TestNamespace_ATagHelper = null;
|
||||
private global::TestNamespace.CatchAllTagHelper __TestNamespace_CatchAllTagHelper = null;
|
||||
private global::TestNamespace.ATagHelperMultipleSelectors __TestNamespace_ATagHelperMultipleSelectors = null;
|
||||
private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper = null;
|
||||
private global::TestNamespace.InputTagHelper2 __TestNamespace_InputTagHelper2 = null;
|
||||
private global::TestNamespace.CatchAllTagHelper2 __TestNamespace_CatchAllTagHelper2 = null;
|
||||
#pragma warning disable 1998
|
||||
public async System.Threading.Tasks.Task ExecuteAsync()
|
||||
{
|
||||
WriteLiteral("\r\n");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
|
||||
WriteLiteral("2 TagHelpers.");
|
||||
}
|
||||
);
|
||||
__TestNamespace_ATagHelper = CreateTagHelper<global::TestNamespace.ATagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_ATagHelper);
|
||||
__TestNamespace_CatchAllTagHelper = CreateTagHelper<global::TestNamespace.CatchAllTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper);
|
||||
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
WriteLiteral("\r\n");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
|
||||
WriteLiteral("1 TagHelper.");
|
||||
}
|
||||
);
|
||||
__TestNamespace_CatchAllTagHelper = CreateTagHelper<global::TestNamespace.CatchAllTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper);
|
||||
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
WriteLiteral("\r\n");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
|
||||
WriteLiteral("2 TagHelpers");
|
||||
}
|
||||
);
|
||||
__TestNamespace_ATagHelperMultipleSelectors = CreateTagHelper<global::TestNamespace.ATagHelperMultipleSelectors>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_ATagHelperMultipleSelectors);
|
||||
__TestNamespace_CatchAllTagHelper = CreateTagHelper<global::TestNamespace.CatchAllTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper);
|
||||
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
WriteLiteral("\r\n");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
|
||||
WriteLiteral("2 TagHelpers");
|
||||
}
|
||||
);
|
||||
__TestNamespace_ATagHelperMultipleSelectors = CreateTagHelper<global::TestNamespace.ATagHelperMultipleSelectors>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_ATagHelperMultipleSelectors);
|
||||
__TestNamespace_CatchAllTagHelper = CreateTagHelper<global::TestNamespace.CatchAllTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper);
|
||||
BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "href", 3, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
AddHtmlAttributeValue("", 153, "~/", 153, 2, true);
|
||||
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes.cshtml"
|
||||
AddHtmlAttributeValue("", 155, false, 155, 6, false);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
AddHtmlAttributeValue("", 161, "?hello=world", 161, 12, true);
|
||||
EndAddHtmlAttributeValues(__tagHelperExecutionContext);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
WriteLiteral("\r\n<a href=\' ~/\'>0 TagHelpers.</a>\r\n");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
|
||||
WriteLiteral("1 TagHelper");
|
||||
}
|
||||
);
|
||||
__TestNamespace_CatchAllTagHelper = CreateTagHelper<global::TestNamespace.CatchAllTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper);
|
||||
BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "href", 2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
AddHtmlAttributeValue("", 234, "~/", 234, 2, true);
|
||||
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes.cshtml"
|
||||
AddHtmlAttributeValue("", 236, false, 236, 6, false);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
EndAddHtmlAttributeValues(__tagHelperExecutionContext);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
WriteLiteral("\r\n");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
|
||||
WriteLiteral("1 TagHelper");
|
||||
}
|
||||
);
|
||||
__TestNamespace_CatchAllTagHelper = CreateTagHelper<global::TestNamespace.CatchAllTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper);
|
||||
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
WriteLiteral("\r\n");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
|
||||
WriteLiteral("1 TagHelper");
|
||||
}
|
||||
);
|
||||
__TestNamespace_CatchAllTagHelper = CreateTagHelper<global::TestNamespace.CatchAllTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper);
|
||||
BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "href", 2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes);
|
||||
AddHtmlAttributeValue("", 317, "~/?hello=world", 317, 14, true);
|
||||
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes.cshtml"
|
||||
AddHtmlAttributeValue(" ", 331, false, 332, 6, false);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
EndAddHtmlAttributeValues(__tagHelperExecutionContext);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
WriteLiteral("\r\n");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => {
|
||||
}
|
||||
);
|
||||
__TestNamespace_InputTagHelper = CreateTagHelper<global::TestNamespace.InputTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper);
|
||||
__TestNamespace_InputTagHelper2 = CreateTagHelper<global::TestNamespace.InputTagHelper2>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2);
|
||||
__TestNamespace_CatchAllTagHelper2 = CreateTagHelper<global::TestNamespace.CatchAllTagHelper2>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper2);
|
||||
__TestNamespace_InputTagHelper.Type = (string)__tagHelperAttribute_4.Value;
|
||||
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
|
||||
__TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_4.Value;
|
||||
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
|
||||
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
WriteLiteral("\r\n");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => {
|
||||
}
|
||||
);
|
||||
__TestNamespace_InputTagHelper2 = CreateTagHelper<global::TestNamespace.InputTagHelper2>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2);
|
||||
__TestNamespace_CatchAllTagHelper2 = CreateTagHelper<global::TestNamespace.CatchAllTagHelper2>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper2);
|
||||
__TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_6.Value;
|
||||
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
|
||||
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
WriteLiteral("\r\n");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => {
|
||||
}
|
||||
);
|
||||
__TestNamespace_InputTagHelper2 = CreateTagHelper<global::TestNamespace.InputTagHelper2>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2);
|
||||
__TestNamespace_CatchAllTagHelper2 = CreateTagHelper<global::TestNamespace.CatchAllTagHelper2>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper2);
|
||||
__TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_7.Value;
|
||||
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
|
||||
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_8);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
}
|
||||
}
|
||||
|
|
@ -7,6 +7,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
|||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
|
|
|
|||
|
|
@ -1,15 +1,20 @@
|
|||
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml)
|
||||
|"*, TestAssembly"|
|
||||
Generated Location: (429:10,29 [17] )
|
||||
|"*, TestAssembly"|
|
||||
|
||||
Source Location: (146:4,34 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml)
|
||||
|true|
|
||||
Generated Location: (1713:27,42 [4] )
|
||||
Generated Location: (1822:31,42 [4] )
|
||||
|true|
|
||||
|
||||
Source Location: (222:5,34 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml)
|
||||
|true|
|
||||
Generated Location: (2255:36,42 [4] )
|
||||
Generated Location: (2364:40,42 [4] )
|
||||
|true|
|
||||
|
||||
Source Location: (43:2,8 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml)
|
||||
|3|
|
||||
Generated Location: (2525:42,33 [1] )
|
||||
Generated Location: (2634:46,33 [1] )
|
||||
|3|
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
|||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper.cshtml)
|
||||
|"*, TestAssembly"|
|
||||
Generated Location: (425:10,29 [17] )
|
||||
|"*, TestAssembly"|
|
||||
|
||||
Source Location: (67:2,32 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper.cshtml)
|
||||
|true|
|
||||
Generated Location: (1273:22,41 [4] )
|
||||
Generated Location: (1382:26,41 [4] )
|
||||
|true|
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
|||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
|
|
|
|||
|
|
@ -1,150 +1,155 @@
|
|||
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|"*, TestAssembly"|
|
||||
Generated Location: (427:10,29 [17] )
|
||||
|"*, TestAssembly"|
|
||||
|
||||
Source Location: (59:2,24 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|DateTime.Now|
|
||||
Generated Location: (901:18,27 [12] )
|
||||
Generated Location: (1010:22,27 [12] )
|
||||
|DateTime.Now|
|
||||
|
||||
Source Location: (96:4,17 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|if (true) { |
|
||||
Generated Location: (1169:24,17 [12] )
|
||||
Generated Location: (1278:28,17 [12] )
|
||||
|if (true) { |
|
||||
|
||||
Source Location: (109:4,30 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|string.Empty|
|
||||
Generated Location: (1349:29,33 [12] )
|
||||
Generated Location: (1458:33,33 [12] )
|
||||
|string.Empty|
|
||||
|
||||
Source Location: (121:4,42 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
| } else { |
|
||||
Generated Location: (1539:34,42 [10] )
|
||||
Generated Location: (1648:38,42 [10] )
|
||||
| } else { |
|
||||
|
||||
Source Location: (132:4,53 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|false|
|
||||
Generated Location: (1740:39,56 [5] )
|
||||
Generated Location: (1849:43,56 [5] )
|
||||
|false|
|
||||
|
||||
Source Location: (137:4,58 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
| }|
|
||||
Generated Location: (1939:44,58 [2] )
|
||||
Generated Location: (2048:48,58 [2] )
|
||||
| }|
|
||||
|
||||
Source Location: (176:6,22 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|DateTime.Now|
|
||||
Generated Location: (2204:50,25 [12] )
|
||||
Generated Location: (2313:54,25 [12] )
|
||||
|DateTime.Now|
|
||||
|
||||
Source Location: (214:6,60 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|DateTime.Now|
|
||||
Generated Location: (2481:56,63 [12] )
|
||||
Generated Location: (2590:60,63 [12] )
|
||||
|DateTime.Now|
|
||||
|
||||
Source Location: (256:8,15 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|long.MinValue|
|
||||
Generated Location: (2750:62,18 [13] )
|
||||
Generated Location: (2859:66,18 [13] )
|
||||
|long.MinValue|
|
||||
|
||||
Source Location: (271:8,30 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|if (true) { |
|
||||
Generated Location: (2929:67,30 [12] )
|
||||
Generated Location: (3038:71,30 [12] )
|
||||
|if (true) { |
|
||||
|
||||
Source Location: (284:8,43 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|string.Empty|
|
||||
Generated Location: (3122:72,46 [12] )
|
||||
Generated Location: (3231:76,46 [12] )
|
||||
|string.Empty|
|
||||
|
||||
Source Location: (296:8,55 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
| } else { |
|
||||
Generated Location: (3325:77,55 [10] )
|
||||
Generated Location: (3434:81,55 [10] )
|
||||
| } else { |
|
||||
|
||||
Source Location: (307:8,66 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|false|
|
||||
Generated Location: (3539:82,69 [5] )
|
||||
Generated Location: (3648:86,69 [5] )
|
||||
|false|
|
||||
|
||||
Source Location: (312:8,71 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
| }|
|
||||
Generated Location: (3751:87,71 [2] )
|
||||
Generated Location: (3860:91,71 [2] )
|
||||
| }|
|
||||
|
||||
Source Location: (316:8,75 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|int.MaxValue|
|
||||
Generated Location: (3966:92,78 [12] )
|
||||
Generated Location: (4075:96,78 [12] )
|
||||
|int.MaxValue|
|
||||
|
||||
Source Location: (348:9,17 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|long.MinValue|
|
||||
Generated Location: (4201:98,20 [13] )
|
||||
Generated Location: (4310:102,20 [13] )
|
||||
|long.MinValue|
|
||||
|
||||
Source Location: (363:9,32 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|if (true) { |
|
||||
Generated Location: (4383:103,32 [12] )
|
||||
Generated Location: (4492:107,32 [12] )
|
||||
|if (true) { |
|
||||
|
||||
Source Location: (376:9,45 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|string.Empty|
|
||||
Generated Location: (4579:108,48 [12] )
|
||||
Generated Location: (4688:112,48 [12] )
|
||||
|string.Empty|
|
||||
|
||||
Source Location: (388:9,57 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
| } else { |
|
||||
Generated Location: (4785:113,57 [10] )
|
||||
Generated Location: (4894:117,57 [10] )
|
||||
| } else { |
|
||||
|
||||
Source Location: (399:9,68 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|false|
|
||||
Generated Location: (5002:118,71 [5] )
|
||||
Generated Location: (5111:122,71 [5] )
|
||||
|false|
|
||||
|
||||
Source Location: (404:9,73 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
| }|
|
||||
Generated Location: (5217:123,73 [2] )
|
||||
Generated Location: (5326:127,73 [2] )
|
||||
| }|
|
||||
|
||||
Source Location: (408:9,77 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|int.MaxValue|
|
||||
Generated Location: (5435:128,80 [12] )
|
||||
Generated Location: (5544:132,80 [12] )
|
||||
|int.MaxValue|
|
||||
|
||||
Source Location: (445:11,17 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|long.MinValue|
|
||||
Generated Location: (5707:134,20 [13] )
|
||||
Generated Location: (5816:138,20 [13] )
|
||||
|long.MinValue|
|
||||
|
||||
Source Location: (460:11,32 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|DateTime.Now|
|
||||
Generated Location: (5892:139,35 [12] )
|
||||
Generated Location: (6001:143,35 [12] )
|
||||
|DateTime.Now|
|
||||
|
||||
Source Location: (492:11,64 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|int.MaxValue|
|
||||
Generated Location: (6108:144,67 [12] )
|
||||
Generated Location: (6217:148,67 [12] )
|
||||
|int.MaxValue|
|
||||
|
||||
Source Location: (529:13,17 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|if (true) { |
|
||||
Generated Location: (6377:150,17 [12] )
|
||||
Generated Location: (6486:154,17 [12] )
|
||||
|if (true) { |
|
||||
|
||||
Source Location: (542:13,30 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|string.Empty|
|
||||
Generated Location: (6558:155,33 [12] )
|
||||
Generated Location: (6667:159,33 [12] )
|
||||
|string.Empty|
|
||||
|
||||
Source Location: (554:13,42 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
| } else { |
|
||||
Generated Location: (6749:160,42 [10] )
|
||||
Generated Location: (6858:164,42 [10] )
|
||||
| } else { |
|
||||
|
||||
Source Location: (565:13,53 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
|false|
|
||||
Generated Location: (6951:165,56 [5] )
|
||||
Generated Location: (7060:169,56 [5] )
|
||||
|false|
|
||||
|
||||
Source Location: (570:13,58 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|
||||
| }|
|
||||
Generated Location: (7151:170,58 [2] )
|
||||
Generated Location: (7260:174,58 [2] )
|
||||
| }|
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
|||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
|
|
|
|||
|
|
@ -1,15 +1,20 @@
|
|||
Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml)
|
||||
|*, TestAssembly|
|
||||
Generated Location: (426:10,30 [15] )
|
||||
|*, TestAssembly|
|
||||
|
||||
Source Location: (66:3,26 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml)
|
||||
||
|
||||
Generated Location: (1341:23,42 [0] )
|
||||
Generated Location: (1450:27,42 [0] )
|
||||
||
|
||||
|
||||
Source Location: (126:5,30 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml)
|
||||
||
|
||||
Generated Location: (1869:32,42 [0] )
|
||||
Generated Location: (1978:36,42 [0] )
|
||||
||
|
||||
|
||||
Source Location: (92:4,12 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml)
|
||||
||
|
||||
Generated Location: (2131:38,33 [0] )
|
||||
Generated Location: (2240:42,33 [0] )
|
||||
||
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
|||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
|
|
|
|||
|
|
@ -1,44 +1,49 @@
|
|||
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml)
|
||||
|"*, TestAssembly"|
|
||||
Generated Location: (415:10,29 [17] )
|
||||
|"*, TestAssembly"|
|
||||
|
||||
Source Location: (37:2,2 [39] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml)
|
||||
|
|
||||
var enumValue = MyEnum.MyValue;
|
||||
|
|
||||
Generated Location: (848:18,2 [39] )
|
||||
Generated Location: (957:22,2 [39] )
|
||||
|
|
||||
var enumValue = MyEnum.MyValue;
|
||||
|
|
||||
|
||||
Source Location: (96:6,15 [14] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml)
|
||||
|MyEnum.MyValue|
|
||||
Generated Location: (1259:26,39 [14] )
|
||||
Generated Location: (1368:30,39 [14] )
|
||||
|MyEnum.MyValue|
|
||||
|
||||
Source Location: (131:7,15 [20] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml)
|
||||
|MyEnum.MySecondValue|
|
||||
Generated Location: (1627:33,18 [20] )
|
||||
Generated Location: (1736:37,18 [20] )
|
||||
|MyEnum.MySecondValue|
|
||||
|
||||
Source Location: (171:8,14 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml)
|
||||
|MyValue|
|
||||
Generated Location: (2116:40,133 [7] )
|
||||
Generated Location: (2225:44,133 [7] )
|
||||
|MyValue|
|
||||
|
||||
Source Location: (198:9,14 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml)
|
||||
|MySecondValue|
|
||||
Generated Location: (2593:47,133 [13] )
|
||||
Generated Location: (2702:51,133 [13] )
|
||||
|MySecondValue|
|
||||
|
||||
Source Location: (224:9,40 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml)
|
||||
|MyValue|
|
||||
Generated Location: (2870:52,139 [7] )
|
||||
Generated Location: (2979:56,139 [7] )
|
||||
|MyValue|
|
||||
|
||||
Source Location: (251:10,15 [9] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml)
|
||||
|enumValue|
|
||||
Generated Location: (3253:59,39 [9] )
|
||||
Generated Location: (3362:63,39 [9] )
|
||||
|enumValue|
|
||||
|
||||
Source Location: (274:10,38 [9] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml)
|
||||
|enumValue|
|
||||
Generated Location: (3432:64,45 [9] )
|
||||
Generated Location: (3541:68,45 [9] )
|
||||
|enumValue|
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
|||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
|
|
|
|||
|
|
@ -1,15 +1,20 @@
|
|||
Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml)
|
||||
|*, TestAssembly|
|
||||
Generated Location: (419:10,30 [15] )
|
||||
|*, TestAssembly|
|
||||
|
||||
Source Location: (106:3,29 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml)
|
||||
|DateTime.Now|
|
||||
Generated Location: (880:18,32 [12] )
|
||||
Generated Location: (989:22,32 [12] )
|
||||
|DateTime.Now|
|
||||
|
||||
Source Location: (204:5,51 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml)
|
||||
|DateTime.Now|
|
||||
Generated Location: (1281:25,54 [12] )
|
||||
Generated Location: (1390:29,54 [12] )
|
||||
|DateTime.Now|
|
||||
|
||||
Source Location: (227:5,74 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml)
|
||||
|true|
|
||||
Generated Location: (1648:32,74 [4] )
|
||||
Generated Location: (1757:36,74 [4] )
|
||||
|true|
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
|||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper.cshtml)
|
||||
|"*, TestAssembly"|
|
||||
Generated Location: (420:10,29 [17] )
|
||||
|"*, TestAssembly"|
|
||||
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
||||
{
|
||||
#line hidden
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MinimizedTagHelpers_DesignTime
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
private global::TestNamespace.CatchAllTagHelper __TestNamespace_CatchAllTagHelper = null;
|
||||
private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper = null;
|
||||
#pragma warning disable 1998
|
||||
public async System.Threading.Tasks.Task ExecuteAsync()
|
||||
{
|
||||
__TestNamespace_CatchAllTagHelper = CreateTagHelper<global::TestNamespace.CatchAllTagHelper>();
|
||||
__TestNamespace_InputTagHelper = CreateTagHelper<global::TestNamespace.InputTagHelper>();
|
||||
__TestNamespace_CatchAllTagHelper = CreateTagHelper<global::TestNamespace.CatchAllTagHelper>();
|
||||
__TestNamespace_InputTagHelper.BoundRequiredString = "hello";
|
||||
__TestNamespace_InputTagHelper = CreateTagHelper<global::TestNamespace.InputTagHelper>();
|
||||
__TestNamespace_CatchAllTagHelper = CreateTagHelper<global::TestNamespace.CatchAllTagHelper>();
|
||||
__TestNamespace_CatchAllTagHelper.BoundRequiredString = "world";
|
||||
__TestNamespace_InputTagHelper.BoundRequiredString = "hello2";
|
||||
__TestNamespace_InputTagHelper = CreateTagHelper<global::TestNamespace.InputTagHelper>();
|
||||
__TestNamespace_CatchAllTagHelper = CreateTagHelper<global::TestNamespace.CatchAllTagHelper>();
|
||||
__TestNamespace_InputTagHelper.BoundRequiredString = "world";
|
||||
__TestNamespace_CatchAllTagHelper = CreateTagHelper<global::TestNamespace.CatchAllTagHelper>();
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers.cshtml)
|
||||
|"*, TestAssembly"|
|
||||
Generated Location: (420:10,29 [17] )
|
||||
|"*, TestAssembly"|
|
||||
|
||||
|
|
@ -0,0 +1,149 @@
|
|||
#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "cc93b363a32adf077cc406265e403db466e4ae7d"
|
||||
namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
||||
{
|
||||
#line hidden
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MinimizedTagHelpers_Runtime
|
||||
{
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("btn"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("input-bound-required-string", "hello", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("catchall-bound-string", "world", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_3 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("input-bound-required-string", "hello2", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_4 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("catchall-unbound-required", new global::Microsoft.AspNetCore.Html.HtmlString("hello"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_5 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("input-unbound-required", new global::Microsoft.AspNetCore.Html.HtmlString("hello2"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_6 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("input-bound-required-string", "world", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
#line hidden
|
||||
#pragma warning disable 0414
|
||||
private string __tagHelperStringValueBuffer = null;
|
||||
#pragma warning restore 0414
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext = null;
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null;
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if (__backed__tagHelperScopeManager == null)
|
||||
{
|
||||
__backed__tagHelperScopeManager = new Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope);
|
||||
}
|
||||
return __backed__tagHelperScopeManager;
|
||||
}
|
||||
}
|
||||
private global::TestNamespace.CatchAllTagHelper __TestNamespace_CatchAllTagHelper = null;
|
||||
private global::TestNamespace.InputTagHelper __TestNamespace_InputTagHelper = null;
|
||||
#pragma warning disable 1998
|
||||
public async System.Threading.Tasks.Task ExecuteAsync()
|
||||
{
|
||||
WriteLiteral("\r\n");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
|
||||
WriteLiteral("\r\n <input nottaghelper />\r\n ");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => {
|
||||
}
|
||||
);
|
||||
__TestNamespace_CatchAllTagHelper = CreateTagHelper<global::TestNamespace.CatchAllTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper);
|
||||
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
|
||||
BeginWriteTagHelperAttribute();
|
||||
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
|
||||
__tagHelperExecutionContext.AddHtmlAttribute("catchall-unbound-required", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
WriteLiteral("\r\n ");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => {
|
||||
}
|
||||
);
|
||||
__TestNamespace_InputTagHelper = CreateTagHelper<global::TestNamespace.InputTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper);
|
||||
__TestNamespace_CatchAllTagHelper = CreateTagHelper<global::TestNamespace.CatchAllTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper);
|
||||
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
|
||||
BeginWriteTagHelperAttribute();
|
||||
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
|
||||
__tagHelperExecutionContext.AddHtmlAttribute("catchall-unbound-required", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized);
|
||||
BeginWriteTagHelperAttribute();
|
||||
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
|
||||
__tagHelperExecutionContext.AddHtmlAttribute("input-unbound-required", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized);
|
||||
__TestNamespace_InputTagHelper.BoundRequiredString = (string)__tagHelperAttribute_1.Value;
|
||||
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
WriteLiteral("\r\n ");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => {
|
||||
}
|
||||
);
|
||||
__TestNamespace_InputTagHelper = CreateTagHelper<global::TestNamespace.InputTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper);
|
||||
__TestNamespace_CatchAllTagHelper = CreateTagHelper<global::TestNamespace.CatchAllTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper);
|
||||
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
|
||||
BeginWriteTagHelperAttribute();
|
||||
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
|
||||
__tagHelperExecutionContext.AddHtmlAttribute("catchall-unbound-required", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized);
|
||||
BeginWriteTagHelperAttribute();
|
||||
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
|
||||
__tagHelperExecutionContext.AddHtmlAttribute("input-unbound-required", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized);
|
||||
__TestNamespace_CatchAllTagHelper.BoundRequiredString = (string)__tagHelperAttribute_2.Value;
|
||||
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
|
||||
__TestNamespace_InputTagHelper.BoundRequiredString = (string)__tagHelperAttribute_3.Value;
|
||||
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
WriteLiteral("\r\n ");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => {
|
||||
}
|
||||
);
|
||||
__TestNamespace_InputTagHelper = CreateTagHelper<global::TestNamespace.InputTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper);
|
||||
__TestNamespace_CatchAllTagHelper = CreateTagHelper<global::TestNamespace.CatchAllTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper);
|
||||
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
|
||||
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
|
||||
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
|
||||
BeginWriteTagHelperAttribute();
|
||||
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
|
||||
__tagHelperExecutionContext.AddHtmlAttribute("catchall-unbound-required", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized);
|
||||
__TestNamespace_InputTagHelper.BoundRequiredString = (string)__tagHelperAttribute_6.Value;
|
||||
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
WriteLiteral("\r\n");
|
||||
}
|
||||
);
|
||||
__TestNamespace_CatchAllTagHelper = CreateTagHelper<global::TestNamespace.CatchAllTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper);
|
||||
BeginWriteTagHelperAttribute();
|
||||
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
|
||||
__tagHelperExecutionContext.AddHtmlAttribute("catchall-unbound-required", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
}
|
||||
}
|
||||
|
|
@ -7,6 +7,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
|||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
|
|
|
|||
|
|
@ -1,24 +1,29 @@
|
|||
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml)
|
||||
|"*, TestAssembly"|
|
||||
Generated Location: (426:10,29 [17] )
|
||||
|"*, TestAssembly"|
|
||||
|
||||
Source Location: (195:5,13 [46] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml)
|
||||
|for(var i = 0; i < 5; i++) {
|
||||
|
|
||||
Generated Location: (962:19,13 [46] )
|
||||
Generated Location: (1071:23,13 [46] )
|
||||
|for(var i = 0; i < 5; i++) {
|
||||
|
|
||||
|
||||
Source Location: (339:7,50 [23] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml)
|
||||
|ViewBag.DefaultInterval|
|
||||
Generated Location: (1403:27,53 [23] )
|
||||
Generated Location: (1512:31,53 [23] )
|
||||
|ViewBag.DefaultInterval|
|
||||
|
||||
Source Location: (389:7,100 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml)
|
||||
|true|
|
||||
Generated Location: (1809:34,100 [4] )
|
||||
Generated Location: (1918:38,100 [4] )
|
||||
|true|
|
||||
|
||||
Source Location: (422:8,25 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml)
|
||||
|
|
||||
}|
|
||||
Generated Location: (1973:39,25 [15] )
|
||||
Generated Location: (2082:43,25 [15] )
|
||||
|
|
||||
}|
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
|||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers.cshtml)
|
||||
|*, TestAssembly|
|
||||
Generated Location: (418:10,30 [15] )
|
||||
|*, TestAssembly|
|
||||
|
||||
|
|
@ -7,6 +7,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
|||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|
||||
|"*, TestAssembly"|
|
||||
Generated Location: (428:10,29 [17] )
|
||||
|"*, TestAssembly"|
|
||||
|
||||
Source Location: (37:2,2 [242] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|
||||
|
|
||||
var literate = "or illiterate";
|
||||
|
|
@ -10,7 +15,7 @@ Source Location: (37:2,2 [242] TestFiles/IntegrationTests/CodeGenerationIntegrat
|
|||
{ "name", "value" },
|
||||
};
|
||||
|
|
||||
Generated Location: (872:18,2 [242] )
|
||||
Generated Location: (981:22,2 [242] )
|
||||
|
|
||||
var literate = "or illiterate";
|
||||
var intDictionary = new Dictionary<string, int>
|
||||
|
|
@ -25,51 +30,51 @@ Generated Location: (872:18,2 [242] )
|
|||
|
||||
Source Location: (370:15,43 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|
||||
|intDictionary|
|
||||
Generated Location: (1515:34,56 [13] )
|
||||
Generated Location: (1624:38,56 [13] )
|
||||
|intDictionary|
|
||||
|
||||
Source Location: (404:15,77 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|
||||
|stringDictionary|
|
||||
Generated Location: (1867:40,77 [16] )
|
||||
Generated Location: (1976:44,77 [16] )
|
||||
|stringDictionary|
|
||||
|
||||
Source Location: (468:16,43 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|
||||
|intDictionary|
|
||||
Generated Location: (2417:48,56 [13] )
|
||||
Generated Location: (2526:52,56 [13] )
|
||||
|intDictionary|
|
||||
|
||||
Source Location: (502:16,77 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|
||||
|37|
|
||||
Generated Location: (2769:54,77 [2] )
|
||||
Generated Location: (2878:58,77 [2] )
|
||||
|37|
|
||||
|
||||
Source Location: (526:16,101 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|
||||
|42|
|
||||
Generated Location: (3154:60,101 [2] )
|
||||
Generated Location: (3263:64,101 [2] )
|
||||
|42|
|
||||
|
||||
Source Location: (590:18,31 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|
||||
|42|
|
||||
Generated Location: (3675:68,46 [2] )
|
||||
Generated Location: (3784:72,46 [2] )
|
||||
|42|
|
||||
|
||||
Source Location: (611:18,52 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|
||||
|37|
|
||||
Generated Location: (4004:74,64 [2] )
|
||||
Generated Location: (4113:78,64 [2] )
|
||||
|37|
|
||||
|
||||
Source Location: (634:18,75 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|
||||
|98|
|
||||
Generated Location: (4359:80,75 [2] )
|
||||
Generated Location: (4468:84,75 [2] )
|
||||
|98|
|
||||
|
||||
Source Location: (783:20,42 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|
||||
|literate|
|
||||
Generated Location: (5144:90,45 [8] )
|
||||
Generated Location: (5253:94,45 [8] )
|
||||
|literate|
|
||||
|
||||
Source Location: (826:21,29 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|
||||
|37|
|
||||
Generated Location: (5808:99,65 [2] )
|
||||
Generated Location: (5917:103,65 [2] )
|
||||
|37|
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
@removeTagHelper "*, TestAssembly"
|
||||
@removeTagHelper *, TestAssembly
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
||||
{
|
||||
#line hidden
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RemoveTagHelperDirective_DesignTime
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
#pragma warning disable 1998
|
||||
public async System.Threading.Tasks.Task ExecuteAsync()
|
||||
{
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
Source Location: (17:0,17 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective.cshtml)
|
||||
|*, TestAssembly|
|
||||
Generated Location: (426:10,30 [15] )
|
||||
|*, TestAssembly|
|
||||
|
||||
|
|
@ -7,6 +7,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
|||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers.cshtml)
|
||||
|*, TestAssembly|
|
||||
Generated Location: (418:10,30 [15] )
|
||||
|*, TestAssembly|
|
||||
|
||||
|
|
@ -7,6 +7,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
|||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes.cshtml)
|
||||
|"*, TestAssembly"|
|
||||
Generated Location: (443:10,29 [17] )
|
||||
|"*, TestAssembly"|
|
||||
|
||||
Source Location: (67:3,28 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes.cshtml)
|
||||
|1337|
|
||||
Generated Location: (923:18,33 [4] )
|
||||
Generated Location: (1032:22,33 [4] )
|
||||
|1337|
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
|||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper.cshtml)
|
||||
|"*, TestAssembly"|
|
||||
Generated Location: (416:10,29 [17] )
|
||||
|"*, TestAssembly"|
|
||||
|
||||
Source Location: (63:2,28 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper.cshtml)
|
||||
|1337|
|
||||
Generated Location: (869:18,33 [4] )
|
||||
Generated Location: (978:22,33 [4] )
|
||||
|1337|
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
|||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
|
|
|
|||
|
|
@ -1,20 +1,25 @@
|
|||
Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml)
|
||||
|*, TestAssembly|
|
||||
Generated Location: (423:10,30 [15] )
|
||||
|*, TestAssembly|
|
||||
|
||||
Source Location: (302:11,18 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml)
|
||||
|items|
|
||||
Generated Location: (923:18,46 [5] )
|
||||
Generated Location: (1032:22,46 [5] )
|
||||
|items|
|
||||
|
||||
Source Location: (351:12,20 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml)
|
||||
|items|
|
||||
Generated Location: (1216:24,47 [5] )
|
||||
Generated Location: (1325:28,47 [5] )
|
||||
|items|
|
||||
|
||||
Source Location: (405:13,23 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml)
|
||||
|doSomething()|
|
||||
Generated Location: (1505:30,43 [13] )
|
||||
Generated Location: (1614:34,43 [13] )
|
||||
|doSomething()|
|
||||
|
||||
Source Location: (487:14,24 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml)
|
||||
|doSomething()|
|
||||
Generated Location: (1802:36,43 [13] )
|
||||
Generated Location: (1911:40,43 [13] )
|
||||
|doSomething()|
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,99 @@
|
|||
#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "97d0dc6305d8a47fd3d81a127119f47417862f1a"
|
||||
namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
||||
{
|
||||
#line hidden
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersInSection_Runtime
|
||||
{
|
||||
#line hidden
|
||||
#pragma warning disable 0414
|
||||
private string __tagHelperStringValueBuffer = null;
|
||||
#pragma warning restore 0414
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext = null;
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null;
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if (__backed__tagHelperScopeManager == null)
|
||||
{
|
||||
__backed__tagHelperScopeManager = new Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope);
|
||||
}
|
||||
return __backed__tagHelperScopeManager;
|
||||
}
|
||||
}
|
||||
private global::TestNamespace.MyTagHelper __TestNamespace_MyTagHelper = null;
|
||||
private global::TestNamespace.NestedTagHelper __TestNamespace_NestedTagHelper = null;
|
||||
#pragma warning disable 1998
|
||||
public async System.Threading.Tasks.Task ExecuteAsync()
|
||||
{
|
||||
WriteLiteral("\r\n");
|
||||
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml"
|
||||
|
||||
var code = "some code";
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n");
|
||||
DefineSection("MySection", async () => {
|
||||
WriteLiteral("\r\n <div>\r\n ");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("mytaghelper", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
|
||||
WriteLiteral("\r\n In None ContentBehavior.\r\n ");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("nestedtaghelper", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
|
||||
WriteLiteral("Some buffered values with ");
|
||||
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml"
|
||||
Write(code);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
);
|
||||
__TestNamespace_NestedTagHelper = CreateTagHelper<global::TestNamespace.NestedTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_NestedTagHelper);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
WriteLiteral("\r\n ");
|
||||
}
|
||||
);
|
||||
__TestNamespace_MyTagHelper = CreateTagHelper<global::TestNamespace.MyTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__TestNamespace_MyTagHelper);
|
||||
BeginWriteTagHelperAttribute();
|
||||
WriteLiteral("Current Time: ");
|
||||
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml"
|
||||
WriteLiteral(DateTime.Now);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
|
||||
__TestNamespace_MyTagHelper.BoundProperty = __tagHelperStringValueBuffer;
|
||||
__tagHelperExecutionContext.AddTagHelperAttribute("boundproperty", __TestNamespace_MyTagHelper.BoundProperty, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "unboundproperty", 3, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
AddHtmlAttributeValue("", 188, "Current", 188, 7, true);
|
||||
AddHtmlAttributeValue(" ", 195, "Time:", 196, 6, true);
|
||||
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml"
|
||||
AddHtmlAttributeValue(" ", 201, DateTime.Now, 202, 13, false);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
EndAddHtmlAttributeValues(__tagHelperExecutionContext);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
WriteLiteral("\r\n </div>\r\n");
|
||||
});
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
}
|
||||
}
|
||||
|
|
@ -7,6 +7,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
|||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes.cshtml)
|
||||
|*, TestAssembly|
|
||||
Generated Location: (431:10,30 [15] )
|
||||
|*, TestAssembly|
|
||||
|
||||
Source Location: (57:2,18 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes.cshtml)
|
||||
|Hello|
|
||||
Generated Location: (845:18,21 [5] )
|
||||
Generated Location: (954:22,21 [5] )
|
||||
|Hello|
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
@addTagHelper *, TestAssembly
|
||||
@tagHelperPrefix cool:
|
||||
<form>
|
||||
<cool:input bound=@Hello type='text' />
|
||||
</form>
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
||||
{
|
||||
#line hidden
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithPrefix_DesignTime
|
||||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "cool:";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
private global::InputTagHelper __InputTagHelper = null;
|
||||
#pragma warning disable 1998
|
||||
public async System.Threading.Tasks.Task ExecuteAsync()
|
||||
{
|
||||
__InputTagHelper = CreateTagHelper<global::InputTagHelper>();
|
||||
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml"
|
||||
__o = Hello;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
__InputTagHelper.BoundProp = string.Empty;
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml)
|
||||
|*, TestAssembly|
|
||||
Generated Location: (422:10,30 [15] )
|
||||
|*, TestAssembly|
|
||||
|
||||
Source Location: (48:1,17 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml)
|
||||
|cool:|
|
||||
Generated Location: (531:14,30 [5] )
|
||||
|cool:|
|
||||
|
||||
Source Location: (86:3,23 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml)
|
||||
|Hello|
|
||||
Generated Location: (1040:26,26 [5] )
|
||||
|Hello|
|
||||
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "984b7fd00fa0286dd56ceda786fa7cf893520df6"
|
||||
namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
||||
{
|
||||
#line hidden
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpersWithPrefix_Runtime
|
||||
{
|
||||
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", new global::Microsoft.AspNetCore.Html.HtmlString("text"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes);
|
||||
#line hidden
|
||||
#pragma warning disable 0414
|
||||
private string __tagHelperStringValueBuffer = null;
|
||||
#pragma warning restore 0414
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext = null;
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null;
|
||||
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if (__backed__tagHelperScopeManager == null)
|
||||
{
|
||||
__backed__tagHelperScopeManager = new Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope);
|
||||
}
|
||||
return __backed__tagHelperScopeManager;
|
||||
}
|
||||
}
|
||||
private global::InputTagHelper __InputTagHelper = null;
|
||||
#pragma warning disable 1998
|
||||
public async System.Threading.Tasks.Task ExecuteAsync()
|
||||
{
|
||||
WriteLiteral("<form>\r\n ");
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => {
|
||||
}
|
||||
);
|
||||
__InputTagHelper = CreateTagHelper<global::InputTagHelper>();
|
||||
__tagHelperExecutionContext.Add(__InputTagHelper);
|
||||
BeginWriteTagHelperAttribute();
|
||||
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml"
|
||||
WriteLiteral(Hello);
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
|
||||
__InputTagHelper.BoundProp = __tagHelperStringValueBuffer;
|
||||
__tagHelperExecutionContext.AddTagHelperAttribute("bound", __InputTagHelper.BoundProp, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
|
||||
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
|
||||
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
|
||||
if (!__tagHelperExecutionContext.Output.IsContentModified)
|
||||
{
|
||||
await __tagHelperExecutionContext.SetOutputContentAsync();
|
||||
}
|
||||
Write(__tagHelperExecutionContext.Output);
|
||||
__tagHelperExecutionContext = __tagHelperScopeManager.End();
|
||||
WriteLiteral("\r\n</form>");
|
||||
}
|
||||
#pragma warning restore 1998
|
||||
}
|
||||
}
|
||||
|
|
@ -7,6 +7,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
|||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
|
|
|
|||
|
|
@ -1,15 +1,20 @@
|
|||
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml)
|
||||
|"*, TestAssembly"|
|
||||
Generated Location: (438:10,29 [17] )
|
||||
|"*, TestAssembly"|
|
||||
|
||||
Source Location: (74:5,21 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml)
|
||||
|1337|
|
||||
Generated Location: (1101:20,33 [4] )
|
||||
Generated Location: (1210:24,33 [4] )
|
||||
|1337|
|
||||
|
||||
Source Location: (99:6,19 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml)
|
||||
|true|
|
||||
Generated Location: (1274:25,22 [4] )
|
||||
Generated Location: (1383:29,22 [4] )
|
||||
|true|
|
||||
|
||||
Source Location: (186:10,11 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml)
|
||||
|1234|
|
||||
Generated Location: (1910:35,33 [4] )
|
||||
Generated Location: (2019:39,33 [4] )
|
||||
|1234|
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,10 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
|
|||
{
|
||||
#pragma warning disable 219
|
||||
private void __RazorDirectiveTokenHelpers__() {
|
||||
((System.Action)(() => {
|
||||
System.Object __typeHelper = "*, TestAssembly";
|
||||
}
|
||||
))();
|
||||
}
|
||||
#pragma warning restore 219
|
||||
private static System.Object __o = null;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,14 @@
|
|||
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|
||||
|"*, TestAssembly"|
|
||||
Generated Location: (433:10,29 [17] )
|
||||
|"*, TestAssembly"|
|
||||
|
||||
Source Location: (35:1,2 [59] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|
||||
|
|
||||
var @class = "container-fluid";
|
||||
var @int = 1;
|
||||
|
|
||||
Generated Location: (777:17,2 [59] )
|
||||
Generated Location: (886:21,2 [59] )
|
||||
|
|
||||
var @class = "container-fluid";
|
||||
var @int = 1;
|
||||
|
|
@ -11,76 +16,76 @@ Generated Location: (777:17,2 [59] )
|
|||
|
||||
Source Location: (122:6,23 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|
||||
|1337|
|
||||
Generated Location: (1103:25,33 [4] )
|
||||
Generated Location: (1212:29,33 [4] )
|
||||
|1337|
|
||||
|
||||
Source Location: (157:7,12 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|
||||
|@class|
|
||||
Generated Location: (1359:31,15 [6] )
|
||||
Generated Location: (1468:35,15 [6] )
|
||||
|@class|
|
||||
|
||||
Source Location: (171:7,26 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|
||||
|42|
|
||||
Generated Location: (1540:36,33 [2] )
|
||||
Generated Location: (1649:40,33 [2] )
|
||||
|42|
|
||||
|
||||
Source Location: (202:8,21 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|
||||
|42 + |
|
||||
Generated Location: (1812:42,33 [5] )
|
||||
Generated Location: (1921:46,33 [5] )
|
||||
|42 + |
|
||||
|
||||
Source Location: (207:8,26 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|
||||
|@|
|
||||
Generated Location: (1817:42,38 [1] )
|
||||
Generated Location: (1926:46,38 [1] )
|
||||
|@|
|
||||
|
||||
Source Location: (208:8,27 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|
||||
|int|
|
||||
Generated Location: (1818:42,39 [3] )
|
||||
Generated Location: (1927:46,39 [3] )
|
||||
|int|
|
||||
|
||||
Source Location: (241:9,22 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|
||||
|int|
|
||||
Generated Location: (2092:48,33 [3] )
|
||||
Generated Location: (2201:52,33 [3] )
|
||||
|int|
|
||||
|
||||
Source Location: (274:10,22 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|
||||
|(|
|
||||
Generated Location: (2366:54,33 [1] )
|
||||
Generated Location: (2475:58,33 [1] )
|
||||
|(|
|
||||
|
||||
Source Location: (275:10,23 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|
||||
|@int|
|
||||
Generated Location: (2367:54,34 [4] )
|
||||
Generated Location: (2476:58,34 [4] )
|
||||
|@int|
|
||||
|
||||
Source Location: (279:10,27 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|
||||
|)|
|
||||
Generated Location: (2371:54,38 [1] )
|
||||
Generated Location: (2480:58,38 [1] )
|
||||
|)|
|
||||
|
||||
Source Location: (307:11,19 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|
||||
|@class|
|
||||
Generated Location: (2632:60,22 [6] )
|
||||
Generated Location: (2741:64,22 [6] )
|
||||
|@class|
|
||||
|
||||
Source Location: (321:11,33 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|
||||
|4 * |
|
||||
Generated Location: (2814:65,33 [4] )
|
||||
Generated Location: (2923:69,33 [4] )
|
||||
|4 * |
|
||||
|
||||
Source Location: (325:11,37 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|
||||
|@(|
|
||||
Generated Location: (2818:65,37 [2] )
|
||||
Generated Location: (2927:69,37 [2] )
|
||||
|@(|
|
||||
|
||||
Source Location: (327:11,39 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|
||||
|@int + 2|
|
||||
Generated Location: (2820:65,39 [8] )
|
||||
Generated Location: (2929:69,39 [8] )
|
||||
|@int + 2|
|
||||
|
||||
Source Location: (335:11,47 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|
||||
|)|
|
||||
Generated Location: (2828:65,47 [1] )
|
||||
Generated Location: (2937:69,47 [1] )
|
||||
|)|
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue