[Fixes #959] Generate LineMapping for Using statements with source

- Also generate/test IR baselines with all code generation tests
This commit is contained in:
Ajay Bhargav Baaskaran 2017-02-21 16:33:29 -08:00
parent c76ae277a3
commit cb5b8a45f1
94 changed files with 2095 additions and 43 deletions

View File

@ -59,7 +59,17 @@ namespace Microsoft.AspNetCore.Razor.Evolution.CodeGeneration
public override void VisitUsingStatement(UsingStatementIRNode node)
{
Context.Writer.WriteUsing(node.Content);
if (node.Source.HasValue)
{
using (new LinePragmaWriter(Context.Writer, node.Source.Value))
{
Context.Writer.WriteUsing(node.Content);
}
}
else
{
Context.Writer.WriteUsing(node.Content);
}
}
public override void VisitCSharpStatement(CSharpStatementIRNode node)

View File

@ -93,7 +93,17 @@ namespace Microsoft.AspNetCore.Razor.Evolution.CodeGeneration
public override void VisitUsingStatement(UsingStatementIRNode node)
{
Context.Writer.WriteUsing(node.Content);
if (node.Source.HasValue)
{
using (new LinePragmaWriter(Context.Writer, node.Source.Value))
{
Context.Writer.WriteUsing(node.Content);
}
}
else
{
Context.Writer.WriteUsing(node.Content);
}
}
public override void VisitHtmlAttribute(HtmlAttributeIRNode node)

View File

@ -14,6 +14,21 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
public class CodeGenerationIntegrationTest : IntegrationTestBase
{
#region Runtime
[Fact]
public void BasicImports_Runtime()
{
// Arrange
var engine = RazorEngine.Create(builder => builder.Features.Add(new ApiSetsIRTestAdapter()));
var document = CreateCodeDocument();
// Act
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
[Fact]
public void UnfinishedExpressionInCode_Runtime()
{
@ -25,6 +40,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -39,6 +55,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -53,6 +70,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -67,6 +85,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -81,6 +100,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -95,6 +115,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -109,6 +130,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -123,6 +145,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -137,6 +160,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -151,6 +175,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -165,6 +190,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -179,6 +205,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -193,6 +220,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -207,6 +235,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -221,6 +250,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -235,6 +265,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -249,6 +280,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -263,6 +295,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -277,6 +310,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -291,6 +325,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -305,6 +340,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -319,6 +355,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -333,6 +370,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -347,6 +385,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -361,6 +400,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -375,6 +415,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -389,6 +430,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -403,6 +445,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -417,6 +460,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -431,6 +475,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -445,6 +490,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -459,6 +505,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -473,6 +520,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -487,6 +535,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -501,6 +550,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -515,6 +565,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -529,6 +580,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -543,6 +595,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument());
}
@ -730,6 +783,21 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
#endregion
#region DesignTime
[Fact]
public void BasicImports_DesignTime()
{
// Arrange
var engine = RazorEngine.CreateDesignTime(builder => builder.Features.Add(new ApiSetsIRTestAdapter()));
var document = CreateCodeDocument();
// Act
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
[Fact]
public void UnfinishedExpressionInCode_DesignTime()
{
@ -741,6 +809,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -755,6 +824,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -769,6 +839,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -783,6 +854,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -797,6 +869,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -811,6 +884,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -825,6 +899,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -839,6 +914,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -853,6 +929,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -867,6 +944,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -881,6 +959,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -895,6 +974,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -909,6 +989,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -923,6 +1004,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -937,6 +1019,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -951,6 +1034,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -965,6 +1049,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -979,6 +1064,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -993,6 +1079,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1007,6 +1094,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1021,6 +1109,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1035,6 +1124,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1049,6 +1139,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1063,6 +1154,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1077,6 +1169,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1091,6 +1184,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1105,6 +1199,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1119,6 +1214,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1133,6 +1229,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1147,6 +1244,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1161,6 +1259,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1175,6 +1274,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1189,6 +1289,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1203,6 +1304,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1217,6 +1319,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1231,6 +1334,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1245,6 +1349,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1259,6 +1364,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1273,6 +1379,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1287,6 +1394,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1301,6 +1409,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
AssertDesignTimeDocumentMatchBaseline(document);
}
@ -1482,8 +1591,21 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
throw new XunitException($"The resource {sourceFilename} was not found.");
}
var imports = new List<RazorSourceDocument>();
while (true)
{
var importsFilename = Path.ChangeExtension(normalizedFileName + "_Imports" + imports.Count.ToString(), ".cshtml");
if (!TestFile.Create(importsFilename).Exists())
{
break;
}
imports.Add(
TestRazorSourceDocument.CreateResource(importsFilename, encoding: null, normalizeNewLines: true));
}
var codeDocument = RazorCodeDocument.Create(
TestRazorSourceDocument.CreateResource(sourceFilename, encoding: null, normalizeNewLines: true));
TestRazorSourceDocument.CreateResource(sourceFilename, encoding: null, normalizeNewLines: true), imports);
// This will ensure that we're not putting any randomly generated data in a baseline.
codeDocument.Items[DefaultRazorCSharpLoweringPhase.SuppressUniqueIds] = "test";

View File

@ -1,25 +0,0 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Xunit;
namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
{
public class ImportsIntegrationTest : IntegrationTestBase
{
[Fact]
public void BasicImports()
{
// Arrange
var engine = RazorEngine.Create();
var document = CreateCodeDocument();
// Act
engine.Process(document);
// Assert
AssertIRMatchesBaseline(document.GetIRDocument());
}
}
}

View File

@ -0,0 +1,15 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AddTagHelperDirective_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
DirectiveToken - (14:0,14 [17] AddTagHelperDirective.cshtml) - "*, TestAssembly"
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (31:0,31 [2] AddTagHelperDirective.cshtml) - \n

View File

@ -0,0 +1,56 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Await_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (89:5,1 [102] Await.cshtml) - \n\n<section>\n <h1>Basic Asynchronous Expression Test</h1>\n <p>Basic Asynchronous Expression:
CSharpExpression - (192:9,39 [11] Await.cshtml)
RazorIRToken - (192:9,39 [11] Await.cshtml) - CSharp - await Foo()
HtmlContent - (203:9,50 [42] Await.cshtml) - </p>\n <p>Basic Asynchronous Template:
CSharpExpression - (247:10,38 [11] Await.cshtml)
RazorIRToken - (247:10,38 [11] Await.cshtml) - CSharp - await Foo()
HtmlContent - (259:10,50 [43] Await.cshtml) - </p>\n <p>Basic Asynchronous Statement:
CSharpStatement - (304:11,39 [14] Await.cshtml) - await Foo();
HtmlContent - (319:11,54 [50] Await.cshtml) - </p>\n <p>Basic Asynchronous Statement Nested:
CSharpStatement - (371:12,46 [1] Await.cshtml) -
HtmlContent - (372:12,47 [3] Await.cshtml) - <b>
CSharpExpression - (376:12,51 [11] Await.cshtml)
RazorIRToken - (376:12,51 [11] Await.cshtml) - CSharp - await Foo()
HtmlContent - (387:12,62 [4] Await.cshtml) - </b>
CSharpStatement - (391:12,66 [1] Await.cshtml) -
HtmlContent - (393:12,68 [54] Await.cshtml) - </p>\n <p>Basic Incomplete Asynchronous Statement:
CSharpExpression - (448:13,49 [5] Await.cshtml)
RazorIRToken - (448:13,49 [5] Await.cshtml) - CSharp - await
HtmlContent - (453:13,54 [124] Await.cshtml) - </p>\n</section>\n\n<section>\n <h1>Advanced Asynchronous Expression Test</h1>\n <p>Advanced Asynchronous Expression:
CSharpExpression - (578:18,42 [15] Await.cshtml)
RazorIRToken - (578:18,42 [15] Await.cshtml) - CSharp - await Foo(1, 2)
HtmlContent - (593:18,57 [56] Await.cshtml) - </p>\n <p>Advanced Asynchronous Expression Extended:
CSharpExpression - (650:19,51 [19] Await.cshtml)
RazorIRToken - (650:19,51 [19] Await.cshtml) - CSharp - await Foo.Bar(1, 2)
HtmlContent - (669:19,70 [45] Await.cshtml) - </p>\n <p>Advanced Asynchronous Template:
CSharpExpression - (716:20,41 [22] Await.cshtml)
RazorIRToken - (716:20,41 [22] Await.cshtml) - CSharp - await Foo("bob", true)
HtmlContent - (739:20,64 [46] Await.cshtml) - </p>\n <p>Advanced Asynchronous Statement:
CSharpStatement - (787:21,42 [39] Await.cshtml) - await Foo(something, hello: "world");
HtmlContent - (827:21,82 [55] Await.cshtml) - </p>\n <p>Advanced Asynchronous Statement Extended:
CSharpStatement - (884:22,51 [21] Await.cshtml) - await Foo.Bar(1, 2)
HtmlContent - (906:22,73 [53] Await.cshtml) - </p>\n <p>Advanced Asynchronous Statement Nested:
CSharpStatement - (961:23,49 [1] Await.cshtml) -
HtmlContent - (962:23,50 [3] Await.cshtml) - <b>
CSharpExpression - (966:23,54 [27] Await.cshtml)
RazorIRToken - (966:23,54 [27] Await.cshtml) - CSharp - await Foo(boolValue: false)
HtmlContent - (993:23,81 [4] Await.cshtml) - </b>
CSharpStatement - (997:23,85 [1] Await.cshtml) -
HtmlContent - (999:23,87 [57] Await.cshtml) - </p>\n <p>Advanced Incomplete Asynchronous Statement:
CSharpExpression - (1057:24,52 [19] Await.cshtml)
RazorIRToken - (1057:24,52 [19] Await.cshtml) - CSharp - await ("wrrronggg")
HtmlContent - (1076:24,71 [16] Await.cshtml) - </p>\n</section>
CSharpStatement - (12:0,12 [76] Await.cshtml) - \n public async Task<string> Foo()\n {\n return "Bar";\n }\n

View File

@ -0,0 +1,48 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Await_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (91:6,0 [100] Await.cshtml) - \n<section>\n <h1>Basic Asynchronous Expression Test</h1>\n <p>Basic Asynchronous Expression:
CSharpExpression - (192:9,39 [11] Await.cshtml)
RazorIRToken - (192:9,39 [11] Await.cshtml) - CSharp - await Foo()
HtmlContent - (203:9,50 [42] Await.cshtml) - </p>\n <p>Basic Asynchronous Template:
CSharpExpression - (247:10,38 [11] Await.cshtml)
RazorIRToken - (247:10,38 [11] Await.cshtml) - CSharp - await Foo()
HtmlContent - (259:10,50 [43] Await.cshtml) - </p>\n <p>Basic Asynchronous Statement:
CSharpStatement - (304:11,39 [14] Await.cshtml) - await Foo();
HtmlContent - (319:11,54 [50] Await.cshtml) - </p>\n <p>Basic Asynchronous Statement Nested:
HtmlContent - (371:12,46 [4] Await.cshtml) - <b>
CSharpExpression - (376:12,51 [11] Await.cshtml)
RazorIRToken - (376:12,51 [11] Await.cshtml) - CSharp - await Foo()
HtmlContent - (387:12,62 [5] Await.cshtml) - </b>
CSharpStatement - (392:12,67 [0] Await.cshtml) -
HtmlContent - (393:12,68 [54] Await.cshtml) - </p>\n <p>Basic Incomplete Asynchronous Statement:
CSharpExpression - (448:13,49 [5] Await.cshtml)
RazorIRToken - (448:13,49 [5] Await.cshtml) - CSharp - await
HtmlContent - (453:13,54 [124] Await.cshtml) - </p>\n</section>\n\n<section>\n <h1>Advanced Asynchronous Expression Test</h1>\n <p>Advanced Asynchronous Expression:
CSharpExpression - (578:18,42 [15] Await.cshtml)
RazorIRToken - (578:18,42 [15] Await.cshtml) - CSharp - await Foo(1, 2)
HtmlContent - (593:18,57 [56] Await.cshtml) - </p>\n <p>Advanced Asynchronous Expression Extended:
CSharpExpression - (650:19,51 [19] Await.cshtml)
RazorIRToken - (650:19,51 [19] Await.cshtml) - CSharp - await Foo.Bar(1, 2)
HtmlContent - (669:19,70 [45] Await.cshtml) - </p>\n <p>Advanced Asynchronous Template:
CSharpExpression - (716:20,41 [22] Await.cshtml)
RazorIRToken - (716:20,41 [22] Await.cshtml) - CSharp - await Foo("bob", true)
HtmlContent - (739:20,64 [46] Await.cshtml) - </p>\n <p>Advanced Asynchronous Statement:
CSharpStatement - (787:21,42 [39] Await.cshtml) - await Foo(something, hello: "world");
HtmlContent - (827:21,82 [55] Await.cshtml) - </p>\n <p>Advanced Asynchronous Statement Extended:
CSharpStatement - (884:22,51 [21] Await.cshtml) - await Foo.Bar(1, 2)
HtmlContent - (906:22,73 [53] Await.cshtml) - </p>\n <p>Advanced Asynchronous Statement Nested:
HtmlContent - (961:23,49 [4] Await.cshtml) - <b>
CSharpExpression - (966:23,54 [27] Await.cshtml)
RazorIRToken - (966:23,54 [27] Await.cshtml) - CSharp - await Foo(boolValue: false)
HtmlContent - (993:23,81 [5] Await.cshtml) - </b>
CSharpStatement - (998:23,86 [0] Await.cshtml) -
HtmlContent - (999:23,87 [57] Await.cshtml) - </p>\n <p>Advanced Incomplete Asynchronous Statement:
CSharpExpression - (1057:24,52 [19] Await.cshtml)
RazorIRToken - (1057:24,52 [19] Await.cshtml) - CSharp - await ("wrrronggg")
HtmlContent - (1076:24,71 [16] Await.cshtml) - </p>\n</section>
CSharpStatement - (12:0,12 [76] Await.cshtml) - \n public async Task<string> Foo()\n {\n return "Bar";\n }\n

View File

@ -0,0 +1,34 @@
namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
{
#line hidden
using System;
using System.Threading.Tasks;
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicImports_Imports0.cshtml"
using System.Globalization;
#line default
#line hidden
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicImports_Imports0.cshtml"
using System.ComponentModel;
#line default
#line hidden
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicImports_Imports1.cshtml"
using System.Text;
#line default
#line hidden
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicImports_DesignTime
{
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
}
#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
}
}

View File

@ -0,0 +1,17 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
UsingStatement - (31:1,1 [26] BasicImports_Imports0.cshtml) - System.Globalization
UsingStatement - (80:3,1 [27] BasicImports_Imports0.cshtml) - System.ComponentModel
UsingStatement - (23:1,1 [18] BasicImports_Imports1.cshtml) - System.Text
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicImports_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] BasicImports.cshtml) - <p>Hi there!</p>\n

View File

@ -0,0 +1,31 @@
#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicImports.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "d351c0c4dc0afdbf46547fcd87692951d2e4871f"
namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
{
#line hidden
using System;
using System.Threading.Tasks;
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicImports_Imports0.cshtml"
using System.Globalization;
#line default
#line hidden
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicImports_Imports0.cshtml"
using System.ComponentModel;
#line default
#line hidden
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicImports_Imports1.cshtml"
using System.Text;
#line default
#line hidden
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicImports_Runtime
{
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("<p>Hi there!</p>\r\n");
}
#pragma warning restore 1998
}
}

View File

@ -1,11 +1,11 @@
Document -
Checksum -
NamespaceDeclaration - -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
UsingStatement - (31:1,1 [28] BasicImports_Imports0.cshtml) - System.Globalization
UsingStatement - (80:3,1 [29] BasicImports_Imports0.cshtml) - System.ComponentModel
UsingStatement - (23:1,1 [20] BasicImports_Imports1.cshtml) - System.Text
ClassDeclaration - - - - -
RazorMethodDeclaration - - - - -
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicImports_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] BasicImports.cshtml) - <p>Hi there!</p>\n

View File

@ -0,0 +1,54 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Blocks_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [18] Blocks.cshtml) - \n int i = 1;\n
HtmlContent - (23:3,0 [2] Blocks.cshtml) - \n
CSharpStatement - (26:4,1 [22] Blocks.cshtml) - while(i <= 10) {\n
HtmlContent - (48:5,4 [19] Blocks.cshtml) - <p>Hello from C#, #
CSharpExpression - (69:5,25 [1] Blocks.cshtml)
RazorIRToken - (69:5,25 [1] Blocks.cshtml) - CSharp - i
HtmlContent - (71:5,27 [4] Blocks.cshtml) - </p>
CSharpStatement - (75:5,31 [16] Blocks.cshtml) - \n i += 1;\n}
HtmlContent - (91:7,1 [4] Blocks.cshtml) - \n\n
CSharpStatement - (96:9,1 [19] Blocks.cshtml) - if(i == 11) {\n
HtmlContent - (115:10,4 [25] Blocks.cshtml) - <p>We wrote 10 lines!</p>
CSharpStatement - (140:10,29 [3] Blocks.cshtml) - \n}
HtmlContent - (143:11,1 [4] Blocks.cshtml) - \n\n
CSharpStatement - (148:13,1 [35] Blocks.cshtml) - switch(i) {\n case 11:\n
HtmlContent - (183:15,8 [36] Blocks.cshtml) - <p>No really, we wrote 10 lines!</p>
CSharpStatement - (219:15,44 [40] Blocks.cshtml) - \n break;\n default:\n
HtmlContent - (259:18,8 [29] Blocks.cshtml) - <p>Actually, we didn't...</p>
CSharpStatement - (288:18,37 [19] Blocks.cshtml) - \n break;\n}
HtmlContent - (307:20,1 [4] Blocks.cshtml) - \n\n
CSharpStatement - (312:22,1 [39] Blocks.cshtml) - for(int j = 1; j <= 10; j += 2) {\n
HtmlContent - (351:23,4 [25] Blocks.cshtml) - <p>Hello again from C#, #
CSharpExpression - (378:23,31 [1] Blocks.cshtml)
RazorIRToken - (378:23,31 [1] Blocks.cshtml) - CSharp - j
HtmlContent - (380:23,33 [4] Blocks.cshtml) - </p>
CSharpStatement - (384:23,37 [3] Blocks.cshtml) - \n}
HtmlContent - (387:24,1 [4] Blocks.cshtml) - \n\n
CSharpStatement - (392:26,1 [11] Blocks.cshtml) - try {\n
HtmlContent - (403:27,4 [35] Blocks.cshtml) - <p>That time, we wrote 5 lines!</p>
CSharpStatement - (438:27,39 [31] Blocks.cshtml) - \n} catch(Exception ex) {\n
HtmlContent - (469:29,4 [29] Blocks.cshtml) - <p>Oh no! An error occurred:
CSharpExpression - (500:29,35 [10] Blocks.cshtml)
RazorIRToken - (500:29,35 [10] Blocks.cshtml) - CSharp - ex.Message
HtmlContent - (511:29,46 [4] Blocks.cshtml) - </p>
CSharpStatement - (515:29,50 [3] Blocks.cshtml) - \n}
HtmlContent - (518:30,1 [16] Blocks.cshtml) - \n\n<p>i is now
CSharpExpression - (535:32,13 [1] Blocks.cshtml)
RazorIRToken - (535:32,13 [1] Blocks.cshtml) - CSharp - i
HtmlContent - (536:32,14 [8] Blocks.cshtml) - </p>\n\n
CSharpStatement - (545:34,1 [26] Blocks.cshtml) - lock(new object()) {\n
HtmlContent - (571:35,4 [47] Blocks.cshtml) - <p>This block is locked, for your security!</p>
CSharpStatement - (618:35,51 [3] Blocks.cshtml) - \n}

View File

@ -0,0 +1,48 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Blocks_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [18] Blocks.cshtml) - \n int i = 1;\n
HtmlContent - (23:3,0 [2] Blocks.cshtml) - \n
CSharpStatement - (26:4,1 [18] Blocks.cshtml) - while(i <= 10) {\n
HtmlContent - (44:5,0 [23] Blocks.cshtml) - <p>Hello from C#, #
CSharpExpression - (69:5,25 [1] Blocks.cshtml)
RazorIRToken - (69:5,25 [1] Blocks.cshtml) - CSharp - i
HtmlContent - (71:5,27 [6] Blocks.cshtml) - </p>\n
CSharpStatement - (77:6,0 [16] Blocks.cshtml) - i += 1;\n}\n
HtmlContent - (93:8,0 [2] Blocks.cshtml) - \n
CSharpStatement - (96:9,1 [15] Blocks.cshtml) - if(i == 11) {\n
HtmlContent - (111:10,0 [31] Blocks.cshtml) - <p>We wrote 10 lines!</p>\n
CSharpStatement - (142:11,0 [3] Blocks.cshtml) - }\n
HtmlContent - (145:12,0 [2] Blocks.cshtml) - \n
CSharpStatement - (148:13,1 [27] Blocks.cshtml) - switch(i) {\n case 11:\n
HtmlContent - (175:15,0 [46] Blocks.cshtml) - <p>No really, we wrote 10 lines!</p>\n
CSharpStatement - (221:16,0 [30] Blocks.cshtml) - break;\n default:\n
HtmlContent - (251:18,0 [39] Blocks.cshtml) - <p>Actually, we didn't...</p>\n
CSharpStatement - (290:19,0 [19] Blocks.cshtml) - break;\n}\n
HtmlContent - (309:21,0 [2] Blocks.cshtml) - \n
CSharpStatement - (312:22,1 [35] Blocks.cshtml) - for(int j = 1; j <= 10; j += 2) {\n
HtmlContent - (347:23,0 [29] Blocks.cshtml) - <p>Hello again from C#, #
CSharpExpression - (378:23,31 [1] Blocks.cshtml)
RazorIRToken - (378:23,31 [1] Blocks.cshtml) - CSharp - j
HtmlContent - (380:23,33 [6] Blocks.cshtml) - </p>\n
CSharpStatement - (386:24,0 [3] Blocks.cshtml) - }\n
HtmlContent - (389:25,0 [2] Blocks.cshtml) - \n
CSharpStatement - (392:26,1 [7] Blocks.cshtml) - try {\n
HtmlContent - (399:27,0 [41] Blocks.cshtml) - <p>That time, we wrote 5 lines!</p>\n
CSharpStatement - (440:28,0 [25] Blocks.cshtml) - } catch(Exception ex) {\n
HtmlContent - (465:29,0 [33] Blocks.cshtml) - <p>Oh no! An error occurred:
CSharpExpression - (500:29,35 [10] Blocks.cshtml)
RazorIRToken - (500:29,35 [10] Blocks.cshtml) - CSharp - ex.Message
HtmlContent - (511:29,46 [6] Blocks.cshtml) - </p>\n
CSharpStatement - (517:30,0 [3] Blocks.cshtml) - }\n
HtmlContent - (520:31,0 [14] Blocks.cshtml) - \n<p>i is now
CSharpExpression - (535:32,13 [1] Blocks.cshtml)
RazorIRToken - (535:32,13 [1] Blocks.cshtml) - CSharp - i
HtmlContent - (536:32,14 [8] Blocks.cshtml) - </p>\n\n
CSharpStatement - (545:34,1 [22] Blocks.cshtml) - lock(new object()) {\n
HtmlContent - (567:35,0 [53] Blocks.cshtml) - <p>This block is locked, for your security!</p>\n
CSharpStatement - (620:36,0 [1] Blocks.cshtml) - }

View File

@ -0,0 +1,14 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockAtEOF_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [0] CodeBlockAtEOF.cshtml) -

View File

@ -0,0 +1,8 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockAtEOF_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [0] CodeBlockAtEOF.cshtml) -

View File

@ -0,0 +1,20 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockWithTextElement_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [17] CodeBlockWithTextElement.cshtml) - \n var a = 1;
HtmlContent - (25:1,21 [3] CodeBlockWithTextElement.cshtml) - foo
CSharpStatement - (35:1,31 [22] CodeBlockWithTextElement.cshtml) - \n var b = 1;
HtmlContent - (63:2,23 [4] CodeBlockWithTextElement.cshtml) - bar
CSharpExpression - (69:2,29 [3] CodeBlockWithTextElement.cshtml)
RazorIRToken - (69:2,29 [3] CodeBlockWithTextElement.cshtml) - CSharp - a+b
CSharpStatement - (80:2,40 [2] CodeBlockWithTextElement.cshtml) - \n

View File

@ -0,0 +1,14 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockWithTextElement_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [16] CodeBlockWithTextElement.cshtml) - \n var a = 1;
HtmlContent - (25:1,21 [3] CodeBlockWithTextElement.cshtml) - foo
CSharpStatement - (35:1,31 [19] CodeBlockWithTextElement.cshtml) - \n var b = 1;
HtmlContent - (63:2,23 [4] CodeBlockWithTextElement.cshtml) - bar
CSharpExpression - (69:2,29 [3] CodeBlockWithTextElement.cshtml)
RazorIRToken - (69:2,29 [3] CodeBlockWithTextElement.cshtml) - CSharp - a+b
CSharpStatement - (80:2,40 [2] CodeBlockWithTextElement.cshtml) - \n

View File

@ -0,0 +1,14 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlock_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [115] CodeBlock.cshtml) - \n for(int i = 1; i <= 10; i++) {\n Output.Write("<p>Hello from C#, #" + i.ToString() + "</p>");\n }\n

View File

@ -0,0 +1,8 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlock_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [115] CodeBlock.cshtml) - \n for(int i = 1; i <= 10; i++) {\n Output.Write("<p>Hello from C#, #" + i.ToString() + "</p>");\n }\n

View File

@ -0,0 +1,81 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ConditionalAttributes_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [48] ConditionalAttributes.cshtml) - \n var ch = true;\n var cls = "bar";\n
HtmlContent - (50:3,4 [16] ConditionalAttributes.cshtml) - <a href="Foo" />
CSharpStatement - (66:3,20 [6] ConditionalAttributes.cshtml) - \n
HtmlContent - (72:4,4 [2] ConditionalAttributes.cshtml) - <p
HtmlAttribute - (74:4,6 [13] ConditionalAttributes.cshtml) - class=" - "
CSharpAttributeValue - (82:4,14 [4] ConditionalAttributes.cshtml) -
CSharpExpression - (83:4,15 [3] ConditionalAttributes.cshtml)
RazorIRToken - (83:4,15 [3] ConditionalAttributes.cshtml) - CSharp - cls
HtmlContent - (87:4,19 [3] ConditionalAttributes.cshtml) - />
CSharpStatement - (90:4,22 [6] ConditionalAttributes.cshtml) - \n
HtmlContent - (96:5,4 [2] ConditionalAttributes.cshtml) - <p
HtmlAttribute - (98:5,6 [17] ConditionalAttributes.cshtml) - class=" - "
HtmlAttributeValue - (106:5,14 [3] ConditionalAttributes.cshtml) - - foo
CSharpAttributeValue - (109:5,17 [5] ConditionalAttributes.cshtml) -
CSharpExpression - (111:5,19 [3] ConditionalAttributes.cshtml)
RazorIRToken - (111:5,19 [3] ConditionalAttributes.cshtml) - CSharp - cls
HtmlContent - (115:5,23 [3] ConditionalAttributes.cshtml) - />
CSharpStatement - (118:5,26 [6] ConditionalAttributes.cshtml) - \n
HtmlContent - (124:6,4 [2] ConditionalAttributes.cshtml) - <p
HtmlAttribute - (126:6,6 [17] ConditionalAttributes.cshtml) - class=" - "
CSharpAttributeValue - (134:6,14 [4] ConditionalAttributes.cshtml) -
CSharpExpression - (135:6,15 [3] ConditionalAttributes.cshtml)
RazorIRToken - (135:6,15 [3] ConditionalAttributes.cshtml) - CSharp - cls
HtmlAttributeValue - (138:6,18 [4] ConditionalAttributes.cshtml) - - foo
HtmlContent - (143:6,23 [3] ConditionalAttributes.cshtml) - />
CSharpStatement - (146:6,26 [6] ConditionalAttributes.cshtml) - \n
HtmlContent - (152:7,4 [22] ConditionalAttributes.cshtml) - <input type="checkbox"
HtmlAttribute - (174:7,26 [14] ConditionalAttributes.cshtml) - checked=" - "
CSharpAttributeValue - (184:7,36 [3] ConditionalAttributes.cshtml) -
CSharpExpression - (185:7,37 [2] ConditionalAttributes.cshtml)
RazorIRToken - (185:7,37 [2] ConditionalAttributes.cshtml) - CSharp - ch
HtmlContent - (188:7,40 [3] ConditionalAttributes.cshtml) - />
CSharpStatement - (191:7,43 [6] ConditionalAttributes.cshtml) - \n
HtmlContent - (197:8,4 [22] ConditionalAttributes.cshtml) - <input type="checkbox"
HtmlAttribute - (219:8,26 [18] ConditionalAttributes.cshtml) - checked=" - "
HtmlAttributeValue - (229:8,36 [3] ConditionalAttributes.cshtml) - - foo
CSharpAttributeValue - (232:8,39 [4] ConditionalAttributes.cshtml) -
CSharpExpression - (234:8,41 [2] ConditionalAttributes.cshtml)
RazorIRToken - (234:8,41 [2] ConditionalAttributes.cshtml) - CSharp - ch
HtmlContent - (237:8,44 [3] ConditionalAttributes.cshtml) - />
CSharpStatement - (240:8,47 [6] ConditionalAttributes.cshtml) - \n
HtmlContent - (246:9,4 [2] ConditionalAttributes.cshtml) - <p
HtmlAttribute - (248:9,6 [34] ConditionalAttributes.cshtml) - class=" - "
CSharpAttributeValue - (256:9,14 [25] ConditionalAttributes.cshtml) -
CSharpStatement - (257:9,15 [18] ConditionalAttributes.cshtml) - if(cls != null) {
CSharpExpression - (276:9,34 [3] ConditionalAttributes.cshtml)
RazorIRToken - (276:9,34 [3] ConditionalAttributes.cshtml) - CSharp - cls
CSharpStatement - (279:9,37 [2] ConditionalAttributes.cshtml) - }
HtmlContent - (282:9,40 [3] ConditionalAttributes.cshtml) - />
CSharpStatement - (285:9,43 [6] ConditionalAttributes.cshtml) - \n
HtmlContent - (291:10,4 [18] ConditionalAttributes.cshtml) - <a href="~/Foo" />
CSharpStatement - (309:10,22 [6] ConditionalAttributes.cshtml) - \n
HtmlContent - (315:11,4 [7] ConditionalAttributes.cshtml) - <script
HtmlAttribute - (322:11,11 [52] ConditionalAttributes.cshtml) - src=" - "
CSharpAttributeValue - (328:11,17 [45] ConditionalAttributes.cshtml) -
CSharpExpression - (329:11,18 [44] ConditionalAttributes.cshtml)
RazorIRToken - (329:11,18 [44] ConditionalAttributes.cshtml) - CSharp - Url.Content("~/Scripts/jquery-1.6.2.min.js")
HtmlContent - (374:11,63 [33] ConditionalAttributes.cshtml) - type="text/javascript"></script>
CSharpStatement - (407:11,96 [6] ConditionalAttributes.cshtml) - \n
HtmlContent - (413:12,4 [7] ConditionalAttributes.cshtml) - <script
HtmlAttribute - (420:12,11 [68] ConditionalAttributes.cshtml) - src=" - "
CSharpAttributeValue - (426:12,17 [61] ConditionalAttributes.cshtml) -
CSharpExpression - (427:12,18 [60] ConditionalAttributes.cshtml)
RazorIRToken - (427:12,18 [60] ConditionalAttributes.cshtml) - CSharp - Url.Content("~/Scripts/modernizr-2.0.6-development-only.js")
HtmlContent - (488:12,79 [33] ConditionalAttributes.cshtml) - type="text/javascript"></script>
CSharpStatement - (521:12,112 [6] ConditionalAttributes.cshtml) - \n
HtmlContent - (527:13,4 [111] ConditionalAttributes.cshtml) - <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.16/jquery-ui.min.js" type="text/javascript"></script>
CSharpStatement - (638:13,115 [2] ConditionalAttributes.cshtml) - \n

View File

@ -0,0 +1,55 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ConditionalAttributes_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [44] ConditionalAttributes.cshtml) - \n var ch = true;\n var cls = "bar";\n
HtmlContent - (46:3,0 [28] ConditionalAttributes.cshtml) - <a href="Foo" />\n <p
HtmlAttribute - (74:4,6 [13] ConditionalAttributes.cshtml) - class=" - "
CSharpAttributeValue - (82:4,14 [4] ConditionalAttributes.cshtml) -
CSharpExpression - (83:4,15 [3] ConditionalAttributes.cshtml)
RazorIRToken - (83:4,15 [3] ConditionalAttributes.cshtml) - CSharp - cls
HtmlContent - (87:4,19 [11] ConditionalAttributes.cshtml) - />\n <p
HtmlAttribute - (98:5,6 [17] ConditionalAttributes.cshtml) - class=" - "
HtmlAttributeValue - (106:5,14 [3] ConditionalAttributes.cshtml) - - foo
CSharpAttributeValue - (109:5,17 [5] ConditionalAttributes.cshtml) -
CSharpExpression - (111:5,19 [3] ConditionalAttributes.cshtml)
RazorIRToken - (111:5,19 [3] ConditionalAttributes.cshtml) - CSharp - cls
HtmlContent - (115:5,23 [11] ConditionalAttributes.cshtml) - />\n <p
HtmlAttribute - (126:6,6 [17] ConditionalAttributes.cshtml) - class=" - "
CSharpAttributeValue - (134:6,14 [4] ConditionalAttributes.cshtml) -
CSharpExpression - (135:6,15 [3] ConditionalAttributes.cshtml)
RazorIRToken - (135:6,15 [3] ConditionalAttributes.cshtml) - CSharp - cls
HtmlAttributeValue - (138:6,18 [4] ConditionalAttributes.cshtml) - - foo
HtmlContent - (143:6,23 [31] ConditionalAttributes.cshtml) - />\n <input type="checkbox"
HtmlAttribute - (174:7,26 [14] ConditionalAttributes.cshtml) - checked=" - "
CSharpAttributeValue - (184:7,36 [3] ConditionalAttributes.cshtml) -
CSharpExpression - (185:7,37 [2] ConditionalAttributes.cshtml)
RazorIRToken - (185:7,37 [2] ConditionalAttributes.cshtml) - CSharp - ch
HtmlContent - (188:7,40 [31] ConditionalAttributes.cshtml) - />\n <input type="checkbox"
HtmlAttribute - (219:8,26 [18] ConditionalAttributes.cshtml) - checked=" - "
HtmlAttributeValue - (229:8,36 [3] ConditionalAttributes.cshtml) - - foo
CSharpAttributeValue - (232:8,39 [4] ConditionalAttributes.cshtml) -
CSharpExpression - (234:8,41 [2] ConditionalAttributes.cshtml)
RazorIRToken - (234:8,41 [2] ConditionalAttributes.cshtml) - CSharp - ch
HtmlContent - (237:8,44 [11] ConditionalAttributes.cshtml) - />\n <p
HtmlAttribute - (248:9,6 [34] ConditionalAttributes.cshtml) - class=" - "
CSharpAttributeValue - (256:9,14 [25] ConditionalAttributes.cshtml) -
CSharpStatement - (257:9,15 [18] ConditionalAttributes.cshtml) - if(cls != null) {
CSharpExpression - (276:9,34 [3] ConditionalAttributes.cshtml)
RazorIRToken - (276:9,34 [3] ConditionalAttributes.cshtml) - CSharp - cls
CSharpStatement - (279:9,37 [2] ConditionalAttributes.cshtml) - }
HtmlContent - (282:9,40 [40] ConditionalAttributes.cshtml) - />\n <a href="~/Foo" />\n <script
HtmlAttribute - (322:11,11 [52] ConditionalAttributes.cshtml) - src=" - "
CSharpAttributeValue - (328:11,17 [45] ConditionalAttributes.cshtml) -
CSharpExpression - (329:11,18 [44] ConditionalAttributes.cshtml)
RazorIRToken - (329:11,18 [44] ConditionalAttributes.cshtml) - CSharp - Url.Content("~/Scripts/jquery-1.6.2.min.js")
HtmlContent - (374:11,63 [46] ConditionalAttributes.cshtml) - type="text/javascript"></script>\n <script
HtmlAttribute - (420:12,11 [68] ConditionalAttributes.cshtml) - src=" - "
CSharpAttributeValue - (426:12,17 [61] ConditionalAttributes.cshtml) -
CSharpExpression - (427:12,18 [60] ConditionalAttributes.cshtml)
RazorIRToken - (427:12,18 [60] ConditionalAttributes.cshtml) - CSharp - Url.Content("~/Scripts/modernizr-2.0.6-development-only.js")
HtmlContent - (488:12,79 [152] ConditionalAttributes.cshtml) - type="text/javascript"></script>\n <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.16/jquery-ui.min.js" type="text/javascript"></script>\n
CSharpStatement - (640:14,0 [0] ConditionalAttributes.cshtml) -

View File

@ -0,0 +1,40 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DesignTime_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
DirectiveToken - (173:11,9 [6] DesignTime.cshtml) - Footer
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [19] DesignTime.cshtml) - <div>\n
CSharpStatement - (20:1,13 [36] DesignTime.cshtml) - for(int i = 1; i <= 10; i++) {\n
HtmlContent - (56:2,4 [17] DesignTime.cshtml) - <p>This is item #
CSharpExpression - (74:2,22 [1] DesignTime.cshtml)
RazorIRToken - (74:2,22 [1] DesignTime.cshtml) - CSharp - i
HtmlContent - (75:2,23 [4] DesignTime.cshtml) - </p>
CSharpStatement - (79:2,27 [15] DesignTime.cshtml) - \n }
HtmlContent - (94:3,13 [17] DesignTime.cshtml) - \n</div>\n\n<p>\n
CSharpExpression - (113:7,2 [12] DesignTime.cshtml)
RazorIRToken - (113:7,2 [12] DesignTime.cshtml) - CSharp - Foo(Bar.Baz)
HtmlContent - (126:7,15 [2] DesignTime.cshtml) - \n
CSharpExpression - (129:8,1 [23] DesignTime.cshtml)
RazorIRToken - (129:8,1 [4] DesignTime.cshtml) - CSharp - Foo(
Template - (134:8,6 [18] DesignTime.cshtml)
HtmlContent - (134:8,6 [7] DesignTime.cshtml) - <p>Bar
CSharpExpression - (142:8,14 [3] DesignTime.cshtml)
RazorIRToken - (142:8,14 [3] DesignTime.cshtml) - CSharp - baz
HtmlContent - (145:8,17 [8] DesignTime.cshtml) - Biz</p>
RazorIRToken - (153:8,25 [1] DesignTime.cshtml) - CSharp - )
HtmlContent - (154:8,26 [10] DesignTime.cshtml) - \n</p>\n\n
CSharpStatement - - DefineSection("Footer", async (__razor_section_writer) => {
HtmlContent - (181:11,17 [22] DesignTime.cshtml) - \n <p>Foo</p>\n
CSharpExpression - (204:13,5 [3] DesignTime.cshtml)
RazorIRToken - (204:13,5 [3] DesignTime.cshtml) - CSharp - bar
HtmlContent - (207:13,8 [2] DesignTime.cshtml) - \n
CSharpStatement - - });

View File

@ -0,0 +1,15 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyCodeBlock_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] EmptyCodeBlock.cshtml) - This is markup\n\n
CSharpStatement - (20:2,2 [0] EmptyCodeBlock.cshtml) -

View File

@ -0,0 +1,9 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyCodeBlock_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] EmptyCodeBlock.cshtml) - This is markup\n\n
CSharpStatement - (20:2,2 [0] EmptyCodeBlock.cshtml) -

View File

@ -0,0 +1,15 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyExplicitExpression_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] EmptyExplicitExpression.cshtml) - This is markup\n\n
CSharpExpression -

View File

@ -0,0 +1,9 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyExplicitExpression_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] EmptyExplicitExpression.cshtml) - This is markup\n\n
CSharpExpression -

View File

@ -0,0 +1,16 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpressionInCode_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml) - \n
CSharpExpression -
CSharpStatement - (9:1,5 [2] EmptyImplicitExpressionInCode.cshtml) - \n

View File

@ -0,0 +1,10 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpressionInCode_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml) - \n
CSharpExpression -
CSharpStatement - (9:1,5 [2] EmptyImplicitExpressionInCode.cshtml) - \n

View File

@ -0,0 +1,16 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpression_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] EmptyImplicitExpression.cshtml) - This is markup\n\n
CSharpExpression -
HtmlContent - (19:2,1 [1] EmptyImplicitExpression.cshtml) - !

View File

@ -0,0 +1,10 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpression_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] EmptyImplicitExpression.cshtml) - This is markup\n\n
CSharpExpression -
HtmlContent - (19:2,1 [1] EmptyImplicitExpression.cshtml) - !

View File

@ -0,0 +1,15 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionAtEOF_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml) - This is markup\n\n
CSharpExpression -

View File

@ -0,0 +1,9 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionAtEOF_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml) - This is markup\n\n
CSharpExpression -

View File

@ -0,0 +1,17 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionWithMarkup_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [5] ExplicitExpressionWithMarkup.cshtml) - <div>
CSharpExpression - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml)
Template - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml)
HtmlContent - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) - </div>

View File

@ -0,0 +1,11 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionWithMarkup_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [5] ExplicitExpressionWithMarkup.cshtml) - <div>
CSharpExpression - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml)
Template - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml)
HtmlContent - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) - </div>

View File

@ -0,0 +1,16 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpression_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [8] ExplicitExpression.cshtml) - 1 + 1 =
CSharpExpression - (10:0,10 [3] ExplicitExpression.cshtml)
RazorIRToken - (10:0,10 [3] ExplicitExpression.cshtml) - CSharp - 1+1

View File

@ -0,0 +1,10 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpression_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [8] ExplicitExpression.cshtml) - 1 + 1 =
CSharpExpression - (10:0,10 [3] ExplicitExpression.cshtml)
RazorIRToken - (10:0,10 [3] ExplicitExpression.cshtml) - CSharp - 1+1

View File

@ -0,0 +1,27 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExpressionsInCode_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [51] ExpressionsInCode.cshtml) - \n object foo = null;\n string bar = "Foo";\n
HtmlContent - (56:4,0 [2] ExpressionsInCode.cshtml) - \n
CSharpStatement - (59:5,1 [23] ExpressionsInCode.cshtml) - if(foo != null) {\n
CSharpExpression - (83:6,5 [3] ExpressionsInCode.cshtml)
RazorIRToken - (83:6,5 [3] ExpressionsInCode.cshtml) - CSharp - foo
CSharpStatement - (86:6,8 [16] ExpressionsInCode.cshtml) - \n} else {\n
HtmlContent - (102:8,4 [19] ExpressionsInCode.cshtml) - <p>Foo is Null!</p>
CSharpStatement - (121:8,23 [3] ExpressionsInCode.cshtml) - \n}
HtmlContent - (124:9,1 [9] ExpressionsInCode.cshtml) - \n\n<p>\n
CSharpStatement - (134:12,1 [38] ExpressionsInCode.cshtml) - if(!String.IsNullOrEmpty(bar)) {\n
CSharpExpression - (174:13,6 [21] ExpressionsInCode.cshtml)
RazorIRToken - (174:13,6 [21] ExpressionsInCode.cshtml) - CSharp - bar.Replace("F", "B")
CSharpStatement - (196:13,28 [3] ExpressionsInCode.cshtml) - \n}
HtmlContent - (199:14,1 [6] ExpressionsInCode.cshtml) - \n</p>

View File

@ -0,0 +1,21 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExpressionsInCode_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [51] ExpressionsInCode.cshtml) - \n object foo = null;\n string bar = "Foo";\n
HtmlContent - (56:4,0 [2] ExpressionsInCode.cshtml) - \n
CSharpStatement - (59:5,1 [23] ExpressionsInCode.cshtml) - if(foo != null) {\n
CSharpExpression - (83:6,5 [3] ExpressionsInCode.cshtml)
RazorIRToken - (83:6,5 [3] ExpressionsInCode.cshtml) - CSharp - foo
CSharpStatement - (86:6,8 [12] ExpressionsInCode.cshtml) - \n} else {\n
HtmlContent - (98:8,0 [25] ExpressionsInCode.cshtml) - <p>Foo is Null!</p>\n
CSharpStatement - (123:9,0 [3] ExpressionsInCode.cshtml) - }\n
HtmlContent - (126:10,0 [7] ExpressionsInCode.cshtml) - \n<p>\n
CSharpStatement - (134:12,1 [38] ExpressionsInCode.cshtml) - if(!String.IsNullOrEmpty(bar)) {\n
CSharpExpression - (174:13,6 [21] ExpressionsInCode.cshtml)
RazorIRToken - (174:13,6 [21] ExpressionsInCode.cshtml) - CSharp - bar.Replace("F", "B")
CSharpStatement - (196:13,28 [5] ExpressionsInCode.cshtml) - \n}\n
HtmlContent - (201:15,0 [4] ExpressionsInCode.cshtml) - </p>

View File

@ -0,0 +1,15 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlockMinimal_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [5] FunctionsBlockMinimal.cshtml) - \n\n
CSharpStatement - (16:2,12 [55] FunctionsBlockMinimal.cshtml) - \nstring foo(string input) {\n return input + "!";\n}\n

View File

@ -0,0 +1,10 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlockMinimal_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [4] FunctionsBlockMinimal.cshtml) - \n\n
CSharpStatement - (4:2,0 [1] FunctionsBlockMinimal.cshtml) -
CSharpStatement - (16:2,12 [55] FunctionsBlockMinimal.cshtml) - \nstring foo(string input) {\n return input + "!";\n}\n

View File

@ -0,0 +1,19 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlock_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (17:2,1 [4] FunctionsBlock.cshtml) - \n\n
HtmlContent - (138:9,1 [28] FunctionsBlock.cshtml) - \n\nHere's a random number:
CSharpExpression - (167:11,25 [11] FunctionsBlock.cshtml)
RazorIRToken - (167:11,25 [11] FunctionsBlock.cshtml) - CSharp - RandomInt()
CSharpStatement - (12:0,12 [4] FunctionsBlock.cshtml) - \n\n
CSharpStatement - (33:4,12 [104] FunctionsBlock.cshtml) - \n Random _rand = new Random();\n private int RandomInt() {\n return _rand.Next();\n }\n

View File

@ -0,0 +1,13 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlock_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (19:3,0 [2] FunctionsBlock.cshtml) - \n
HtmlContent - (140:10,0 [26] FunctionsBlock.cshtml) - \nHere's a random number:
CSharpExpression - (167:11,25 [11] FunctionsBlock.cshtml)
RazorIRToken - (167:11,25 [11] FunctionsBlock.cshtml) - CSharp - RandomInt()
CSharpStatement - (12:0,12 [4] FunctionsBlock.cshtml) - \n\n
CSharpStatement - (33:4,12 [104] FunctionsBlock.cshtml) - \n Random _rand = new Random();\n private int RandomInt() {\n return _rand.Next();\n }\n

View File

@ -0,0 +1,15 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HiddenSpansInCode_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [6] HiddenSpansInCode.cshtml) - \n
CSharpStatement - (9:1,5 [5] HiddenSpansInCode.cshtml) - @Da\n

View File

@ -0,0 +1,9 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HiddenSpansInCode_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [6] HiddenSpansInCode.cshtml) - \n
CSharpStatement - (9:1,5 [5] HiddenSpansInCode.cshtml) - @Da\n

View File

@ -0,0 +1,14 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Double_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [45] HtmlCommentWithQuote_Double.cshtml) - <!-- " -->\n<img src="~/images/submit.png" />

View File

@ -0,0 +1,8 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Double_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [45] HtmlCommentWithQuote_Double.cshtml) - <!-- " -->\n<img src="~/images/submit.png" />

View File

@ -0,0 +1,14 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Single_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [45] HtmlCommentWithQuote_Single.cshtml) - <!-- ' -->\n<img src="~/images/submit.png" />

View File

@ -0,0 +1,8 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Single_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [45] HtmlCommentWithQuote_Single.cshtml) - <!-- ' -->\n<img src="~/images/submit.png" />

View File

@ -0,0 +1,15 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitExpressionAtEOF_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] ImplicitExpressionAtEOF.cshtml) - This is markup\n\n
CSharpExpression -

View File

@ -0,0 +1,9 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitExpressionAtEOF_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] ImplicitExpressionAtEOF.cshtml) - This is markup\n\n
CSharpExpression -

View File

@ -0,0 +1,19 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitExpression_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (1:0,1 [36] ImplicitExpression.cshtml) - for(int i = 1; i <= 10; i++) {\n
HtmlContent - (37:1,4 [17] ImplicitExpression.cshtml) - <p>This is item #
CSharpExpression - (55:1,22 [1] ImplicitExpression.cshtml)
RazorIRToken - (55:1,22 [1] ImplicitExpression.cshtml) - CSharp - i
HtmlContent - (56:1,23 [4] ImplicitExpression.cshtml) - </p>
CSharpStatement - (60:1,27 [3] ImplicitExpression.cshtml) - \n}

View File

@ -0,0 +1,13 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitExpression_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (1:0,1 [32] ImplicitExpression.cshtml) - for(int i = 1; i <= 10; i++) {\n
HtmlContent - (33:1,0 [21] ImplicitExpression.cshtml) - <p>This is item #
CSharpExpression - (55:1,22 [1] ImplicitExpression.cshtml)
RazorIRToken - (55:1,22 [1] ImplicitExpression.cshtml) - CSharp - i
HtmlContent - (56:1,23 [6] ImplicitExpression.cshtml) - </p>\n
CSharpStatement - (62:2,0 [1] ImplicitExpression.cshtml) - }

View File

@ -0,0 +1,18 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Inherits_DesignTime - foo.bar<baz<biz>>.boz -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
DirectiveToken - (20:2,10 [21] Inherits.cshtml) - foo.bar<baz<biz>>.boz
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpExpression - (1:0,1 [5] Inherits.cshtml)
RazorIRToken - (1:0,1 [5] Inherits.cshtml) - CSharp - foo()
HtmlContent - (6:0,6 [4] Inherits.cshtml) - \n\n
HtmlContent - (42:2,32 [5] Inherits.cshtml) - bar\n

View File

@ -0,0 +1,11 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Inherits_Runtime - foo.bar<baz<biz>>.boz -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpExpression - (1:0,1 [5] Inherits.cshtml)
RazorIRToken - (1:0,1 [5] Inherits.cshtml) - CSharp - foo()
HtmlContent - (6:0,6 [4] Inherits.cshtml) - \n\n
HtmlContent - (42:2,32 [5] Inherits.cshtml) - bar\n

View File

@ -0,0 +1,26 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InlineBlocks_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
DirectiveToken - (9:0,9 [4] InlineBlocks.cshtml) - Link
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - - DefineSection("Link", async (__razor_section_writer) => {
CSharpStatement - - });
HtmlContent - (13:0,13 [23] InlineBlocks.cshtml) - (string link) {\n <a
HtmlAttribute - (36:1,6 [59] InlineBlocks.cshtml) - href=" - "
CSharpAttributeValue - (43:1,13 [51] InlineBlocks.cshtml) -
CSharpStatement - (44:1,14 [19] InlineBlocks.cshtml) - if(link != null) {
CSharpExpression - (64:1,34 [4] InlineBlocks.cshtml)
RazorIRToken - (64:1,34 [4] InlineBlocks.cshtml) - CSharp - link
CSharpStatement - (68:1,38 [10] InlineBlocks.cshtml) - } else {
HtmlContent - (84:1,54 [1] InlineBlocks.cshtml) - #
CSharpStatement - (92:1,62 [2] InlineBlocks.cshtml) - }
HtmlContent - (95:1,65 [6] InlineBlocks.cshtml) - />\n}

View File

@ -0,0 +1,19 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InlineBlocks_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - - DefineSection("Link", async () => {
CSharpStatement - - });
HtmlContent - (13:0,13 [23] InlineBlocks.cshtml) - (string link) {\n <a
HtmlAttribute - (36:1,6 [58] InlineBlocks.cshtml) - href=" - "
CSharpAttributeValue - (43:1,13 [50] InlineBlocks.cshtml) -
CSharpStatement - (44:1,14 [19] InlineBlocks.cshtml) - if(link != null) {
CSharpExpression - (64:1,34 [4] InlineBlocks.cshtml)
RazorIRToken - (64:1,34 [4] InlineBlocks.cshtml) - CSharp - link
CSharpStatement - (68:1,38 [9] InlineBlocks.cshtml) - } else {
HtmlContent - (84:1,54 [1] InlineBlocks.cshtml) - #
CSharpStatement - (92:1,62 [2] InlineBlocks.cshtml) - }
HtmlContent - (95:1,65 [6] InlineBlocks.cshtml) - />\n}

View File

@ -0,0 +1,58 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Instrumented_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [32] Instrumented.cshtml) - \n int i = 1;\n var foo =
Template - (35:2,15 [10] Instrumented.cshtml)
HtmlContent - (35:2,15 [10] Instrumented.cshtml) - <p>Bar</p>
CSharpStatement - (45:2,25 [7] Instrumented.cshtml) - ;\n
HtmlContent - (54:3,6 [14] Instrumented.cshtml) - Hello, World\n
CSharpStatement - (68:4,0 [4] Instrumented.cshtml) -
HtmlContent - (72:4,4 [19] Instrumented.cshtml) - <p>Hello, World</p>
CSharpStatement - (91:4,23 [2] Instrumented.cshtml) - \n
HtmlContent - (96:6,0 [2] Instrumented.cshtml) - \n
CSharpStatement - (99:7,1 [22] Instrumented.cshtml) - while(i <= 10) {\n
HtmlContent - (121:8,4 [19] Instrumented.cshtml) - <p>Hello from C#, #
CSharpExpression - (142:8,25 [1] Instrumented.cshtml)
RazorIRToken - (142:8,25 [1] Instrumented.cshtml) - CSharp - i
HtmlContent - (144:8,27 [4] Instrumented.cshtml) - </p>
CSharpStatement - (148:8,31 [16] Instrumented.cshtml) - \n i += 1;\n}
HtmlContent - (164:10,1 [4] Instrumented.cshtml) - \n\n
CSharpStatement - (169:12,1 [19] Instrumented.cshtml) - if(i == 11) {\n
HtmlContent - (188:13,4 [25] Instrumented.cshtml) - <p>We wrote 10 lines!</p>
CSharpStatement - (213:13,29 [3] Instrumented.cshtml) - \n}
HtmlContent - (216:14,1 [4] Instrumented.cshtml) - \n\n
CSharpStatement - (221:16,1 [35] Instrumented.cshtml) - switch(i) {\n case 11:\n
HtmlContent - (256:18,8 [36] Instrumented.cshtml) - <p>No really, we wrote 10 lines!</p>
CSharpStatement - (292:18,44 [40] Instrumented.cshtml) - \n break;\n default:\n
HtmlContent - (332:21,8 [29] Instrumented.cshtml) - <p>Actually, we didn't...</p>
CSharpStatement - (361:21,37 [19] Instrumented.cshtml) - \n break;\n}
HtmlContent - (380:23,1 [4] Instrumented.cshtml) - \n\n
CSharpStatement - (385:25,1 [39] Instrumented.cshtml) - for(int j = 1; j <= 10; j += 2) {\n
HtmlContent - (424:26,4 [25] Instrumented.cshtml) - <p>Hello again from C#, #
CSharpExpression - (451:26,31 [1] Instrumented.cshtml)
RazorIRToken - (451:26,31 [1] Instrumented.cshtml) - CSharp - j
HtmlContent - (453:26,33 [4] Instrumented.cshtml) - </p>
CSharpStatement - (457:26,37 [3] Instrumented.cshtml) - \n}
HtmlContent - (460:27,1 [4] Instrumented.cshtml) - \n\n
CSharpStatement - (465:29,1 [11] Instrumented.cshtml) - try {\n
HtmlContent - (476:30,4 [35] Instrumented.cshtml) - <p>That time, we wrote 5 lines!</p>
CSharpStatement - (511:30,39 [31] Instrumented.cshtml) - \n} catch(Exception ex) {\n
HtmlContent - (542:32,4 [29] Instrumented.cshtml) - <p>Oh no! An error occurred:
CSharpExpression - (573:32,35 [10] Instrumented.cshtml)
RazorIRToken - (573:32,35 [10] Instrumented.cshtml) - CSharp - ex.Message
HtmlContent - (584:32,46 [4] Instrumented.cshtml) - </p>
CSharpStatement - (588:32,50 [3] Instrumented.cshtml) - \n}
HtmlContent - (591:33,1 [4] Instrumented.cshtml) - \n\n
CSharpStatement - (596:35,1 [26] Instrumented.cshtml) - lock(new object()) {\n
HtmlContent - (622:36,4 [47] Instrumented.cshtml) - <p>This block is locked, for your security!</p>
CSharpStatement - (669:36,51 [3] Instrumented.cshtml) - \n}

View File

@ -0,0 +1,51 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Instrumented_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [32] Instrumented.cshtml) - \n int i = 1;\n var foo =
Template - (35:2,15 [10] Instrumented.cshtml)
HtmlContent - (35:2,15 [10] Instrumented.cshtml) - <p>Bar</p>
CSharpStatement - (45:2,25 [3] Instrumented.cshtml) - ;\n
HtmlContent - (48:3,0 [4] Instrumented.cshtml) -
HtmlContent - (54:3,6 [39] Instrumented.cshtml) - Hello, World\n <p>Hello, World</p>\n
CSharpStatement - (93:5,0 [0] Instrumented.cshtml) -
HtmlContent - (96:6,0 [2] Instrumented.cshtml) - \n
CSharpStatement - (99:7,1 [18] Instrumented.cshtml) - while(i <= 10) {\n
HtmlContent - (117:8,0 [23] Instrumented.cshtml) - <p>Hello from C#, #
CSharpExpression - (142:8,25 [1] Instrumented.cshtml)
RazorIRToken - (142:8,25 [1] Instrumented.cshtml) - CSharp - i
HtmlContent - (144:8,27 [6] Instrumented.cshtml) - </p>\n
CSharpStatement - (150:9,0 [16] Instrumented.cshtml) - i += 1;\n}\n
HtmlContent - (166:11,0 [2] Instrumented.cshtml) - \n
CSharpStatement - (169:12,1 [15] Instrumented.cshtml) - if(i == 11) {\n
HtmlContent - (184:13,0 [31] Instrumented.cshtml) - <p>We wrote 10 lines!</p>\n
CSharpStatement - (215:14,0 [3] Instrumented.cshtml) - }\n
HtmlContent - (218:15,0 [2] Instrumented.cshtml) - \n
CSharpStatement - (221:16,1 [27] Instrumented.cshtml) - switch(i) {\n case 11:\n
HtmlContent - (248:18,0 [46] Instrumented.cshtml) - <p>No really, we wrote 10 lines!</p>\n
CSharpStatement - (294:19,0 [30] Instrumented.cshtml) - break;\n default:\n
HtmlContent - (324:21,0 [39] Instrumented.cshtml) - <p>Actually, we didn't...</p>\n
CSharpStatement - (363:22,0 [19] Instrumented.cshtml) - break;\n}\n
HtmlContent - (382:24,0 [2] Instrumented.cshtml) - \n
CSharpStatement - (385:25,1 [35] Instrumented.cshtml) - for(int j = 1; j <= 10; j += 2) {\n
HtmlContent - (420:26,0 [29] Instrumented.cshtml) - <p>Hello again from C#, #
CSharpExpression - (451:26,31 [1] Instrumented.cshtml)
RazorIRToken - (451:26,31 [1] Instrumented.cshtml) - CSharp - j
HtmlContent - (453:26,33 [6] Instrumented.cshtml) - </p>\n
CSharpStatement - (459:27,0 [3] Instrumented.cshtml) - }\n
HtmlContent - (462:28,0 [2] Instrumented.cshtml) - \n
CSharpStatement - (465:29,1 [7] Instrumented.cshtml) - try {\n
HtmlContent - (472:30,0 [41] Instrumented.cshtml) - <p>That time, we wrote 5 lines!</p>\n
CSharpStatement - (513:31,0 [25] Instrumented.cshtml) - } catch(Exception ex) {\n
HtmlContent - (538:32,0 [33] Instrumented.cshtml) - <p>Oh no! An error occurred:
CSharpExpression - (573:32,35 [10] Instrumented.cshtml)
RazorIRToken - (573:32,35 [10] Instrumented.cshtml) - CSharp - ex.Message
HtmlContent - (584:32,46 [6] Instrumented.cshtml) - </p>\n
CSharpStatement - (590:33,0 [3] Instrumented.cshtml) - }\n
HtmlContent - (593:34,0 [2] Instrumented.cshtml) - \n
CSharpStatement - (596:35,1 [22] Instrumented.cshtml) - lock(new object()) {\n
HtmlContent - (618:36,0 [53] Instrumented.cshtml) - <p>This block is locked, for your security!</p>\n
CSharpStatement - (671:37,0 [1] Instrumented.cshtml) - }

View File

@ -0,0 +1,19 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MarkupInCodeBlock_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [46] MarkupInCodeBlock.cshtml) - \n for(int i = 1; i <= 10; i++) {\n
HtmlContent - (48:2,8 [19] MarkupInCodeBlock.cshtml) - <p>Hello from C#, #
CSharpExpression - (69:2,29 [12] MarkupInCodeBlock.cshtml)
RazorIRToken - (69:2,29 [12] MarkupInCodeBlock.cshtml) - CSharp - i.ToString()
HtmlContent - (82:2,42 [4] MarkupInCodeBlock.cshtml) - </p>
CSharpStatement - (86:2,46 [9] MarkupInCodeBlock.cshtml) - \n }\n

View File

@ -0,0 +1,13 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MarkupInCodeBlock_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [38] MarkupInCodeBlock.cshtml) - \n for(int i = 1; i <= 10; i++) {\n
HtmlContent - (40:2,0 [27] MarkupInCodeBlock.cshtml) - <p>Hello from C#, #
CSharpExpression - (69:2,29 [12] MarkupInCodeBlock.cshtml)
RazorIRToken - (69:2,29 [12] MarkupInCodeBlock.cshtml) - CSharp - i.ToString()
HtmlContent - (82:2,42 [6] MarkupInCodeBlock.cshtml) - </p>\n
CSharpStatement - (88:3,0 [7] MarkupInCodeBlock.cshtml) - }\n

View File

@ -0,0 +1,21 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCSharp_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [6] NestedCSharp.cshtml) - \n
CSharpStatement - (9:1,5 [53] NestedCSharp.cshtml) - foreach (var result in (dynamic)Url)\n {\n
HtmlContent - (62:3,8 [19] NestedCSharp.cshtml) - <div>\n
CSharpExpression - (82:4,13 [16] NestedCSharp.cshtml)
RazorIRToken - (82:4,13 [16] NestedCSharp.cshtml) - CSharp - result.SomeValue
HtmlContent - (98:4,29 [17] NestedCSharp.cshtml) - .\n </div>
CSharpStatement - (115:5,14 [7] NestedCSharp.cshtml) - \n }
CSharpStatement - (122:6,5 [2] NestedCSharp.cshtml) - \n

View File

@ -0,0 +1,15 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCSharp_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [6] NestedCSharp.cshtml) - \n
CSharpStatement - (9:1,5 [45] NestedCSharp.cshtml) - foreach (var result in (dynamic)Url)\n {\n
HtmlContent - (54:3,0 [27] NestedCSharp.cshtml) - <div>\n
CSharpExpression - (82:4,13 [16] NestedCSharp.cshtml)
RazorIRToken - (82:4,13 [16] NestedCSharp.cshtml) - CSharp - result.SomeValue
HtmlContent - (98:4,29 [19] NestedCSharp.cshtml) - .\n </div>\n
CSharpStatement - (117:6,0 [5] NestedCSharp.cshtml) - }
CSharpStatement - (122:6,5 [2] NestedCSharp.cshtml) - \n

View File

@ -0,0 +1,16 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCodeBlocks_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (1:0,1 [15] NestedCodeBlocks.cshtml) - if(foo) {\n
CSharpStatement - (17:1,5 [16] NestedCodeBlocks.cshtml) - if(bar) {\n }
CSharpStatement - (33:2,5 [3] NestedCodeBlocks.cshtml) - \n}

View File

@ -0,0 +1,10 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCodeBlocks_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (1:0,1 [15] NestedCodeBlocks.cshtml) - if(foo) {\n
CSharpStatement - (17:1,5 [16] NestedCodeBlocks.cshtml) - if(bar) {\n }
CSharpStatement - (33:2,5 [3] NestedCodeBlocks.cshtml) - \n}

View File

@ -0,0 +1,55 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NoLinePragmas_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [18] NoLinePragmas.cshtml) - \n int i = 1;\n
HtmlContent - (23:3,0 [2] NoLinePragmas.cshtml) - \n
CSharpStatement - (26:4,1 [22] NoLinePragmas.cshtml) - while(i <= 10) {\n
HtmlContent - (48:5,4 [19] NoLinePragmas.cshtml) - <p>Hello from C#, #
CSharpExpression - (69:5,25 [1] NoLinePragmas.cshtml)
RazorIRToken - (69:5,25 [1] NoLinePragmas.cshtml) - CSharp - i
HtmlContent - (71:5,27 [4] NoLinePragmas.cshtml) - </p>
CSharpStatement - (75:5,31 [16] NoLinePragmas.cshtml) - \n i += 1;\n}
HtmlContent - (91:7,1 [4] NoLinePragmas.cshtml) - \n\n
CSharpStatement - (96:9,1 [19] NoLinePragmas.cshtml) - if(i == 11) {\n
HtmlContent - (115:10,4 [25] NoLinePragmas.cshtml) - <p>We wrote 10 lines!</p>
CSharpStatement - (140:10,29 [3] NoLinePragmas.cshtml) - \n}
HtmlContent - (143:11,1 [4] NoLinePragmas.cshtml) - \n\n
CSharpStatement - (148:13,1 [35] NoLinePragmas.cshtml) - switch(i) {\n case 11:\n
HtmlContent - (183:15,8 [36] NoLinePragmas.cshtml) - <p>No really, we wrote 10 lines!</p>
CSharpStatement - (219:15,44 [40] NoLinePragmas.cshtml) - \n break;\n default:\n
HtmlContent - (259:18,8 [29] NoLinePragmas.cshtml) - <p>Actually, we didn't...</p>
CSharpStatement - (288:18,37 [19] NoLinePragmas.cshtml) - \n break;\n}
HtmlContent - (307:20,1 [4] NoLinePragmas.cshtml) - \n\n
CSharpStatement - (312:22,1 [39] NoLinePragmas.cshtml) - for(int j = 1; j <= 10; j += 2) {\n
HtmlContent - (351:23,4 [25] NoLinePragmas.cshtml) - <p>Hello again from C#, #
CSharpExpression - (378:23,31 [1] NoLinePragmas.cshtml)
RazorIRToken - (378:23,31 [1] NoLinePragmas.cshtml) - CSharp - j
HtmlContent - (380:23,33 [4] NoLinePragmas.cshtml) - </p>
CSharpStatement - (384:23,37 [3] NoLinePragmas.cshtml) - \n}
HtmlContent - (387:24,1 [4] NoLinePragmas.cshtml) - \n\n
CSharpStatement - (392:26,1 [11] NoLinePragmas.cshtml) - try {\n
HtmlContent - (403:27,4 [35] NoLinePragmas.cshtml) - <p>That time, we wrote 5 lines!</p>
CSharpStatement - (438:27,39 [31] NoLinePragmas.cshtml) - \n} catch(Exception ex) {\n
HtmlContent - (469:29,4 [29] NoLinePragmas.cshtml) - <p>Oh no! An error occurred:
CSharpExpression - (500:29,35 [10] NoLinePragmas.cshtml)
RazorIRToken - (500:29,35 [10] NoLinePragmas.cshtml) - CSharp - ex.Message
HtmlContent - (511:29,46 [4] NoLinePragmas.cshtml) - </p>
CSharpStatement - (515:29,50 [7] NoLinePragmas.cshtml) - \n}\n\n
CSharpStatement - (556:32,34 [0] NoLinePragmas.cshtml) -
HtmlContent - (556:32,34 [14] NoLinePragmas.cshtml) - \n<p>i is now
CSharpExpression - (571:33,13 [1] NoLinePragmas.cshtml)
RazorIRToken - (571:33,13 [1] NoLinePragmas.cshtml) - CSharp - i
HtmlContent - (572:33,14 [8] NoLinePragmas.cshtml) - </p>\n\n
CSharpStatement - (581:35,1 [26] NoLinePragmas.cshtml) - lock(new object()) {\n
HtmlContent - (607:36,4 [47] NoLinePragmas.cshtml) - <p>This block is locked, for your security!</p>
CSharpStatement - (654:36,51 [3] NoLinePragmas.cshtml) - \n}

View File

@ -0,0 +1,49 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NoLinePragmas_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [18] NoLinePragmas.cshtml) - \n int i = 1;\n
HtmlContent - (23:3,0 [2] NoLinePragmas.cshtml) - \n
CSharpStatement - (26:4,1 [18] NoLinePragmas.cshtml) - while(i <= 10) {\n
HtmlContent - (44:5,0 [23] NoLinePragmas.cshtml) - <p>Hello from C#, #
CSharpExpression - (69:5,25 [1] NoLinePragmas.cshtml)
RazorIRToken - (69:5,25 [1] NoLinePragmas.cshtml) - CSharp - i
HtmlContent - (71:5,27 [6] NoLinePragmas.cshtml) - </p>\n
CSharpStatement - (77:6,0 [16] NoLinePragmas.cshtml) - i += 1;\n}\n
HtmlContent - (93:8,0 [2] NoLinePragmas.cshtml) - \n
CSharpStatement - (96:9,1 [15] NoLinePragmas.cshtml) - if(i == 11) {\n
HtmlContent - (111:10,0 [31] NoLinePragmas.cshtml) - <p>We wrote 10 lines!</p>\n
CSharpStatement - (142:11,0 [3] NoLinePragmas.cshtml) - }\n
HtmlContent - (145:12,0 [2] NoLinePragmas.cshtml) - \n
CSharpStatement - (148:13,1 [27] NoLinePragmas.cshtml) - switch(i) {\n case 11:\n
HtmlContent - (175:15,0 [46] NoLinePragmas.cshtml) - <p>No really, we wrote 10 lines!</p>\n
CSharpStatement - (221:16,0 [30] NoLinePragmas.cshtml) - break;\n default:\n
HtmlContent - (251:18,0 [39] NoLinePragmas.cshtml) - <p>Actually, we didn't...</p>\n
CSharpStatement - (290:19,0 [19] NoLinePragmas.cshtml) - break;\n}\n
HtmlContent - (309:21,0 [2] NoLinePragmas.cshtml) - \n
CSharpStatement - (312:22,1 [35] NoLinePragmas.cshtml) - for(int j = 1; j <= 10; j += 2) {\n
HtmlContent - (347:23,0 [29] NoLinePragmas.cshtml) - <p>Hello again from C#, #
CSharpExpression - (378:23,31 [1] NoLinePragmas.cshtml)
RazorIRToken - (378:23,31 [1] NoLinePragmas.cshtml) - CSharp - j
HtmlContent - (380:23,33 [6] NoLinePragmas.cshtml) - </p>\n
CSharpStatement - (386:24,0 [3] NoLinePragmas.cshtml) - }\n
HtmlContent - (389:25,0 [2] NoLinePragmas.cshtml) - \n
CSharpStatement - (392:26,1 [7] NoLinePragmas.cshtml) - try {\n
HtmlContent - (399:27,0 [41] NoLinePragmas.cshtml) - <p>That time, we wrote 5 lines!</p>\n
CSharpStatement - (440:28,0 [25] NoLinePragmas.cshtml) - } catch(Exception ex) {\n
HtmlContent - (465:29,0 [33] NoLinePragmas.cshtml) - <p>Oh no! An error occurred:
CSharpExpression - (500:29,35 [10] NoLinePragmas.cshtml)
RazorIRToken - (500:29,35 [10] NoLinePragmas.cshtml) - CSharp - ex.Message
HtmlContent - (511:29,46 [6] NoLinePragmas.cshtml) - </p>\n
CSharpStatement - (517:30,0 [5] NoLinePragmas.cshtml) - }\n\n
CSharpStatement - (556:32,34 [2] NoLinePragmas.cshtml) - \n
HtmlContent - (558:33,0 [12] NoLinePragmas.cshtml) - <p>i is now
CSharpExpression - (571:33,13 [1] NoLinePragmas.cshtml)
RazorIRToken - (571:33,13 [1] NoLinePragmas.cshtml) - CSharp - i
HtmlContent - (572:33,14 [8] NoLinePragmas.cshtml) - </p>\n\n
CSharpStatement - (581:35,1 [22] NoLinePragmas.cshtml) - lock(new object()) {\n
HtmlContent - (603:36,0 [53] NoLinePragmas.cshtml) - <p>This block is locked, for your security!</p>\n
CSharpStatement - (656:37,0 [1] NoLinePragmas.cshtml) - }

View File

@ -0,0 +1,38 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NullConditionalExpressions_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [6] NullConditionalExpressions.cshtml) - \n
CSharpExpression - (9:1,5 [13] NullConditionalExpressions.cshtml)
RazorIRToken - (9:1,5 [13] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Data
CSharpStatement - (22:1,18 [6] NullConditionalExpressions.cshtml) - \n
CSharpExpression - (29:2,5 [22] NullConditionalExpressions.cshtml)
RazorIRToken - (29:2,5 [22] NullConditionalExpressions.cshtml) - CSharp - ViewBag.IntIndexer?[0]
CSharpStatement - (51:2,27 [6] NullConditionalExpressions.cshtml) - \n
CSharpExpression - (58:3,5 [26] NullConditionalExpressions.cshtml)
RazorIRToken - (58:3,5 [26] NullConditionalExpressions.cshtml) - CSharp - ViewBag.StrIndexer?["key"]
CSharpStatement - (84:3,31 [6] NullConditionalExpressions.cshtml) - \n
CSharpExpression - (91:4,5 [41] NullConditionalExpressions.cshtml)
RazorIRToken - (91:4,5 [41] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Method(Value?[23]?.More)?["key"]
CSharpStatement - (132:4,46 [2] NullConditionalExpressions.cshtml) - \n
HtmlContent - (137:6,0 [2] NullConditionalExpressions.cshtml) - \n
CSharpExpression - (140:7,1 [13] NullConditionalExpressions.cshtml)
RazorIRToken - (140:7,1 [13] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Data
HtmlContent - (153:7,14 [2] NullConditionalExpressions.cshtml) - \n
CSharpExpression - (156:8,1 [22] NullConditionalExpressions.cshtml)
RazorIRToken - (156:8,1 [22] NullConditionalExpressions.cshtml) - CSharp - ViewBag.IntIndexer?[0]
HtmlContent - (178:8,23 [2] NullConditionalExpressions.cshtml) - \n
CSharpExpression - (181:9,1 [26] NullConditionalExpressions.cshtml)
RazorIRToken - (181:9,1 [26] NullConditionalExpressions.cshtml) - CSharp - ViewBag.StrIndexer?["key"]
HtmlContent - (207:9,27 [2] NullConditionalExpressions.cshtml) - \n
CSharpExpression - (210:10,1 [41] NullConditionalExpressions.cshtml)
RazorIRToken - (210:10,1 [41] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Method(Value?[23]?.More)?["key"]

View File

@ -0,0 +1,32 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NullConditionalExpressions_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [6] NullConditionalExpressions.cshtml) - \n
CSharpExpression - (9:1,5 [13] NullConditionalExpressions.cshtml)
RazorIRToken - (9:1,5 [13] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Data
CSharpStatement - (22:1,18 [6] NullConditionalExpressions.cshtml) - \n
CSharpExpression - (29:2,5 [22] NullConditionalExpressions.cshtml)
RazorIRToken - (29:2,5 [22] NullConditionalExpressions.cshtml) - CSharp - ViewBag.IntIndexer?[0]
CSharpStatement - (51:2,27 [6] NullConditionalExpressions.cshtml) - \n
CSharpExpression - (58:3,5 [26] NullConditionalExpressions.cshtml)
RazorIRToken - (58:3,5 [26] NullConditionalExpressions.cshtml) - CSharp - ViewBag.StrIndexer?["key"]
CSharpStatement - (84:3,31 [6] NullConditionalExpressions.cshtml) - \n
CSharpExpression - (91:4,5 [41] NullConditionalExpressions.cshtml)
RazorIRToken - (91:4,5 [41] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Method(Value?[23]?.More)?["key"]
CSharpStatement - (132:4,46 [2] NullConditionalExpressions.cshtml) - \n
HtmlContent - (137:6,0 [2] NullConditionalExpressions.cshtml) - \n
CSharpExpression - (140:7,1 [13] NullConditionalExpressions.cshtml)
RazorIRToken - (140:7,1 [13] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Data
HtmlContent - (153:7,14 [2] NullConditionalExpressions.cshtml) - \n
CSharpExpression - (156:8,1 [22] NullConditionalExpressions.cshtml)
RazorIRToken - (156:8,1 [22] NullConditionalExpressions.cshtml) - CSharp - ViewBag.IntIndexer?[0]
HtmlContent - (178:8,23 [2] NullConditionalExpressions.cshtml) - \n
CSharpExpression - (181:9,1 [26] NullConditionalExpressions.cshtml)
RazorIRToken - (181:9,1 [26] NullConditionalExpressions.cshtml) - CSharp - ViewBag.StrIndexer?["key"]
HtmlContent - (207:9,27 [2] NullConditionalExpressions.cshtml) - \n
CSharpExpression - (210:10,1 [41] NullConditionalExpressions.cshtml)
RazorIRToken - (210:10,1 [41] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Method(Value?[23]?.More)?["key"]

View File

@ -0,0 +1,19 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_OpenedIf_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [16] OpenedIf.cshtml) - <html>\n<body>\n
CSharpStatement - (17:2,1 [14] OpenedIf.cshtml) - if (true) { \n
HtmlContent - (31:3,0 [7] OpenedIf.cshtml) - </body>
CSharpStatement - (38:3,7 [2] OpenedIf.cshtml) - \n
HtmlContent - (40:4,0 [7] OpenedIf.cshtml) - </html>
CSharpStatement - (47:4,7 [0] OpenedIf.cshtml) -

View File

@ -0,0 +1,11 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_OpenedIf_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [16] OpenedIf.cshtml) - <html>\n<body>\n
CSharpStatement - (17:2,1 [14] OpenedIf.cshtml) - if (true) { \n
HtmlContent - (31:3,0 [16] OpenedIf.cshtml) - </body>\n</html>
CSharpStatement - (47:4,7 [0] OpenedIf.cshtml) -

View File

@ -0,0 +1,14 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ParserError_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [31] ParserError.cshtml) - \n/*\nint i =10;\nint j =20;\n}

View File

@ -0,0 +1,8 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ParserError_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [31] ParserError.cshtml) - \n/*\nint i =10;\nint j =20;\n}

View File

@ -0,0 +1,28 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorComments_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (36:0,36 [17] RazorComments.cshtml) - \n<p>This should
HtmlContent - (62:1,24 [17] RazorComments.cshtml) - be shown</p>\n\n
CSharpStatement - (81:3,2 [6] RazorComments.cshtml) - \n
CSharpStatement - (122:4,39 [22] RazorComments.cshtml) - \n Exception foo =
CSharpStatement - (173:5,49 [58] RazorComments.cshtml) - null;\n if(foo != null) {\n throw foo;\n }\n
HtmlContent - (234:10,0 [2] RazorComments.cshtml) - \n
CSharpStatement - (238:11,2 [24] RazorComments.cshtml) - var bar = "@* bar *@";
HtmlContent - (265:12,0 [44] RazorComments.cshtml) - <p>But this should show the comment syntax:
CSharpExpression - (310:12,45 [3] RazorComments.cshtml)
RazorIRToken - (310:12,45 [3] RazorComments.cshtml) - CSharp - bar
HtmlContent - (313:12,48 [8] RazorComments.cshtml) - </p>\n\n
CSharpExpression - (323:14,2 [2] RazorComments.cshtml)
RazorIRToken - (323:14,2 [1] RazorComments.cshtml) - CSharp - a
RazorIRToken - (328:14,7 [1] RazorComments.cshtml) - CSharp - b
HtmlContent - (330:14,9 [2] RazorComments.cshtml) - \n

View File

@ -0,0 +1,22 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorComments_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (36:0,36 [17] RazorComments.cshtml) - \n<p>This should
HtmlContent - (62:1,24 [17] RazorComments.cshtml) - be shown</p>\n\n
CSharpStatement - (81:3,2 [6] RazorComments.cshtml) - \n
CSharpStatement - (122:4,39 [22] RazorComments.cshtml) - \n Exception foo =
CSharpStatement - (173:5,49 [58] RazorComments.cshtml) - null;\n if(foo != null) {\n throw foo;\n }\n
HtmlContent - (234:10,0 [2] RazorComments.cshtml) - \n
CSharpStatement - (238:11,2 [24] RazorComments.cshtml) - var bar = "@* bar *@";
HtmlContent - (265:12,0 [44] RazorComments.cshtml) - <p>But this should show the comment syntax:
CSharpExpression - (310:12,45 [3] RazorComments.cshtml)
RazorIRToken - (310:12,45 [3] RazorComments.cshtml) - CSharp - bar
HtmlContent - (313:12,48 [8] RazorComments.cshtml) - </p>\n\n
CSharpExpression - (323:14,2 [2] RazorComments.cshtml)
RazorIRToken - (323:14,2 [1] RazorComments.cshtml) - CSharp - a
RazorIRToken - (328:14,7 [1] RazorComments.cshtml) - CSharp - b
HtmlContent - (330:14,9 [2] RazorComments.cshtml) - \n

View File

@ -0,0 +1,15 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RemoveTagHelperDirective_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
DirectiveToken - (17:0,17 [15] RemoveTagHelperDirective.cshtml) - *, TestAssembly
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (32:0,32 [2] RemoveTagHelperDirective.cshtml) - \n

View File

@ -0,0 +1,42 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Sections_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
DirectiveToken - (89:6,9 [8] Sections.cshtml) - Section2
DirectiveToken - (172:10,9 [8] Sections.cshtml) - Section1
DirectiveToken - (235:14,9 [15] Sections.cshtml) - NestedDelegates
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [44] Sections.cshtml) - \n Layout = "_SectionTestLayout.cshtml"\n
HtmlContent - (49:3,0 [31] Sections.cshtml) - \n<div>This is in the Body>\n\n
CSharpStatement - - DefineSection("Section2", async (__razor_section_writer) => {
HtmlContent - (99:6,19 [10] Sections.cshtml) - \n <div
HtmlAttribute - (109:7,8 [20] Sections.cshtml) - class=" - "
HtmlAttributeValue - (117:7,16 [4] Sections.cshtml) - - some
CSharpAttributeValue - (121:7,20 [7] Sections.cshtml) -
CSharpExpression - (123:7,22 [5] Sections.cshtml)
RazorIRToken - (123:7,22 [5] Sections.cshtml) - CSharp - thing
HtmlContent - (129:7,28 [29] Sections.cshtml) - >This is in Section 2</div>\n
CSharpStatement - - });
HtmlContent - (159:8,1 [4] Sections.cshtml) - \n\n
CSharpStatement - - DefineSection("Section1", async (__razor_section_writer) => {
HtmlContent - (182:10,19 [39] Sections.cshtml) - \n <div>This is in Section 1</div>\n
CSharpStatement - - });
HtmlContent - (222:12,1 [4] Sections.cshtml) - \n\n
CSharpStatement - - DefineSection("NestedDelegates", async (__razor_section_writer) => {
HtmlContent - (252:14,26 [6] Sections.cshtml) - \n
CSharpStatement - (260:15,6 [27] Sections.cshtml) - Func<dynamic, object> f =
Template - (288:15,34 [17] Sections.cshtml)
HtmlContent - (288:15,34 [6] Sections.cshtml) - <span>
CSharpExpression - (295:15,41 [4] Sections.cshtml)
RazorIRToken - (295:15,41 [4] Sections.cshtml) - CSharp - item
HtmlContent - (299:15,45 [7] Sections.cshtml) - </span>
CSharpStatement - (306:15,52 [2] Sections.cshtml) - ;
CSharpStatement - - });

View File

@ -0,0 +1,34 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Sections_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [44] Sections.cshtml) - \n Layout = "_SectionTestLayout.cshtml"\n
HtmlContent - (49:3,0 [31] Sections.cshtml) - \n<div>This is in the Body>\n\n
CSharpStatement - - DefineSection("Section2", async () => {
HtmlContent - (99:6,19 [10] Sections.cshtml) - \n <div
HtmlAttribute - (109:7,8 [20] Sections.cshtml) - class=" - "
HtmlAttributeValue - (117:7,16 [4] Sections.cshtml) - - some
CSharpAttributeValue - (121:7,20 [7] Sections.cshtml) -
CSharpExpression - (123:7,22 [5] Sections.cshtml)
RazorIRToken - (123:7,22 [5] Sections.cshtml) - CSharp - thing
HtmlContent - (129:7,28 [29] Sections.cshtml) - >This is in Section 2</div>\n
CSharpStatement - - });
HtmlContent - (161:9,0 [2] Sections.cshtml) - \n
CSharpStatement - - DefineSection("Section1", async () => {
HtmlContent - (182:10,19 [39] Sections.cshtml) - \n <div>This is in Section 1</div>\n
CSharpStatement - - });
HtmlContent - (224:13,0 [2] Sections.cshtml) - \n
CSharpStatement - - DefineSection("NestedDelegates", async () => {
HtmlContent - (252:14,26 [2] Sections.cshtml) - \n
CSharpStatement - (254:15,0 [4] Sections.cshtml) -
CSharpStatement - (260:15,6 [27] Sections.cshtml) - Func<dynamic, object> f =
Template - (288:15,34 [17] Sections.cshtml)
HtmlContent - (288:15,34 [6] Sections.cshtml) - <span>
CSharpExpression - (295:15,41 [4] Sections.cshtml)
RazorIRToken - (295:15,41 [4] Sections.cshtml) - CSharp - item
HtmlContent - (299:15,45 [7] Sections.cshtml) - </span>
CSharpStatement - (306:15,52 [2] Sections.cshtml) - ;
CSharpStatement - - });

View File

@ -0,0 +1,16 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SimpleUnspacedIf_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (1:0,1 [15] SimpleUnspacedIf.cshtml) - if (true)\n{\n
HtmlContent - (16:2,1 [11] SimpleUnspacedIf.cshtml) - <div></div>
CSharpStatement - (27:2,12 [3] SimpleUnspacedIf.cshtml) - \n}

View File

@ -0,0 +1,10 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SimpleUnspacedIf_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (1:0,1 [14] SimpleUnspacedIf.cshtml) - if (true)\n{\n
HtmlContent - (15:2,0 [14] SimpleUnspacedIf.cshtml) - <div></div>\n
CSharpStatement - (29:3,0 [1] SimpleUnspacedIf.cshtml) - }

View File

@ -0,0 +1,24 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_StringLiterals_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
DirectiveToken - (2022:85,9 [21] StringLiterals.cshtml) - WriteLiteralsToInHere
DirectiveToken - (5701:205,9 [25] StringLiterals.cshtml) - WriteLiteralsToInHereAlso
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [2013] StringLiterals.cshtml) - <p>This is line 1</p>\n<p>This is line 2</p>\n<p>This is line 3</p>\n<p>This is line 4</p>\n<p>This is line 5</p>\n<p>This is line 6</p>\n<p>This is line 7</p>\n<p>This is line 8</p>\n<p>This is line 9</p>\n<p>This is line 10</p>\n<p>This is line 11</p>\n<p>This is line 12</p>\n<p>This is line 13</p>\n<p>This is line 14</p>\n<p>This is line 15</p>\n<p>This is line 16</p>\n<p>This is line 17</p>\n<p>This is line 18</p>\n<p>This is line 19</p>\n<p>This is line 20</p>\n<p>This is line 21</p>\n<p>This is line 22</p>\n<p>This is line 23</p>\n<p>This is line 24</p>\n<p>This is line 25</p>\n<p>This is line 26</p>\n<p>This is line 27</p>\n<p>This is line 28</p>\n<p>This is line 29</p>\n<p>This is line 30</p>\n<p>This is line 31</p>\n<p>This is line 32</p>\n<p>This is line 33</p>\n<p>This is line 34</p>\n<p>This is line 35</p>\n<p>This is line 36</p>\n<p>This is line 37</p>\n<p>This is line 38</p>\n<p>This is line 39</p>\n<p>This is line 40</p>\n<p>This is line 41</p>\n<p>This is line 42</p>\n<p>This is line 43</p>\n<p>This is line 44</p>\n<p>This is line 45</p>\n<p>This is line 46</p>\n<p>This is line 47</p>\n<p>This is line 48</p>\n<p>This is line 49</p>\n<p>This is line 50</p>\n<p>This is line 51</p>\n<p>This is line 52</p>\n<p>This is line 53</p>\n<p>This is line 54</p>\n<p>This is line 55</p>\n<p>This is line 56</p>\n<p>This is line 57</p>\n<p>This is line 58</p>\n<p>This is line 59</p>\n<p>This is line 60</p>\n<p>This is line 61</p>\n<p>This is line 62</p>\n<p>This is line 63</p>\n<p>This is line 64</p>\n<p>This is line 65</p>\n<p>This is line 66</p>\n<p>This is line 67</p>\n<p>This is line 68</p>\n<p>This is line 69</p>\n<p>This is line 70</p>\n<p>This is line 71</p>\n<p>This is line 72</p>\n<p>This is line 73</p>\n<p>This is line 74</p>\n<p>This is line 75</p>\n<p>This is line 76</p>\n<p>This is line 77</p>\n<p>This is line 78</p>\n<p>This is line 79</p>\n<p>This is line 80</p>\n<p>This is line 81</p>\n<p>This is line 82</p>\n<p>This is line 83</p>\n<p>This is line 84</p><br>\n\n
CSharpStatement - - DefineSection("WriteLiteralsToInHere", async (__razor_section_writer) => {
HtmlContent - (2045:85,32 [2618] StringLiterals.cshtml) - \n <p>This is line 1 nested</p>\n <p>This is line 2 nested</p>\n <p>This is line 3 nested</p>\n <p>This is line 4 nested</p>\n <p>This is line 5 nested</p>\n <p>This is line 6 nested</p>\n <p>This is line 7 nested</p>\n <p>This is line 8 nested</p>\n <p>This is line 9 nested</p>\n <p>This is line 10 nested</p>\n <p>This is line 11 nested</p>\n <p>This is line 12 nested</p>\n <p>This is line 13 nested</p>\n <p>This is line 14 nested</p>\n <p>This is line 15 nested</p>\n <p>This is line 16 nested</p>\n <p>This is line 17 nested</p>\n <p>This is line 18 nested</p>\n <p>This is line 19 nested</p>\n <p>This is line 20 nested</p>\n <p>This is line 21 nested</p>\n <p>This is line 22 nested</p>\n <p>This is line 23 nested</p>\n <p>This is line 24 nested</p>\n <p>This is line 25 nested</p>\n <p>This is line 26 nested</p>\n <p>This is line 27 nested</p>\n <p>This is line 28 nested</p>\n <p>This is line 29 nested</p>\n <p>This is line 30 nested</p>\n <p>This is line 31 nested</p>\n <p>This is line 32 nested</p>\n <p>This is line 33 nested</p>\n <p>This is line 34 nested</p>\n <p>This is line 35 nested</p>\n <p>This is line 36 nested</p>\n <p>This is line 37 nested</p>\n <p>This is line 38 nested</p>\n <p>This is line 39 nested</p>\n <p>This is line 40 nested</p>\n <p>This is line 41 nested</p>\n <p>This is line 42 nested</p>\n <p>This is line 43 nested</p>\n <p>This is line 44 nested</p>\n <p>This is line 45 nested</p>\n <p>This is line 46 nested</p>\n <p>This is line 47 nested</p>\n <p>This is line 48 nested</p>\n <p>This is line 49 nested</p>\n <p>This is line 50 nested</p>\n <p>This is line 51 nested</p>\n <p>This is line 52 nested</p>\n <p>This is line 53 nested</p>\n <p>This is line 54 nested</p>\n <p>This is line 55 nested</p>\n <p>This is line 56 nested</p>\n <p>This is line 57 nested</p>\n <p>This is line 58 nested</p>\n <p>This is line 59 nested</p>\n <p>This is line 60 nested</p>\n <p>This is line 61 nested</p>\n <p>This is line 62 nested</p>\n <p>This is line 63 nested</p>\n <p>This is line 64 nested</p>\n <p>This is line 65 nested</p>\n <p>This is line 66 nested</p>\n <p>This is line 67 nested</p>\n <p>This is line 68 nested</p>\n <p>This is line 69 nested</p>\n <p>This is line 70 nested</p>\n <p>This is line 71 nested</p>\n <p>This is line 72 nested</p>\n <p>This is line 73 nested</p>\n <p>This is line 74 nested</p>\n <p>This is line 75 nested</p>\n
CSharpStatement - - });
HtmlContent - (4664:161,1 [1028] StringLiterals.cshtml) - \n<p>This is line 1</p>\n<p>This is line 2</p>\n<p>This is line 3</p>\n<p>This is line 4</p>\n<p>This is line 5</p>\n<p>This is line 6</p>\n<p>This is line 7</p>\n<p>This is line 8</p>\n<p>This is line 9</p>\n<p>This is line 10</p>\n<p>This is line 11</p>\n<p>This is line 12</p>\n<p>This is line 13</p>\n<p>This is line 14</p>\n<p>This is line 15</p>\n<p>This is line 16</p>\n<p>This is line 17</p>\n<p>This is line 18</p>\n<p>This is line 19</p>\n<p>This is line 20</p>\n<p>This is line 21</p>\n<p>This is line 22</p>\n<p>This is line 23</p>\n<p>This is line 24</p>\n<p>This is line 25</p>\n<p>This is line 26</p>\n<p>This is line 27</p>\n<p>This is line 28</p>\n<p>This is line 29</p>\n<p>This is line 30</p>\n<p>This is line 31</p>\n<p>This is line 32</p>\n<p>This is line 33</p>\n<p>This is line 34</p>\n<p>This is line 35</p>\n<p>This is line 36</p>\n<p>This is line 37</p>\n<p>This is line 38</p>\n<p>This is line 39</p>\n<p>This is line 40</p>\n<p>This is line 41</p>\n<p>This is line 42</p>\n<p>This is line 43</p>hi!\n
CSharpStatement - - DefineSection("WriteLiteralsToInHereAlso", async (__razor_section_writer) => {
HtmlContent - (5728:205,36 [1023] StringLiterals.cshtml) - \n <p>This is line 1 nested</p>\n <p>This is line 2 nested</p>\n <p>This is line 3 nested</p>\n <p>This is line 4 nested</p>\n <p>This is line 5 nested</p>\n <p>This is line 6 nested</p>\n <p>This is line 7 nested</p>\n <p>This is line 8 nested</p>\n <p>This is line 9 nested</p>\n <p>This is line 10 nested</p>\n <p>This is line 11 nested</p>\n <p>This is line 12 nested</p>\n <p>This is line 13 nested</p>\n <p>This is line 14 nested</p>\n <p>This is line 15 nested</p>\n <p>This is line 16 nested</p>\n <p>This is line 17 nested</p>\n <p>This is line 18 nested</p>\n <p>This is line 19 nested</p>\n <p>This is line 20 nested</p>\n <p>This is line 21 nested</p>\n <p>This is line 22 nested</p>\n <p>This is line 23 nested</p>\n <p>This is line 24 nested</p>\n <p>This is line 25 nested</p>\n <p>This is line 26 nested</p>\n <p>This is line 27 nested</p>\n <p>This is line 28 nested</p>\n <p>This is line 29 nested</p>\n <p>30</p>\n
CSharpStatement - - });
HtmlContent - (6752:236,1 [1] StringLiterals.cshtml) - !

View File

@ -0,0 +1,16 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_StringLiterals_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [2013] StringLiterals.cshtml) - <p>This is line 1</p>\n<p>This is line 2</p>\n<p>This is line 3</p>\n<p>This is line 4</p>\n<p>This is line 5</p>\n<p>This is line 6</p>\n<p>This is line 7</p>\n<p>This is line 8</p>\n<p>This is line 9</p>\n<p>This is line 10</p>\n<p>This is line 11</p>\n<p>This is line 12</p>\n<p>This is line 13</p>\n<p>This is line 14</p>\n<p>This is line 15</p>\n<p>This is line 16</p>\n<p>This is line 17</p>\n<p>This is line 18</p>\n<p>This is line 19</p>\n<p>This is line 20</p>\n<p>This is line 21</p>\n<p>This is line 22</p>\n<p>This is line 23</p>\n<p>This is line 24</p>\n<p>This is line 25</p>\n<p>This is line 26</p>\n<p>This is line 27</p>\n<p>This is line 28</p>\n<p>This is line 29</p>\n<p>This is line 30</p>\n<p>This is line 31</p>\n<p>This is line 32</p>\n<p>This is line 33</p>\n<p>This is line 34</p>\n<p>This is line 35</p>\n<p>This is line 36</p>\n<p>This is line 37</p>\n<p>This is line 38</p>\n<p>This is line 39</p>\n<p>This is line 40</p>\n<p>This is line 41</p>\n<p>This is line 42</p>\n<p>This is line 43</p>\n<p>This is line 44</p>\n<p>This is line 45</p>\n<p>This is line 46</p>\n<p>This is line 47</p>\n<p>This is line 48</p>\n<p>This is line 49</p>\n<p>This is line 50</p>\n<p>This is line 51</p>\n<p>This is line 52</p>\n<p>This is line 53</p>\n<p>This is line 54</p>\n<p>This is line 55</p>\n<p>This is line 56</p>\n<p>This is line 57</p>\n<p>This is line 58</p>\n<p>This is line 59</p>\n<p>This is line 60</p>\n<p>This is line 61</p>\n<p>This is line 62</p>\n<p>This is line 63</p>\n<p>This is line 64</p>\n<p>This is line 65</p>\n<p>This is line 66</p>\n<p>This is line 67</p>\n<p>This is line 68</p>\n<p>This is line 69</p>\n<p>This is line 70</p>\n<p>This is line 71</p>\n<p>This is line 72</p>\n<p>This is line 73</p>\n<p>This is line 74</p>\n<p>This is line 75</p>\n<p>This is line 76</p>\n<p>This is line 77</p>\n<p>This is line 78</p>\n<p>This is line 79</p>\n<p>This is line 80</p>\n<p>This is line 81</p>\n<p>This is line 82</p>\n<p>This is line 83</p>\n<p>This is line 84</p><br>\n\n
CSharpStatement - - DefineSection("WriteLiteralsToInHere", async () => {
HtmlContent - (2045:85,32 [2618] StringLiterals.cshtml) - \n <p>This is line 1 nested</p>\n <p>This is line 2 nested</p>\n <p>This is line 3 nested</p>\n <p>This is line 4 nested</p>\n <p>This is line 5 nested</p>\n <p>This is line 6 nested</p>\n <p>This is line 7 nested</p>\n <p>This is line 8 nested</p>\n <p>This is line 9 nested</p>\n <p>This is line 10 nested</p>\n <p>This is line 11 nested</p>\n <p>This is line 12 nested</p>\n <p>This is line 13 nested</p>\n <p>This is line 14 nested</p>\n <p>This is line 15 nested</p>\n <p>This is line 16 nested</p>\n <p>This is line 17 nested</p>\n <p>This is line 18 nested</p>\n <p>This is line 19 nested</p>\n <p>This is line 20 nested</p>\n <p>This is line 21 nested</p>\n <p>This is line 22 nested</p>\n <p>This is line 23 nested</p>\n <p>This is line 24 nested</p>\n <p>This is line 25 nested</p>\n <p>This is line 26 nested</p>\n <p>This is line 27 nested</p>\n <p>This is line 28 nested</p>\n <p>This is line 29 nested</p>\n <p>This is line 30 nested</p>\n <p>This is line 31 nested</p>\n <p>This is line 32 nested</p>\n <p>This is line 33 nested</p>\n <p>This is line 34 nested</p>\n <p>This is line 35 nested</p>\n <p>This is line 36 nested</p>\n <p>This is line 37 nested</p>\n <p>This is line 38 nested</p>\n <p>This is line 39 nested</p>\n <p>This is line 40 nested</p>\n <p>This is line 41 nested</p>\n <p>This is line 42 nested</p>\n <p>This is line 43 nested</p>\n <p>This is line 44 nested</p>\n <p>This is line 45 nested</p>\n <p>This is line 46 nested</p>\n <p>This is line 47 nested</p>\n <p>This is line 48 nested</p>\n <p>This is line 49 nested</p>\n <p>This is line 50 nested</p>\n <p>This is line 51 nested</p>\n <p>This is line 52 nested</p>\n <p>This is line 53 nested</p>\n <p>This is line 54 nested</p>\n <p>This is line 55 nested</p>\n <p>This is line 56 nested</p>\n <p>This is line 57 nested</p>\n <p>This is line 58 nested</p>\n <p>This is line 59 nested</p>\n <p>This is line 60 nested</p>\n <p>This is line 61 nested</p>\n <p>This is line 62 nested</p>\n <p>This is line 63 nested</p>\n <p>This is line 64 nested</p>\n <p>This is line 65 nested</p>\n <p>This is line 66 nested</p>\n <p>This is line 67 nested</p>\n <p>This is line 68 nested</p>\n <p>This is line 69 nested</p>\n <p>This is line 70 nested</p>\n <p>This is line 71 nested</p>\n <p>This is line 72 nested</p>\n <p>This is line 73 nested</p>\n <p>This is line 74 nested</p>\n <p>This is line 75 nested</p>\n
CSharpStatement - - });
HtmlContent - (4666:162,0 [1026] StringLiterals.cshtml) - <p>This is line 1</p>\n<p>This is line 2</p>\n<p>This is line 3</p>\n<p>This is line 4</p>\n<p>This is line 5</p>\n<p>This is line 6</p>\n<p>This is line 7</p>\n<p>This is line 8</p>\n<p>This is line 9</p>\n<p>This is line 10</p>\n<p>This is line 11</p>\n<p>This is line 12</p>\n<p>This is line 13</p>\n<p>This is line 14</p>\n<p>This is line 15</p>\n<p>This is line 16</p>\n<p>This is line 17</p>\n<p>This is line 18</p>\n<p>This is line 19</p>\n<p>This is line 20</p>\n<p>This is line 21</p>\n<p>This is line 22</p>\n<p>This is line 23</p>\n<p>This is line 24</p>\n<p>This is line 25</p>\n<p>This is line 26</p>\n<p>This is line 27</p>\n<p>This is line 28</p>\n<p>This is line 29</p>\n<p>This is line 30</p>\n<p>This is line 31</p>\n<p>This is line 32</p>\n<p>This is line 33</p>\n<p>This is line 34</p>\n<p>This is line 35</p>\n<p>This is line 36</p>\n<p>This is line 37</p>\n<p>This is line 38</p>\n<p>This is line 39</p>\n<p>This is line 40</p>\n<p>This is line 41</p>\n<p>This is line 42</p>\n<p>This is line 43</p>hi!\n
CSharpStatement - - DefineSection("WriteLiteralsToInHereAlso", async () => {
HtmlContent - (5728:205,36 [1023] StringLiterals.cshtml) - \n <p>This is line 1 nested</p>\n <p>This is line 2 nested</p>\n <p>This is line 3 nested</p>\n <p>This is line 4 nested</p>\n <p>This is line 5 nested</p>\n <p>This is line 6 nested</p>\n <p>This is line 7 nested</p>\n <p>This is line 8 nested</p>\n <p>This is line 9 nested</p>\n <p>This is line 10 nested</p>\n <p>This is line 11 nested</p>\n <p>This is line 12 nested</p>\n <p>This is line 13 nested</p>\n <p>This is line 14 nested</p>\n <p>This is line 15 nested</p>\n <p>This is line 16 nested</p>\n <p>This is line 17 nested</p>\n <p>This is line 18 nested</p>\n <p>This is line 19 nested</p>\n <p>This is line 20 nested</p>\n <p>This is line 21 nested</p>\n <p>This is line 22 nested</p>\n <p>This is line 23 nested</p>\n <p>This is line 24 nested</p>\n <p>This is line 25 nested</p>\n <p>This is line 26 nested</p>\n <p>This is line 27 nested</p>\n <p>This is line 28 nested</p>\n <p>This is line 29 nested</p>\n <p>30</p>\n
CSharpStatement - - });
HtmlContent - (6752:236,1 [1] StringLiterals.cshtml) - !

View File

@ -0,0 +1,74 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Templates_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (278:8,1 [4] Templates.cshtml) - \n\n
CSharpStatement - (284:10,2 [34] Templates.cshtml) - \n Func<dynamic, object> foo =
Template - (325:11,39 [16] Templates.cshtml)
HtmlContent - (325:11,39 [11] Templates.cshtml) - This works
CSharpExpression - (337:11,51 [4] Templates.cshtml)
RazorIRToken - (337:11,51 [4] Templates.cshtml) - CSharp - item
HtmlContent - (341:11,55 [1] Templates.cshtml) - !
CSharpStatement - (349:11,63 [7] Templates.cshtml) - ;\n
CSharpExpression - (357:12,5 [7] Templates.cshtml)
RazorIRToken - (357:12,5 [7] Templates.cshtml) - CSharp - foo("")
CSharpStatement - (364:12,12 [2] Templates.cshtml) - \n
HtmlContent - (369:14,0 [8] Templates.cshtml) - \n<ul>\n
CSharpExpression - (379:16,2 [31] Templates.cshtml)
RazorIRToken - (379:16,2 [11] Templates.cshtml) - CSharp - Repeat(10,
Template - (391:16,14 [19] Templates.cshtml)
HtmlContent - (391:16,14 [10] Templates.cshtml) - <li>Item #
CSharpExpression - (402:16,25 [4] Templates.cshtml)
RazorIRToken - (402:16,25 [4] Templates.cshtml) - CSharp - item
HtmlContent - (406:16,29 [5] Templates.cshtml) - </li>
RazorIRToken - (411:16,34 [1] Templates.cshtml) - CSharp - )
HtmlContent - (413:16,36 [16] Templates.cshtml) - \n</ul>\n\n<p>\n
CSharpExpression - (430:20,1 [52] Templates.cshtml)
RazorIRToken - (430:20,1 [16] Templates.cshtml) - CSharp - Repeat(10,\n
Template - (448:21,6 [35] Templates.cshtml)
HtmlContent - (448:21,6 [14] Templates.cshtml) - This is line#
CSharpExpression - (463:21,21 [4] Templates.cshtml)
RazorIRToken - (463:21,21 [4] Templates.cshtml) - CSharp - item
HtmlContent - (467:21,25 [17] Templates.cshtml) - of markup<br/>\n
RazorIRToken - (484:22,0 [1] Templates.cshtml) - CSharp - )
HtmlContent - (485:22,1 [15] Templates.cshtml) - \n</p>\n\n<p>\n
CSharpExpression - (501:26,1 [54] Templates.cshtml)
RazorIRToken - (501:26,1 [16] Templates.cshtml) - CSharp - Repeat(10,\n
Template - (519:27,6 [37] Templates.cshtml)
HtmlContent - (519:27,6 [15] Templates.cshtml) - : This is line#
CSharpExpression - (535:27,22 [4] Templates.cshtml)
RazorIRToken - (535:27,22 [4] Templates.cshtml) - CSharp - item
HtmlContent - (539:27,26 [18] Templates.cshtml) - of markup<br />\n
RazorIRToken - (557:28,0 [1] Templates.cshtml) - CSharp - )
HtmlContent - (558:28,1 [15] Templates.cshtml) - \n</p>\n\n<p>\n
CSharpExpression - (574:32,1 [55] Templates.cshtml)
RazorIRToken - (574:32,1 [16] Templates.cshtml) - CSharp - Repeat(10,\n
Template - (592:33,6 [38] Templates.cshtml)
HtmlContent - (592:33,6 [16] Templates.cshtml) - :: This is line#
CSharpExpression - (609:33,23 [4] Templates.cshtml)
RazorIRToken - (609:33,23 [4] Templates.cshtml) - CSharp - item
HtmlContent - (613:33,27 [18] Templates.cshtml) - of markup<br />\n
RazorIRToken - (631:34,0 [1] Templates.cshtml) - CSharp - )
HtmlContent - (632:34,1 [22] Templates.cshtml) - \n</p>\n\n\n<ul>\n
CSharpExpression - (655:39,5 [141] Templates.cshtml)
RazorIRToken - (655:39,5 [11] Templates.cshtml) - CSharp - Repeat(10,
Template - (667:39,17 [129] Templates.cshtml)
HtmlContent - (667:39,17 [20] Templates.cshtml) - <li>\n Item #
CSharpExpression - (688:40,15 [4] Templates.cshtml)
RazorIRToken - (688:40,15 [4] Templates.cshtml) - CSharp - item
HtmlContent - (692:40,19 [10] Templates.cshtml) - \n
CSharpStatement - (704:41,10 [18] Templates.cshtml) - var parent = item;
HtmlContent - (725:42,0 [53] Templates.cshtml) - <ul>\n <li>Child Items... ?</li>\n
HtmlContent - (839:45,0 [24] Templates.cshtml) - </ul>\n </li>
RazorIRToken - (863:46,9 [1] Templates.cshtml) - CSharp - )
HtmlContent - (864:46,10 [8] Templates.cshtml) - \n</ul>
CSharpStatement - (12:0,12 [265] Templates.cshtml) - \n public HelperResult Repeat(int times, Func<int, object> template) {\n return new HelperResult((writer) => {\n for(int i = 0; i < times; i++) {\n ((HelperResult)template(i)).WriteTo(writer);\n }\n });\n }\n

View File

@ -0,0 +1,69 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Templates_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (280:9,0 [2] Templates.cshtml) - \n
CSharpStatement - (284:10,2 [34] Templates.cshtml) - \n Func<dynamic, object> foo =
Template - (325:11,39 [16] Templates.cshtml)
HtmlContent - (325:11,39 [11] Templates.cshtml) - This works
CSharpExpression - (337:11,51 [4] Templates.cshtml)
RazorIRToken - (337:11,51 [4] Templates.cshtml) - CSharp - item
HtmlContent - (341:11,55 [1] Templates.cshtml) - !
CSharpStatement - (349:11,63 [7] Templates.cshtml) - ;\n
CSharpExpression - (357:12,5 [7] Templates.cshtml)
RazorIRToken - (357:12,5 [7] Templates.cshtml) - CSharp - foo("")
CSharpStatement - (364:12,12 [2] Templates.cshtml) - \n
HtmlContent - (369:14,0 [8] Templates.cshtml) - \n<ul>\n
CSharpExpression - (379:16,2 [31] Templates.cshtml)
RazorIRToken - (379:16,2 [11] Templates.cshtml) - CSharp - Repeat(10,
Template - (391:16,14 [19] Templates.cshtml)
HtmlContent - (391:16,14 [10] Templates.cshtml) - <li>Item #
CSharpExpression - (402:16,25 [4] Templates.cshtml)
RazorIRToken - (402:16,25 [4] Templates.cshtml) - CSharp - item
HtmlContent - (406:16,29 [5] Templates.cshtml) - </li>
RazorIRToken - (411:16,34 [1] Templates.cshtml) - CSharp - )
HtmlContent - (413:16,36 [16] Templates.cshtml) - \n</ul>\n\n<p>\n
CSharpExpression - (430:20,1 [52] Templates.cshtml)
RazorIRToken - (430:20,1 [16] Templates.cshtml) - CSharp - Repeat(10,\n
Template - (448:21,6 [35] Templates.cshtml)
HtmlContent - (448:21,6 [14] Templates.cshtml) - This is line#
CSharpExpression - (463:21,21 [4] Templates.cshtml)
RazorIRToken - (463:21,21 [4] Templates.cshtml) - CSharp - item
HtmlContent - (467:21,25 [17] Templates.cshtml) - of markup<br/>\n
RazorIRToken - (484:22,0 [1] Templates.cshtml) - CSharp - )
HtmlContent - (485:22,1 [15] Templates.cshtml) - \n</p>\n\n<p>\n
CSharpExpression - (501:26,1 [54] Templates.cshtml)
RazorIRToken - (501:26,1 [16] Templates.cshtml) - CSharp - Repeat(10,\n
Template - (519:27,6 [37] Templates.cshtml)
HtmlContent - (519:27,6 [15] Templates.cshtml) - : This is line#
CSharpExpression - (535:27,22 [4] Templates.cshtml)
RazorIRToken - (535:27,22 [4] Templates.cshtml) - CSharp - item
HtmlContent - (539:27,26 [18] Templates.cshtml) - of markup<br />\n
RazorIRToken - (557:28,0 [1] Templates.cshtml) - CSharp - )
HtmlContent - (558:28,1 [15] Templates.cshtml) - \n</p>\n\n<p>\n
CSharpExpression - (574:32,1 [55] Templates.cshtml)
RazorIRToken - (574:32,1 [16] Templates.cshtml) - CSharp - Repeat(10,\n
Template - (592:33,6 [38] Templates.cshtml)
HtmlContent - (592:33,6 [16] Templates.cshtml) - :: This is line#
CSharpExpression - (609:33,23 [4] Templates.cshtml)
RazorIRToken - (609:33,23 [4] Templates.cshtml) - CSharp - item
HtmlContent - (613:33,27 [18] Templates.cshtml) - of markup<br />\n
RazorIRToken - (631:34,0 [1] Templates.cshtml) - CSharp - )
HtmlContent - (632:34,1 [22] Templates.cshtml) - \n</p>\n\n\n<ul>\n
CSharpExpression - (655:39,5 [141] Templates.cshtml)
RazorIRToken - (655:39,5 [11] Templates.cshtml) - CSharp - Repeat(10,
Template - (667:39,17 [129] Templates.cshtml)
HtmlContent - (667:39,17 [20] Templates.cshtml) - <li>\n Item #
CSharpExpression - (688:40,15 [4] Templates.cshtml)
RazorIRToken - (688:40,15 [4] Templates.cshtml) - CSharp - item
HtmlContent - (692:40,19 [2] Templates.cshtml) - \n
CSharpStatement - (694:41,0 [8] Templates.cshtml) -
CSharpStatement - (704:41,10 [18] Templates.cshtml) - var parent = item;
HtmlContent - (725:42,0 [53] Templates.cshtml) - <ul>\n <li>Child Items... ?</li>\n
HtmlContent - (839:45,0 [24] Templates.cshtml) - </ul>\n </li>
RazorIRToken - (863:46,9 [1] Templates.cshtml) - CSharp - )
HtmlContent - (864:46,10 [8] Templates.cshtml) - \n</ul>
CSharpStatement - (12:0,12 [265] Templates.cshtml) - \n public HelperResult Repeat(int times, Func<int, object> template) {\n return new HelperResult((writer) => {\n for(int i = 0; i < times; i++) {\n ((HelperResult)template(i)).WriteTo(writer);\n }\n });\n }\n

View File

@ -0,0 +1,17 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_UnfinishedExpressionInCode_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [2] UnfinishedExpressionInCode.cshtml) - \n
CSharpExpression - (5:1,1 [9] UnfinishedExpressionInCode.cshtml)
RazorIRToken - (5:1,1 [9] UnfinishedExpressionInCode.cshtml) - CSharp - DateTime.
CSharpStatement - (14:1,10 [2] UnfinishedExpressionInCode.cshtml) - \n

View File

@ -0,0 +1,11 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_UnfinishedExpressionInCode_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement - (2:0,2 [2] UnfinishedExpressionInCode.cshtml) - \n
CSharpExpression - (5:1,1 [9] UnfinishedExpressionInCode.cshtml)
RazorIRToken - (5:1,1 [9] UnfinishedExpressionInCode.cshtml) - CSharp - DateTime.
CSharpStatement - (14:1,10 [2] UnfinishedExpressionInCode.cshtml) - \n

View File

@ -3,11 +3,31 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
#line hidden
using System;
using System.Threading.Tasks;
using System.IO;
using Foo = System.Text.Encoding;
using static System;
using static System.Console;
using static global::System.Text.Encoding;
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using System.IO;
#line default
#line hidden
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using Foo = System.Text.Encoding;
#line default
#line hidden
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using static System;
#line default
#line hidden
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using static System.Console;
#line default
#line hidden
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using static global::System.Text.Encoding;
#line default
#line hidden
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Usings_DesignTime
{
#pragma warning disable 219

View File

@ -0,0 +1,30 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
UsingStatement - (1:0,1 [15] Usings.cshtml) - System.IO
UsingStatement - (19:1,1 [32] Usings.cshtml) - Foo = System.Text.Encoding
UsingStatement - (71:4,1 [19] Usings.cshtml) - static System
UsingStatement - (93:5,1 [27] Usings.cshtml) - static System.Console
UsingStatement - (123:6,1 [41] Usings.cshtml) - static global::System.Text.Encoding
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Usings_DesignTime - -
DirectiveTokenHelper -
CSharpStatement - - #pragma warning disable 219
CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
CSharpStatement - - }
CSharpStatement - - #pragma warning restore 219
CSharpStatement - - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (16:0,16 [2] Usings.cshtml) - \n
HtmlContent - (51:1,33 [2] Usings.cshtml) - \n
HtmlContent - (66:2,13 [4] Usings.cshtml) - \n\n
HtmlContent - (90:4,20 [2] Usings.cshtml) - \n
HtmlContent - (120:5,28 [2] Usings.cshtml) - \n
HtmlContent - (164:6,42 [32] Usings.cshtml) - \n\n<p>Path's full type name is
CSharpExpression - (197:8,29 [21] Usings.cshtml)
RazorIRToken - (197:8,29 [21] Usings.cshtml) - CSharp - typeof(Path).FullName
HtmlContent - (218:8,50 [40] Usings.cshtml) - </p>\n<p>Foo's actual full type name is
CSharpExpression - (259:9,35 [20] Usings.cshtml)
RazorIRToken - (259:9,35 [20] Usings.cshtml) - CSharp - typeof(Foo).FullName
HtmlContent - (279:9,55 [4] Usings.cshtml) - </p>

View File

@ -1,10 +1,10 @@
Source Location: (197:8,29 [21] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml)
|typeof(Path).FullName|
Generated Location: (839:21,32 [21] )
Generated Location: (1384:41,32 [21] )
|typeof(Path).FullName|
Source Location: (259:9,35 [20] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml)
|typeof(Foo).FullName|
Generated Location: (1015:26,38 [20] )
Generated Location: (1560:46,38 [20] )
|typeof(Foo).FullName|

View File

@ -4,11 +4,31 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
#line hidden
using System;
using System.Threading.Tasks;
using System.IO;
using Foo = System.Text.Encoding;
using static System;
using static System.Console;
using static global::System.Text.Encoding;
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using System.IO;
#line default
#line hidden
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using Foo = System.Text.Encoding;
#line default
#line hidden
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using static System;
#line default
#line hidden
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using static System.Console;
#line default
#line hidden
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using static global::System.Text.Encoding;
#line default
#line hidden
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Usings_Runtime
{
#pragma warning disable 1998

View File

@ -0,0 +1,20 @@
Document -
Checksum -
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles
UsingStatement - - System
UsingStatement - - System.Threading.Tasks
UsingStatement - (1:0,1 [17] Usings.cshtml) - System.IO
UsingStatement - (19:1,1 [34] Usings.cshtml) - Foo = System.Text.Encoding
UsingStatement - (71:4,1 [21] Usings.cshtml) - static System
UsingStatement - (93:5,1 [29] Usings.cshtml) - static System.Console
UsingStatement - (123:6,1 [43] Usings.cshtml) - static global::System.Text.Encoding
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Usings_Runtime - -
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (68:3,0 [2] Usings.cshtml) - \n
HtmlContent - (166:7,0 [30] Usings.cshtml) - \n<p>Path's full type name is
CSharpExpression - (197:8,29 [21] Usings.cshtml)
RazorIRToken - (197:8,29 [21] Usings.cshtml) - CSharp - typeof(Path).FullName
HtmlContent - (218:8,50 [40] Usings.cshtml) - </p>\n<p>Foo's actual full type name is
CSharpExpression - (259:9,35 [20] Usings.cshtml)
RazorIRToken - (259:9,35 [20] Usings.cshtml) - CSharp - typeof(Foo).FullName
HtmlContent - (279:9,55 [4] Usings.cshtml) - </p>