Rename RazorMethodDeclaration -> MethodDeclaration

This commit is contained in:
Ryan Nowak 2017-05-11 10:14:57 -07:00
parent 3969c23316
commit 2afe2e1627
194 changed files with 208 additions and 208 deletions

View File

@ -19,7 +19,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions
RazorCodeDocument codeDocument,
NamespaceDeclarationIRNode @namespace,
ClassDeclarationIRNode @class,
RazorMethodDeclarationIRNode method)
MethodDeclarationIRNode method)
{
var filePath = codeDocument.GetRelativePath() ?? codeDocument.Source.FileName;

View File

@ -22,7 +22,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions
RazorCodeDocument codeDocument,
NamespaceDeclarationIRNode @namespace,
ClassDeclarationIRNode @class,
RazorMethodDeclarationIRNode method)
MethodDeclarationIRNode method)
{
var filePath = codeDocument.GetRelativePath() ?? codeDocument.Source.FileName;

View File

@ -138,7 +138,7 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration
}
}
public override void VisitRazorMethodDeclaration(RazorMethodDeclarationIRNode node)
public override void VisitRazorMethodDeclaration(MethodDeclarationIRNode node)
{
Context.Writer.WriteLine("#pragma warning disable 1998");

View File

@ -21,7 +21,7 @@ namespace Microsoft.AspNetCore.Razor.Language
RazorCodeDocument codeDocument,
NamespaceDeclarationIRNode @namespace,
ClassDeclarationIRNode @class,
RazorMethodDeclarationIRNode method)
MethodDeclarationIRNode method)
{
var configuration = Engine.Features.OfType<DefaultDocumentClassifierPassFeature>().FirstOrDefault();
if (configuration != null)

View File

@ -17,7 +17,7 @@ namespace Microsoft.AspNetCore.Razor.Language
public IList<Action<RazorCodeDocument, NamespaceDeclarationIRNode>> ConfigureNamespace { get; } =
new List<Action<RazorCodeDocument, NamespaceDeclarationIRNode>>();
public IList<Action<RazorCodeDocument, RazorMethodDeclarationIRNode>> ConfigureMethod { get; } =
new List<Action<RazorCodeDocument, RazorMethodDeclarationIRNode>>();
public IList<Action<RazorCodeDocument, MethodDeclarationIRNode>> ConfigureMethod { get; } =
new List<Action<RazorCodeDocument, MethodDeclarationIRNode>>();
}
}

View File

@ -54,7 +54,7 @@ namespace Microsoft.AspNetCore.Razor.Language
var @class = new ClassDeclarationIRNode();
@class.Annotations[CommonAnnotations.PrimaryClass] = CommonAnnotations.PrimaryClass;
var method = new RazorMethodDeclarationIRNode();
var method = new MethodDeclarationIRNode();
method.Annotations[CommonAnnotations.PrimaryMethod] = CommonAnnotations.PrimaryMethod;
var documentBuilder = RazorIRBuilder.Create(irDocument);
@ -104,7 +104,7 @@ namespace Microsoft.AspNetCore.Razor.Language
RazorCodeDocument codeDocument,
NamespaceDeclarationIRNode @namespace,
ClassDeclarationIRNode @class,
RazorMethodDeclarationIRNode @method)
MethodDeclarationIRNode @method)
{
// Intentionally empty.
}

View File

@ -17,14 +17,14 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate
return FindWithAnnotation<ClassDeclarationIRNode>(node, CommonAnnotations.PrimaryClass);
}
public static RazorMethodDeclarationIRNode FindPrimaryMethod(this DocumentIRNode node)
public static MethodDeclarationIRNode FindPrimaryMethod(this DocumentIRNode node)
{
if (node == null)
{
throw new ArgumentNullException(nameof(node));
}
return FindWithAnnotation<RazorMethodDeclarationIRNode>(node, CommonAnnotations.PrimaryMethod);
return FindWithAnnotation<MethodDeclarationIRNode>(node, CommonAnnotations.PrimaryMethod);
}
public static NamespaceDeclarationIRNode FindPrimaryNamespace(this DocumentIRNode node)

View File

@ -6,7 +6,7 @@ using System.Collections.Generic;
namespace Microsoft.AspNetCore.Razor.Language.Intermediate
{
public class RazorMethodDeclarationIRNode : RazorIRNode
public class MethodDeclarationIRNode : RazorIRNode
{
private ItemCollection _annotations;

View File

@ -69,7 +69,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate
VisitDefault(node);
}
public virtual void VisitRazorMethodDeclaration(RazorMethodDeclarationIRNode node)
public virtual void VisitRazorMethodDeclaration(MethodDeclarationIRNode node)
{
VisitDefault(node);
}

View File

@ -221,9 +221,9 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions
public ClassDeclarationIRNode Class { get; private set; }
public RazorMethodDeclarationIRNode Method { get; private set; }
public MethodDeclarationIRNode Method { get; private set; }
public override void VisitRazorMethodDeclaration(RazorMethodDeclarationIRNode node)
public override void VisitRazorMethodDeclaration(MethodDeclarationIRNode node)
{
Method = node;
}

View File

@ -247,9 +247,9 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions
public ClassDeclarationIRNode Class { get; private set; }
public RazorMethodDeclarationIRNode Method { get; private set; }
public MethodDeclarationIRNode Method { get; private set; }
public override void VisitRazorMethodDeclaration(RazorMethodDeclarationIRNode node)
public override void VisitRazorMethodDeclaration(MethodDeclarationIRNode node)
{
Method = node;
}

View File

@ -26,7 +26,7 @@ Document -
DirectiveToken - (801:13,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [4] Basic.cshtml)
RazorIRToken - (0:0,0 [4] Basic.cshtml) - Html - <div
HtmlAttribute - (4:0,4 [14] Basic.cshtml) - class=" - "

View File

@ -9,7 +9,7 @@ Document -
UsingStatement - (104:4,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering
UsingStatement - (147:5,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Basic_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic> -
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement -
RazorIRToken - - CSharp - BeginContext(0, 4, true);
HtmlContent - (0:0,0 [4] Basic.cshtml)

View File

@ -27,7 +27,7 @@ Document -
DirectiveToken - (159:11,8 [8] IncompleteDirectives.cshtml) - TypeName
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (83:0,83 [4] IncompleteDirectives.cshtml)
RazorIRToken - (83:0,83 [4] IncompleteDirectives.cshtml) - Html - \n\n
HtmlContent - (108:4,6 [5] IncompleteDirectives.cshtml)

View File

@ -27,7 +27,7 @@ Document -
DirectiveToken - (159:11,8 [8] IncompleteDirectives.cshtml) - TypeName
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (83:0,83 [4] IncompleteDirectives.cshtml)
RazorIRToken - (83:0,83 [4] IncompleteDirectives.cshtml) - Html - \n\n
HtmlContent - (108:4,6 [5] IncompleteDirectives.cshtml)

View File

@ -28,7 +28,7 @@ Document -
DirectiveToken - (45:1,7 [7] InheritsViewModel.cshtml) - MyModel
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
InjectDirective -
InjectDirective -
InjectDirective -

View File

@ -28,7 +28,7 @@ Document -
DirectiveToken - (45:1,7 [7] InheritsViewModel.cshtml) - MyModel
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
InjectDirective -
InjectDirective -
InjectDirective -

View File

@ -28,7 +28,7 @@ Document -
DirectiveToken - (14:1,7 [7] InheritsWithViewImports.cshtml) - MyModel
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
InjectDirective -
InjectDirective -
InjectDirective -

View File

@ -28,7 +28,7 @@ Document -
DirectiveToken - (14:1,7 [7] InheritsWithViewImports.cshtml) - MyModel
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
InjectDirective -
InjectDirective -
InjectDirective -

View File

@ -31,7 +31,7 @@ Document -
DirectiveToken - (72:2,26 [4] InjectWithModel.cshtml) - Html
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
InjectDirective -
InjectDirective -
InjectDirective -

View File

@ -9,7 +9,7 @@ Document -
UsingStatement - (104:4,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering
UsingStatement - (147:5,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InjectWithModel_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<MyModel> -
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
InjectDirective -
InjectDirective -
InjectDirective -

View File

@ -35,7 +35,7 @@ Document -
DirectiveToken - (147:4,26 [5] InjectWithSemicolon.cshtml) - Html2
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
InjectDirective -
InjectDirective -
InjectDirective -

View File

@ -9,7 +9,7 @@ Document -
UsingStatement - (104:4,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering
UsingStatement - (147:5,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InjectWithSemicolon_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<MyModel> -
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
InjectDirective -
InjectDirective -
InjectDirective -

View File

@ -29,7 +29,7 @@ Document -
DirectiveToken - (34:1,14 [14] Inject.cshtml) - MyPropertyName
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (18:0,18 [2] Inject.cshtml)
RazorIRToken - (18:0,18 [2] Inject.cshtml) - Html - \n
InjectDirective -

View File

@ -10,7 +10,7 @@ Document -
UsingStatement - (147:5,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures
UsingStatement - (1:0,1 [19] Inject.cshtml) - MyNamespace
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Inject_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic> -
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
InjectDirective -
InjectDirective -
InjectDirective -

View File

@ -26,7 +26,7 @@ Document -
DirectiveToken - (801:13,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (6:0,6 [49] MalformedPageDirective.cshtml)
RazorIRToken - (6:0,6 [8] MalformedPageDirective.cshtml) - Html - "foo\n\n
RazorIRToken - (14:2,0 [4] MalformedPageDirective.cshtml) - Html - <h1>

View File

@ -9,7 +9,7 @@ Document -
UsingStatement - (104:4,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering
UsingStatement - (147:5,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MalformedPageDirective_cshtml - global::Microsoft.AspNetCore.Mvc.RazorPages.Page -
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement -
RazorIRToken - - CSharp - BeginContext(6, 49, true);
HtmlContent - (6:0,6 [49] MalformedPageDirective.cshtml)

View File

@ -29,7 +29,7 @@ Document -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
DeclareTagHelperFields - - Microsoft.AspNetCore.Mvc.Razor.Extensions.InputTestTagHelper
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (17:1,0 [2] ModelExpressionTagHelper.cshtml)
RazorIRToken - (17:1,0 [2] ModelExpressionTagHelper.cshtml) - Html - \n
HtmlContent - (141:2,122 [4] ModelExpressionTagHelper.cshtml)

View File

@ -10,7 +10,7 @@ Document -
UsingStatement - (147:5,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ModelExpressionTagHelper_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<DateTime> -
DeclareTagHelperFields - - Microsoft.AspNetCore.Mvc.Razor.Extensions.InputTestTagHelper
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement -
RazorIRToken - - CSharp - BeginContext(17, 2, true);
HtmlContent - (17:1,0 [2] ModelExpressionTagHelper.cshtml)

View File

@ -27,7 +27,7 @@ Document -
DirectiveToken - (7:0,7 [30] Model.cshtml) - System.Collections.IEnumerable
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
InjectDirective -
InjectDirective -
InjectDirective -

View File

@ -9,7 +9,7 @@ Document -
UsingStatement - (104:4,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering
UsingStatement - (147:5,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Model_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<System.Collections.IEnumerable> -
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
InjectDirective -
InjectDirective -
InjectDirective -

View File

@ -28,7 +28,7 @@ Document -
DirectiveToken - (37:1,7 [30] MultipleModels.cshtml) - System.Collections.IEnumerable
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
InjectDirective -
InjectDirective -
InjectDirective -

View File

@ -27,7 +27,7 @@ Document -
DirectiveToken - (18:1,11 [14] PageWithNamespace.cshtml) - Test.Namespace
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (34:2,0 [20] PageWithNamespace.cshtml)
RazorIRToken - (34:2,0 [4] PageWithNamespace.cshtml) - Html - <h1>
RazorIRToken - (38:2,4 [9] PageWithNamespace.cshtml) - Html - Hi There!

View File

@ -9,7 +9,7 @@ Document -
UsingStatement - (104:4,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering
UsingStatement - (147:5,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures
ClassDeclaration - - public - PageWithNamespace_Page - global::Microsoft.AspNetCore.Mvc.RazorPages.Page -
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement -
RazorIRToken - - CSharp - BeginContext(34, 20, true);
HtmlContent - (34:2,0 [20] PageWithNamespace.cshtml)

View File

@ -29,7 +29,7 @@ Document -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
DeclareTagHelperFields - - DivTagHelper
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (7:1,0 [2] RazorPagesWithoutModel.cshtml)
RazorIRToken - (7:1,0 [2] RazorPagesWithoutModel.cshtml) - Html - \n
HtmlContent - (40:2,31 [2] RazorPagesWithoutModel.cshtml)

View File

@ -15,7 +15,7 @@ Document -
DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - class - form-group - HtmlAttributeValueStyle.DoubleQuotes
DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 - class - col-md-offset-2 col-md-10 - HtmlAttributeValueStyle.DoubleQuotes
DeclareTagHelperFields - - DivTagHelper
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement -
RazorIRToken - - CSharp - BeginContext(7, 2, true);
HtmlContent - (7:1,0 [2] RazorPagesWithoutModel.cshtml)

View File

@ -30,7 +30,7 @@ Document -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
DeclareTagHelperFields - - DivTagHelper
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (7:1,0 [2] RazorPages.cshtml)
RazorIRToken - (7:1,0 [2] RazorPages.cshtml) - Html - \n
HtmlContent - (57:3,31 [2] RazorPages.cshtml)

View File

@ -15,7 +15,7 @@ Document -
DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - class - form-group - HtmlAttributeValueStyle.DoubleQuotes
DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 - class - col-md-offset-2 col-md-10 - HtmlAttributeValueStyle.DoubleQuotes
DeclareTagHelperFields - - DivTagHelper
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement -
RazorIRToken - - CSharp - BeginContext(7, 2, true);
HtmlContent - (7:1,0 [2] RazorPages.cshtml)

View File

@ -27,7 +27,7 @@ Document -
DirectiveToken - (11:0,11 [14] ViewWithNamespace.cshtml) - Test.Namespace
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (27:1,0 [20] ViewWithNamespace.cshtml)
RazorIRToken - (27:1,0 [4] ViewWithNamespace.cshtml) - Html - <h1>
RazorIRToken - (31:1,4 [9] ViewWithNamespace.cshtml) - Html - Hi There!

View File

@ -9,7 +9,7 @@ Document -
UsingStatement - (104:4,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering
UsingStatement - (147:5,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures
ClassDeclaration - - public - ViewWithNamespace_View - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic> -
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement -
RazorIRToken - - CSharp - BeginContext(27, 20, true);
HtmlContent - (27:1,0 [20] ViewWithNamespace.cshtml)

View File

@ -28,7 +28,7 @@ Document -
DirectiveToken - (28:0,28 [5] _ViewImports.cshtml) - Model
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
InjectDirective -
InjectDirective -
InjectDirective -

View File

@ -9,7 +9,7 @@ Document -
UsingStatement - (104:4,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering
UsingStatement - (147:5,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest__ViewImports_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic> -
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
InjectDirective -
InjectDirective -
InjectDirective -

View File

@ -104,7 +104,7 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration
var writer = new DefaultDocumentWriter(target, context);
var builder = RazorIRBuilder.Document();
builder.Add(new RazorMethodDeclarationIRNode()
builder.Add(new MethodDeclarationIRNode()
{
AccessModifier = "internal",
Modifiers = new List<string> { "virtual", "async", },

View File

@ -67,9 +67,9 @@ namespace Microsoft.AspNetCore.Razor.Language
node => Assert.IsType<ClassDeclarationIRNode>(node));
var @class = @namespace.Children[2];
Children(@class,
node => Assert.IsType<RazorMethodDeclarationIRNode>(node),
node => Assert.IsType<MethodDeclarationIRNode>(node),
node => CSharpStatement(" var value = true; ", node));
var method = (RazorMethodDeclarationIRNode)@class.Children[0];
var method = (MethodDeclarationIRNode)@class.Children[0];
Assert.Empty(method.Children);
}
@ -100,7 +100,7 @@ namespace Microsoft.AspNetCore.Razor.Language
node => Assert.IsType<UsingStatementIRNode>(node),
node => Assert.IsType<ClassDeclarationIRNode>(node));
var @class = @namespace.Children[2];
var method = SingleChild<RazorMethodDeclarationIRNode>(@class);
var method = SingleChild<MethodDeclarationIRNode>(@class);
Children(method,
node => CSharpStatement("DefineSection(\"Header\", async () => {", node),
node => Html(" <p>Hello World</p> ", node),
@ -135,7 +135,7 @@ namespace Microsoft.AspNetCore.Razor.Language
node => Assert.IsType<UsingStatementIRNode>(node),
node => Assert.IsType<ClassDeclarationIRNode>(node));
var @class = @namespace.Children[2];
var method = SingleChild<RazorMethodDeclarationIRNode>(@class);
var method = SingleChild<MethodDeclarationIRNode>(@class);
Children(method,
node => CSharpStatement("DefineSection(\"Header\", async (__razor_section_writer) => {", node),
node => Html(" <p>Hello World</p> ", node),

View File

@ -53,7 +53,7 @@ namespace Microsoft.AspNetCore.Razor.Language
var @namespace = SingleChild<NamespaceDeclarationIRNode>(irDocument);
var @class = SingleChild<ClassDeclarationIRNode>(@namespace);
var method = SingleChild<RazorMethodDeclarationIRNode>(@class);
var method = SingleChild<MethodDeclarationIRNode>(@class);
NoChildren(method);
}
}

View File

@ -41,7 +41,7 @@ namespace Microsoft.AspNetCore.Razor.Language
node => Assert.IsType<UsingStatementIRNode>(node),
node => Assert.IsType<ClassDeclarationIRNode>(node));
var @class = @namespace.Children[2];
var method = SingleChild<RazorMethodDeclarationIRNode>(@class);
var method = SingleChild<MethodDeclarationIRNode>(@class);
Assert.Empty(method.Children);
}
@ -76,7 +76,7 @@ namespace Microsoft.AspNetCore.Razor.Language
node => Assert.IsType<UsingStatementIRNode>(node),
node => Assert.IsType<ClassDeclarationIRNode>(node));
var @class = @namespace.Children[2];
var method = SingleChild<RazorMethodDeclarationIRNode>(@class);
var method = SingleChild<MethodDeclarationIRNode>(@class);
Assert.Empty(method.Children);
}

View File

@ -113,7 +113,7 @@ namespace Microsoft.AspNetCore.Razor.Language
var @namespace = SingleChild<NamespaceDeclarationIRNode>(irDocument);
var @class = SingleChild<ClassDeclarationIRNode>(@namespace);
var method = SingleChild<RazorMethodDeclarationIRNode>(@class);
var method = SingleChild<MethodDeclarationIRNode>(@class);
NoChildren(method);
}
@ -192,7 +192,7 @@ namespace Microsoft.AspNetCore.Razor.Language
Children(
@class,
n => Assert.IsType<DeclareTagHelperFieldsIRNode>(n),
n => Assert.IsType<RazorMethodDeclarationIRNode>(n));
n => Assert.IsType<MethodDeclarationIRNode>(n));
}
[Fact]
@ -217,7 +217,7 @@ namespace Microsoft.AspNetCore.Razor.Language
// Assert
var @namespace = SingleChild<NamespaceDeclarationIRNode>(irDocument);
var @class = SingleChild<ClassDeclarationIRNode>(@namespace);
var method = SingleChild<RazorMethodDeclarationIRNode>(@class);
var method = SingleChild<MethodDeclarationIRNode>(@class);
Children(
method,
n => Assert.IsType<HtmlContentIRNode>(n),
@ -255,7 +255,7 @@ namespace Microsoft.AspNetCore.Razor.Language
var @class = SingleChild<ClassDeclarationIRNode>(@namespace);
Assert.Equal("TestClass", @class.Name);
var method = SingleChild<RazorMethodDeclarationIRNode>(@class);
var method = SingleChild<MethodDeclarationIRNode>(@class);
Assert.Equal("TestMethod", method.Name);
}
@ -290,7 +290,7 @@ namespace Microsoft.AspNetCore.Razor.Language
var @class = SingleChild<ClassDeclarationIRNode>(@namespace);
AnnotationEquals(@class, CommonAnnotations.PrimaryClass);
var method = SingleChild<RazorMethodDeclarationIRNode>(@class);
var method = SingleChild<MethodDeclarationIRNode>(@class);
AnnotationEquals(method, CommonAnnotations.PrimaryMethod);
}
@ -319,7 +319,7 @@ namespace Microsoft.AspNetCore.Razor.Language
RazorCodeDocument codeDocument,
NamespaceDeclarationIRNode @namespace,
ClassDeclarationIRNode @class,
RazorMethodDeclarationIRNode method)
MethodDeclarationIRNode method)
{
@namespace.Content = Namespace;
@class.Name = Class;

View File

@ -30,7 +30,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate
{
// Arrange
var document = new DocumentIRNode();
var method = new RazorMethodDeclarationIRNode();
var method = new MethodDeclarationIRNode();
method.Annotations[CommonAnnotations.PrimaryMethod] = CommonAnnotations.PrimaryMethod;
var builder = RazorIRBuilder.Create(document);

View File

@ -4,4 +4,4 @@ Document -
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - Template - -
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync

View File

@ -4,4 +4,4 @@ Document -
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - Template - -
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync

View File

@ -4,6 +4,6 @@ Document -
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - Template - -
RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [13] HelloWorld.cshtml)
RazorIRToken - (0:0,0 [13] HelloWorld.cshtml) - Html - Hello, World!

View File

@ -8,6 +8,6 @@ Document -
DirectiveToken - (14:0,14 [17] AddTagHelperDirective.cshtml) - "*, TestAssembly"
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (31:0,31 [2] AddTagHelperDirective.cshtml)
RazorIRToken - (31:0,31 [2] AddTagHelperDirective.cshtml) - Html - \n

View File

@ -9,7 +9,7 @@ Document -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.CatchAllTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (29:0,29 [4] AttributeTargetingTagHelpers.cshtml)
RazorIRToken - (29:0,29 [4] AttributeTargetingTagHelpers.cshtml) - Html - \n\n
TagHelper - (33:2,0 [228] AttributeTargetingTagHelpers.cshtml)

View File

@ -8,7 +8,7 @@ Document -
DeclarePreallocatedTagHelperAttribute - - __tagHelperAttribute_1 - type - checkbox - HtmlAttributeValueStyle.DoubleQuotes
DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - class - btn - HtmlAttributeValueStyle.DoubleQuotes
DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.CatchAllTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (31:1,0 [2] AttributeTargetingTagHelpers.cshtml)
RazorIRToken - (31:1,0 [2] AttributeTargetingTagHelpers.cshtml) - Html - \n
TagHelper - (33:2,0 [228] AttributeTargetingTagHelpers.cshtml)

View File

@ -7,7 +7,7 @@ Document -
DesignTimeDirective -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (89:5,1 [102] Await.cshtml)
RazorIRToken - (89:5,1 [4] Await.cshtml) - Html - \n\n
RazorIRToken - (93:7,0 [9] Await.cshtml) - Html - <section>

View File

@ -4,7 +4,7 @@ Document -
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Await_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (91:6,0 [100] Await.cshtml)
RazorIRToken - (91:6,0 [2] Await.cshtml) - Html - \n
RazorIRToken - (93:7,0 [9] Await.cshtml) - Html - <section>

View File

@ -11,7 +11,7 @@ Document -
DirectiveToken - (119:4,10 [5] BasicImports_Imports0.cshtml) - Hello
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] BasicImports.cshtml)
RazorIRToken - (0:0,0 [3] BasicImports.cshtml) - Html - <p>
RazorIRToken - (3:0,3 [9] BasicImports.cshtml) - Html - Hi there!

View File

@ -7,7 +7,7 @@ Document -
UsingStatement - (80:3,1 [29] BasicImports_Imports0.cshtml) - System.ComponentModel
UsingStatement - (23:1,1 [20] BasicImports_Imports1.cshtml) - System.Text
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicImports_Runtime - Hello -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] BasicImports.cshtml)
RazorIRToken - (0:0,0 [3] BasicImports.cshtml) - Html - <p>
RazorIRToken - (3:0,3 [9] BasicImports.cshtml) - Html - Hi there!

View File

@ -9,7 +9,7 @@ Document -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (31:0,31 [73] BasicTagHelpers.cshtml)
RazorIRToken - (31:0,31 [4] BasicTagHelpers.cshtml) - Html - \n\n
RazorIRToken - (35:2,0 [4] BasicTagHelpers.cshtml) - Html - <div

View File

@ -10,7 +10,7 @@ Document -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (22:0,22 [2] BasicTagHelpers_Prefixed.cshtml)
RazorIRToken - (22:0,22 [2] BasicTagHelpers_Prefixed.cshtml) - Html - \n
HtmlContent - (55:1,31 [54] BasicTagHelpers_Prefixed.cshtml)

View File

@ -7,7 +7,7 @@ Document -
DeclarePreallocatedTagHelperAttribute - - __tagHelperAttribute_0 - type - checkbox - HtmlAttributeValueStyle.DoubleQuotes
DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 - class - Hello World - HtmlAttributeValueStyle.DoubleQuotes
DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (57:2,0 [52] BasicTagHelpers_Prefixed.cshtml)
RazorIRToken - (57:2,0 [2] BasicTagHelpers_Prefixed.cshtml) - Html - \n
RazorIRToken - (59:3,0 [7] BasicTagHelpers_Prefixed.cshtml) - Html - <THSdiv

View File

@ -8,7 +8,7 @@ Document -
DeclarePreallocatedTagHelperAttribute - - __tagHelperAttribute_1 - type - checkbox - HtmlAttributeValueStyle.DoubleQuotes
DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - class - Hello World - HtmlAttributeValueStyle.DoubleQuotes
DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (72:2,0 [49] BasicTagHelpers_RemoveTagHelper.cshtml)
RazorIRToken - (72:2,0 [2] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n
RazorIRToken - (74:3,0 [4] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - <div

View File

@ -10,7 +10,7 @@ Document -
DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 - class - Hello World - HtmlAttributeValueStyle.DoubleQuotes
DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_4 - data-delay - 1000 - HtmlAttributeValueStyle.DoubleQuotes
DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (33:1,0 [71] BasicTagHelpers.cshtml)
RazorIRToken - (33:1,0 [2] BasicTagHelpers.cshtml) - Html - \n
RazorIRToken - (35:2,0 [4] BasicTagHelpers.cshtml) - Html - <div

View File

@ -7,7 +7,7 @@ Document -
DesignTimeDirective -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [18] Blocks.cshtml)
RazorIRToken - (2:0,2 [18] Blocks.cshtml) - CSharp - \n int i = 1;\n
HtmlContent - (23:3,0 [2] Blocks.cshtml)

View File

@ -4,7 +4,7 @@ Document -
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Blocks_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [18] Blocks.cshtml)
RazorIRToken - (2:0,2 [18] Blocks.cshtml) - CSharp - \n int i = 1;\n
HtmlContent - (23:3,0 [2] Blocks.cshtml)

View File

@ -7,7 +7,7 @@ Document -
DesignTimeDirective -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [12] CSharp7.cshtml)
RazorIRToken - (0:0,0 [6] CSharp7.cshtml) - Html - <body>
RazorIRToken - (6:0,6 [6] CSharp7.cshtml) - Html - \n

View File

@ -4,7 +4,7 @@ Document -
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp7_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [8] CSharp7.cshtml)
RazorIRToken - (0:0,0 [6] CSharp7.cshtml) - Html - <body>
RazorIRToken - (6:0,6 [2] CSharp7.cshtml) - Html - \n

View File

@ -7,6 +7,6 @@ Document -
DesignTimeDirective -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [0] CodeBlockAtEOF.cshtml)
RazorIRToken - (2:0,2 [0] CodeBlockAtEOF.cshtml) - CSharp -

View File

@ -4,6 +4,6 @@ Document -
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockAtEOF_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [0] CodeBlockAtEOF.cshtml)
RazorIRToken - (2:0,2 [0] CodeBlockAtEOF.cshtml) - CSharp -

View File

@ -7,7 +7,7 @@ Document -
DesignTimeDirective -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [17] CodeBlockWithTextElement.cshtml)
RazorIRToken - (2:0,2 [17] CodeBlockWithTextElement.cshtml) - CSharp - \n var a = 1;
HtmlContent - (25:1,21 [3] CodeBlockWithTextElement.cshtml)

View File

@ -4,7 +4,7 @@ Document -
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockWithTextElement_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [16] CodeBlockWithTextElement.cshtml)
RazorIRToken - (2:0,2 [16] CodeBlockWithTextElement.cshtml) - CSharp - \n var a = 1;
HtmlContent - (25:1,21 [3] CodeBlockWithTextElement.cshtml)

View File

@ -7,6 +7,6 @@ Document -
DesignTimeDirective -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [115] CodeBlock.cshtml)
RazorIRToken - (2:0,2 [115] CodeBlock.cshtml) - CSharp - \n for(int i = 1; i <= 10; i++) {\n Output.Write("<p>Hello from C#, #" + i.ToString() + "</p>");\n }\n

View File

@ -4,6 +4,6 @@ Document -
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlock_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [115] CodeBlock.cshtml)
RazorIRToken - (2:0,2 [115] CodeBlock.cshtml) - CSharp - \n for(int i = 1; i <= 10; i++) {\n Output.Write("<p>Hello from C#, #" + i.ToString() + "</p>");\n }\n

View File

@ -9,7 +9,7 @@ Document -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (31:0,31 [4] ComplexTagHelpers.cshtml)
RazorIRToken - (31:0,31 [4] ComplexTagHelpers.cshtml) - Html - \n\n
CSharpStatement - (36:2,1 [52] ComplexTagHelpers.cshtml)

View File

@ -13,7 +13,7 @@ Document -
DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_6 - unbound - world - HtmlAttributeValueStyle.DoubleQuotes
DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_7 - class - hello - HtmlAttributeValueStyle.DoubleQuotes
DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (33:1,0 [2] ComplexTagHelpers.cshtml)
RazorIRToken - (33:1,0 [2] ComplexTagHelpers.cshtml) - Html - \n
CSharpStatement - (36:2,1 [48] ComplexTagHelpers.cshtml)

View File

@ -7,7 +7,7 @@ Document -
DesignTimeDirective -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [48] ConditionalAttributes.cshtml)
RazorIRToken - (2:0,2 [48] ConditionalAttributes.cshtml) - CSharp - \n var ch = true;\n var cls = "bar";\n
HtmlContent - (50:3,4 [16] ConditionalAttributes.cshtml)

View File

@ -4,7 +4,7 @@ Document -
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ConditionalAttributes_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [44] ConditionalAttributes.cshtml)
RazorIRToken - (2:0,2 [44] ConditionalAttributes.cshtml) - CSharp - \n var ch = true;\n var cls = "bar";\n
HtmlContent - (46:3,0 [28] ConditionalAttributes.cshtml)

View File

@ -14,7 +14,7 @@ Document -
DeclarePreallocatedTagHelperAttribute - - __tagHelperAttribute_7 - type - checkbox - HtmlAttributeValueStyle.DoubleQuotes
DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_8 - value - 2 TagHelper - HtmlAttributeValueStyle.DoubleQuotes
DeclareTagHelperFields - - TestNamespace.ATagHelper - TestNamespace.CatchAllTagHelper - TestNamespace.ATagHelperMultipleSelectors - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - TestNamespace.CatchAllTagHelper2
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (33:1,0 [2] CssSelectorTagHelperAttributes.cshtml)
RazorIRToken - (33:1,0 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n
TagHelper - (35:2,0 [30] CssSelectorTagHelperAttributes.cshtml)

View File

@ -8,7 +8,7 @@ Document -
DirectiveToken - (173:11,9 [6] DesignTime.cshtml) - Footer
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [19] DesignTime.cshtml)
RazorIRToken - (0:0,0 [5] DesignTime.cshtml) - Html - <div>
RazorIRToken - (5:0,5 [14] DesignTime.cshtml) - Html - \n

View File

@ -9,7 +9,7 @@ Document -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (31:0,31 [4] DuplicateAttributeTagHelpers.cshtml)
RazorIRToken - (31:0,31 [4] DuplicateAttributeTagHelpers.cshtml) - Html - \n\n
TagHelper - (35:2,0 [259] DuplicateAttributeTagHelpers.cshtml)

View File

@ -14,7 +14,7 @@ Document -
DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_7 - AGE - 40 - HtmlAttributeValueStyle.DoubleQuotes
DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_8 - Age - 500 - HtmlAttributeValueStyle.DoubleQuotes
DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (33:1,0 [2] DuplicateAttributeTagHelpers.cshtml)
RazorIRToken - (33:1,0 [2] DuplicateAttributeTagHelpers.cshtml) - Html - \n
TagHelper - (35:2,0 [259] DuplicateAttributeTagHelpers.cshtml)

View File

@ -9,7 +9,7 @@ Document -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
DeclareTagHelperFields - - TestNamespace.InputTagHelper
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (31:0,31 [4] DynamicAttributeTagHelpers.cshtml)
RazorIRToken - (31:0,31 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n
TagHelper - (35:2,0 [40] DynamicAttributeTagHelpers.cshtml)

View File

@ -5,7 +5,7 @@ Document -
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DynamicAttributeTagHelpers_Runtime - -
DeclareTagHelperFields - - TestNamespace.InputTagHelper
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (33:1,0 [2] DynamicAttributeTagHelpers.cshtml)
RazorIRToken - (33:1,0 [2] DynamicAttributeTagHelpers.cshtml) - Html - \n
TagHelper - (35:2,0 [40] DynamicAttributeTagHelpers.cshtml)

View File

@ -9,7 +9,7 @@ Document -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - TestNamespace.PTagHelper
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (29:0,29 [15] EmptyAttributeTagHelpers.cshtml)
RazorIRToken - (29:0,29 [4] EmptyAttributeTagHelpers.cshtml) - Html - \n\n
RazorIRToken - (33:2,0 [5] EmptyAttributeTagHelpers.cshtml) - Html - <div>

View File

@ -7,7 +7,7 @@ Document -
DeclarePreallocatedTagHelperAttribute - - __tagHelperAttribute_0 - type - - HtmlAttributeValueStyle.DoubleQuotes
DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 - class - - HtmlAttributeValueStyle.DoubleQuotes
DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - TestNamespace.PTagHelper
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (31:1,0 [13] EmptyAttributeTagHelpers.cshtml)
RazorIRToken - (31:1,0 [2] EmptyAttributeTagHelpers.cshtml) - Html - \n
RazorIRToken - (33:2,0 [5] EmptyAttributeTagHelpers.cshtml) - Html - <div>

View File

@ -7,7 +7,7 @@ Document -
DesignTimeDirective -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] EmptyCodeBlock.cshtml)
RazorIRToken - (0:0,0 [18] EmptyCodeBlock.cshtml) - Html - This is markup\n\n
CSharpStatement - (20:2,2 [0] EmptyCodeBlock.cshtml)

View File

@ -4,7 +4,7 @@ Document -
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyCodeBlock_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] EmptyCodeBlock.cshtml)
RazorIRToken - (0:0,0 [18] EmptyCodeBlock.cshtml) - Html - This is markup\n\n
CSharpStatement - (20:2,2 [0] EmptyCodeBlock.cshtml)

View File

@ -7,7 +7,7 @@ Document -
DesignTimeDirective -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] EmptyExplicitExpression.cshtml)
RazorIRToken - (0:0,0 [18] EmptyExplicitExpression.cshtml) - Html - This is markup\n\n
CSharpExpression - (20:2,2 [0] EmptyExplicitExpression.cshtml)

View File

@ -4,7 +4,7 @@ Document -
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyExplicitExpression_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] EmptyExplicitExpression.cshtml)
RazorIRToken - (0:0,0 [18] EmptyExplicitExpression.cshtml) - Html - This is markup\n\n
CSharpExpression - (20:2,2 [0] EmptyExplicitExpression.cshtml)

View File

@ -7,7 +7,7 @@ Document -
DesignTimeDirective -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml)
RazorIRToken - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml) - CSharp - \n
CSharpExpression - (9:1,5 [0] EmptyImplicitExpressionInCode.cshtml)

View File

@ -4,7 +4,7 @@ Document -
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpressionInCode_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml)
RazorIRToken - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml) - CSharp - \n
CSharpExpression - (9:1,5 [0] EmptyImplicitExpressionInCode.cshtml)

View File

@ -7,7 +7,7 @@ Document -
DesignTimeDirective -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] EmptyImplicitExpression.cshtml)
RazorIRToken - (0:0,0 [18] EmptyImplicitExpression.cshtml) - Html - This is markup\n\n
CSharpExpression - (19:2,1 [0] EmptyImplicitExpression.cshtml)

View File

@ -4,7 +4,7 @@ Document -
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpression_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] EmptyImplicitExpression.cshtml)
RazorIRToken - (0:0,0 [18] EmptyImplicitExpression.cshtml) - Html - This is markup\n\n
CSharpExpression - (19:2,1 [0] EmptyImplicitExpression.cshtml)

View File

@ -9,7 +9,7 @@ Document -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.CatchAllTagHelper
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (31:0,31 [4] EnumTagHelpers.cshtml)
RazorIRToken - (31:0,31 [4] EnumTagHelpers.cshtml) - Html - \n\n
CSharpStatement - (37:2,2 [39] EnumTagHelpers.cshtml)

View File

@ -5,7 +5,7 @@ Document -
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EnumTagHelpers_Runtime - -
DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.CatchAllTagHelper
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (33:1,0 [2] EnumTagHelpers.cshtml)
RazorIRToken - (33:1,0 [2] EnumTagHelpers.cshtml) - Html - \n
CSharpStatement - (37:2,2 [39] EnumTagHelpers.cshtml)

View File

@ -9,7 +9,7 @@ Document -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (29:0,29 [5] EscapedTagHelpers.cshtml)
RazorIRToken - (29:0,29 [4] EscapedTagHelpers.cshtml) - Html - \n\n
RazorIRToken - (33:2,0 [1] EscapedTagHelpers.cshtml) - Html - <

View File

@ -5,7 +5,7 @@ Document -
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EscapedTagHelpers_Runtime - -
DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (31:1,0 [3] EscapedTagHelpers.cshtml)
RazorIRToken - (31:1,0 [2] EscapedTagHelpers.cshtml) - Html - \n
RazorIRToken - (33:2,0 [1] EscapedTagHelpers.cshtml) - Html - <

View File

@ -7,7 +7,7 @@ Document -
DesignTimeDirective -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml)
RazorIRToken - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml) - Html - This is markup\n\n
CSharpExpression - (20:2,2 [0] ExplicitExpressionAtEOF.cshtml)

View File

@ -4,7 +4,7 @@ Document -
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionAtEOF_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml)
RazorIRToken - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml) - Html - This is markup\n\n
CSharpExpression - (20:2,2 [0] ExplicitExpressionAtEOF.cshtml)

View File

@ -7,7 +7,7 @@ Document -
DesignTimeDirective -
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [5] ExplicitExpressionWithMarkup.cshtml)
RazorIRToken - (0:0,0 [5] ExplicitExpressionWithMarkup.cshtml) - Html - <div>
CSharpExpression - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml)

Some files were not shown because too many files have changed in this diff Show More