(() => collection.GetLineLength(40));
+ }
+
+ [Fact]
+ public void GetLineLength_AtStart()
+ {
+ // Arrange
+ var content = @"@addTagHelper, * Stuff
+@* A comment *@";
+ var document = TestRazorSourceDocument.Create(content);
+ var collection = new DefaultRazorSourceLineCollection(document);
+
+ // Act
+ var lineLength = collection.GetLineLength(0);
+
+ // Assert
+ var expectedLineLength = 22 + Environment.NewLine.Length;
+ Assert.Equal(expectedLineLength, lineLength);
+ }
+
+ [Fact]
+ public void GetLineLength_AtEnd()
+ {
+ // Arrange
+ var content = @"@addTagHelper, * Stuff
+@* A comment *@";
+ var document = TestRazorSourceDocument.Create(content);
+ var collection = new DefaultRazorSourceLineCollection(document);
+
+ // Act
+ var lineLength = collection.GetLineLength(1);
+
+ // Assert
+ var expectedLineLength = 15;
+ Assert.Equal(expectedLineLength, lineLength);
+ }
+ }
+}
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.codegen.html
index 0da46f2152d1..9798fda642fa 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.codegen.html
@@ -1 +1 @@
-
+~~~~~~~~~~~~~ ~~~ ~~~~~~~~~~~~~
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_DesignTime.codegen.html
index fd82d1980659..bc07a83107e3 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_DesignTime.codegen.html
@@ -1,6 +1,6 @@
-
-
-
-
+~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~
+~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
Hello World
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.codegen.html
index 22593ca1ef47..9206eae15e5b 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.codegen.html
@@ -1,26 +1,26 @@
-
-
-
-
-
-
+~~~~~~~~~~ ~
+ ~~~~~~ ~~~~~ ~~~~~~~~~~~~ ~~~~~
+ ~
+ ~~~~~~ ~~~~~~
+ ~
+~
Basic Asynchronous Expression Test
- Basic Asynchronous Expression:
- Basic Asynchronous Template:
- Basic Asynchronous Statement:
- Basic Asynchronous Statement Nested:
- Basic Incomplete Asynchronous Statement:
+ Basic Asynchronous Expression: ~~~~~~ ~~~~~
+ Basic Asynchronous Template: ~~~~~~~ ~~~~~~
+ Basic Asynchronous Statement: ~~ ~~~~~ ~~~~~~ ~
+ Basic Asynchronous Statement Nested: ~~ ~~~~~~ ~~~~~ ~
+ Basic Incomplete Asynchronous Statement: ~~~~~~
Advanced Asynchronous Expression Test
- Advanced Asynchronous Expression:
- Advanced Asynchronous Expression Extended:
- Advanced Asynchronous Template:
- Advanced Asynchronous Statement:
- Advanced Asynchronous Statement Extended:
- Advanced Asynchronous Statement Nested:
- Advanced Incomplete Asynchronous Statement:
+ Advanced Asynchronous Expression: ~~~~~~ ~~~~~~ ~~
+ Advanced Asynchronous Expression Extended: ~~~~~~ ~~~~~~~~~~ ~~
+ Advanced Asynchronous Template: ~~~~~~~ ~~~~~~~~~~ ~~~~~~
+ Advanced Asynchronous Statement: ~~ ~~~~~ ~~~~~~~~~~~~~~ ~~~~~~ ~~~~~~~~~ ~
+ Advanced Asynchronous Statement Extended: ~~ ~~~~~ ~~~~~~~~~~ ~~ ~
+ Advanced Asynchronous Statement Nested: ~~ ~~~~~~ ~~~~~~~~~~~~~~ ~~~~~~ ~
+ Advanced Incomplete Asynchronous Statement: ~~~~~~ ~~~~~~~~~~~~~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.codegen.html
index dc08c79219d9..b36df6862afd 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.codegen.html
@@ -1,37 +1,37 @@
-
-
-
+~~
+ ~~~ ~ ~ ~~
+~
-
- Hello from C#, #
-
-
+~~~~~~~~ ~~ ~~~ ~
+ Hello from C#, #~~~~
+ ~ ~~ ~~
+~
-
+~~~~~ ~~ ~~~ ~
We wrote 10 lines!
-
+~
-
-
+~~~~~~~~~~ ~
+ ~~~~ ~~~
No really, we wrote 10 lines!
-
-
+ ~~~~~~
+ ~~~~~~~~
Actually, we didn't...
-
-
+ ~~~~~~
+~
-
- Hello again from C#, #
-
+~~~~~~~~ ~ ~ ~~ ~ ~~ ~~~ ~ ~~ ~~ ~
+ Hello again from C#, #~~~~
+~
-
+~~~~ ~
That time, we wrote 5 lines!
-
- Oh no! An error occurred:
-
+~ ~~~~~~~~~~~~~~~ ~~~ ~
+ Oh no! An error occurred: ~~~~~~~~~~~~~
+~
-i is now
+i is now ~~
-
+~~~~~~~~~ ~~~~~~~~~ ~
This block is locked, for your security!
-
\ No newline at end of file
+~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.codegen.html
index a2aad32abe93..d3e8f46d6bae 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.codegen.html
@@ -1,43 +1,43 @@
-
-
-
-
-
+ ~~
+ ~~~ ~~~~~~~~~~ ~ ~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~ ~~~~~~~~~~ ~~~~~~ ~~~~~~~~~ ~~~~~~ ~~~~~~~~~
+ ~
+ ~~~~~~ ~~~~~ ~ ~~~~~~~~ ~~~~~~ ~~~~~
+ ~~
-
+ ~~ ~~~~ ~~ ~~~ ~~ ~ ~~~~ ~~~~ ~~~~~~ ~~~~~ ~~
-
-
-
-
-
+ ~~~ ~~~~~~~ ~ ~~~~~~~~~~~~
+ ~~~~ ~~~~~~~~~~~~~~~~~~~ ~ ~~~~~~~~~~~~~~~~
+ ~~~~~~ ~~~~~~~~~~~~~~~~ ~ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~~~~~~~ ~~~~~~~~~~~ ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~
-
-
-
-
-
-
-
+ ~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ ~~~ ~~~ ~~~~~~~
+ ~
+ ~~ ~~~~~~~~~~~~ ~~ ~~~~ ~~~~~~
+ ~
+ ~~ ~~ ~~~~~~~~~
+ ~
+ ~
- Here's a very unique number:
+ Here's a very unique number: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
+ ~~~~~~~~~ ~~~~~~~ ~~~~~ ~~~~~~~~~~~~~ ~~ ~~~~~ ~~~~~~ ~~
-
-
-
-
-
-
-
-
-
-
-
-
+ ~~~~~~~ ~~~~~~~~~~~~~
+ ~
+ ~~~~ ~~~ ~~~~
+ ~~ ~~ ~~~~~~~~~
+ ~~~~~~
+ ~~~~ ~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
+ ~~ ~~ ~~~~ ~~~~~~~~~
+ ~~~~~~
+ ~~~~ ~~~~~
+ ~~ ~~ ~~~~ ~~~~ ~~ ~~~~~~~~~
+ ~~~~~~
+ ~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.codegen.html
index 2e0ee4dc6ebb..25245b195da1 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.codegen.html
@@ -1,67 +1,67 @@
-
+~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-
-
-
-
+~~
+ ~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
+ ~
+ ~~~~~~ ~~~~~
+ ~
-
-
+ ~~~~~ ~~~~~~~ ~~~~ ~~~ ~~ ~~~~~~~~~~~~~~~~~~~~~
+ ~
-
+ ~
-
-
+ ~~~~~ ~~~~~ ~ ~~~~~
+ ~~~~~ ~~~ ~~~~~~~~~~ ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-
-
-
-
-
-
+ ~~~ ~~~~~ ~ ~~~~~~~~~~~~~~~~~~~~~~
+ ~~~ ~~~~~~~~ ~ ~~~~~~~~~~
+ ~~~~~~ ~~~~~~~~ ~~~~~~~~~
+ ~
+ ~~~~~~ ~~~~~~~~~~~~~~~
+ ~
+~
-
-
+~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~
-
-
-
-
-
-
+~~~~~~~~~~ ~~~~~~
+~
+ ~~~~~~~~~~~~~~ ~~ ~~~~ ~~~~~~~~
+ ~~~~~~~~~~~~~~~ ~~ ~~~~ ~~~~~~~~~
+ ~ ~~ ~~~~ ~~~~~~~~
+~~
-
-
-
-
+~~~~~~ ~~~~~~~ ~~~~ ~~~ ~~ ~~~~~~~~~~~~~~~~~~~~~
+~
+ ~~~~
+~
-
-
-
+~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~
-
-
-
-
-
-
+~~~~~~~~~~ ~
+ ~~~~ ~~~~~~~~
+ ~
+ ~~~~~~
+ ~~~~~~
+ ~
-
-
-
-
-
+ ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
+ ~
+ ~~~ ~~~~~~~~~~~ ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
+ ~
-
+ ~~~~~~~ ~~~~~~ ~~~~~~ ~ ~~~~ ~~~~ ~
-
+ ~~~~~~~ ~~~~~~~~~ ~~~~~~ ~ ~~~~ ~~~~ ~
-
+ ~~~~~~~ ~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~ ~ ~~~~ ~~~~ ~
-
-
-
-
-
\ No newline at end of file
+ ~~~~~~~ ~~~~~ ~~~~~
+ ~
+ ~~~~~~ ~~~~~~~ ~~~~ ~ ~~~~ ~~~~ ~
+ ~
+~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.codegen.html
index 136d06384a4c..68db24f6303b 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.codegen.html
@@ -1 +1 @@
-
\ No newline at end of file
+~~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.codegen.html
index a6e01f1a0e64..738f635fb736 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.codegen.html
@@ -1,4 +1,4 @@
-
- foo
- bar
-
+~~
+ ~~~ ~ ~ ~~ foo
+ ~~~ ~ ~ ~~ bar ~~~~~~
+~
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.codegen.html
index f857199dcf16..9a924676bc4d 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.codegen.html
@@ -1,5 +1,5 @@
-
-
-
-
-
\ No newline at end of file
+~~
+ ~~~~~~~ ~ ~ ~~ ~ ~~ ~~~ ~~~~ ~
+ ~~~~~~~~~~~~~~~~~~~~~~ ~~~~ ~~~ ~~ ~ ~~~~~~~~~~~~ ~ ~~~~~~~~
+ ~
+~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.codegen.html
index 46a4402680ba..6d16f3df2c5f 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.codegen.html
@@ -1,15 +1,15 @@
-
-
-
+~~
+ ~~~ ~~ ~ ~~~~~
+ ~~~ ~~~ ~ ~~~~~~
-
-
-
-
-
-
+
+
+
+
+
+
-
-
+
+
-
\ No newline at end of file
+~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.codegen.html
index be5ba4979a03..a8754ea813a0 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.codegen.html
@@ -1,15 +1,15 @@
-
-
This is item #
-
+ ~~~~~~~~ ~ ~ ~~ ~ ~~ ~~~ ~~~~ ~
+
This is item #~~
+ ~
-
-
Bar Biz
+~~~~~~~~~~~~~~~
+~~~~~~Bar ~~~~ Biz
~
-
+~~~~~~~~ ~~~~~~ ~
Foo
-
-
\ No newline at end of file
+ ~~~~
+~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.codegen.html
index 9ebe0e3a7822..99a7f08ac047 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.codegen.html
@@ -1,3 +1,3 @@
This is markup
-
\ No newline at end of file
+~~~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.codegen.html
index 9ebe0e3a7822..99a7f08ac047 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.codegen.html
@@ -1,3 +1,3 @@
This is markup
-
\ No newline at end of file
+~~~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.codegen.html
index 1568f6aa34f3..0c15e1469835 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.codegen.html
@@ -1,3 +1,3 @@
-
-
-
\ No newline at end of file
+~~
+ ~
+~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.codegen.html
index 76ee36910b47..758fb714e81e 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.codegen.html
@@ -1,3 +1,3 @@
This is markup
- !
\ No newline at end of file
+~!
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.codegen.html
index 6eaf3f7aa0bd..d166c19f55a0 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.codegen.html
@@ -1,3 +1,3 @@
This is markup
-
\ No newline at end of file
+~~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.codegen.html
index fc593178498f..b410eec8a5e2 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.codegen.html
@@ -1 +1 @@
-
\ No newline at end of file
+~~~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.codegen.html
index 33b749a2f937..152cef197aeb 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.codegen.html
@@ -1 +1 @@
-1 + 1 =
\ No newline at end of file
+1 + 1 = ~~~~~~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.codegen.html
index de86958addfc..557c25099c9c 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.codegen.html
@@ -1,16 +1,16 @@
-
-
-
-
+~~
+ ~~~~~~ ~~~ ~ ~~~~~
+ ~~~~~~ ~~~ ~ ~~~~~~
+~
-
-
-
+~~~~~~~ ~~ ~~~~~ ~
+ ~~~~
+~ ~~~~ ~
Foo is Null!
-
+~
-
-
-
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
+ ~~~~~~~~~~~~~~~~~~ ~~~~~
+~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.codegen.html
index 6393f9703b5f..2a7f3ddff8a3 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.codegen.html
@@ -1,7 +1,7 @@
-
-
-
-
-
\ No newline at end of file
+ ~~~~~~~~~~~
+~~~~~~ ~~~~~~~~~~ ~~~~~~ ~
+ ~~~~~~ ~~~~~ ~ ~~~~
+~
+~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.codegen.html
index 46d84b460b85..896d2c841527 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.codegen.html
@@ -1,12 +1,12 @@
-
+~~~~~~~~~~ ~
-
+~
-
-
-
-
-
-
+~~~~~~~~~~ ~
+ ~~~~~~ ~~~~~ ~ ~~~ ~~~~~~~~~
+ ~~~~~~~ ~~~ ~~~~~~~~~~~ ~
+ ~~~~~~ ~~~~~~~~~~~~~
+ ~
+~
-Here's a random number:
\ No newline at end of file
+Here's a random number: ~~~~~~~~~~~~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.codegen.html
index 13484a1b456c..88647e0895ab 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.codegen.html
@@ -1,3 +1,3 @@
-
-
-
\ No newline at end of file
+~~
+ ~~~~
+~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.codegen.html
index d0776340e1a6..8d87a8e68a75 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.codegen.html
@@ -1,5 +1,5 @@
-
+~~~~~~~~~~~ ~~~~~~~~~~~
-
-
-
\ No newline at end of file
+~~~~~~~~~~ ~
+ ~~~~ ~~~~~~~~~~~~~~~~~~~~~ ~ ~
+~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.codegen.html
index f1c2edafa225..28138a2cddf2 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.codegen.html
@@ -1,3 +1,3 @@
This is markup
-
\ No newline at end of file
+~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.codegen.html
index c3ca733a2bc7..b8f7cde9f741 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.codegen.html
@@ -1,3 +1,3 @@
-
- This is item #
-
\ No newline at end of file
+~~~~~~~~ ~ ~ ~~ ~ ~~ ~~~ ~~~~ ~
+ This is item #~~
+~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.html
index b7d08f385618..d932435cea17 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.html
@@ -1,25 +1,25 @@
-
+~~ ~~~~~ ~~~~ ~~~~~ ~~~~~~~~ ~~~~ ~~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~ ~~~~~~ ~~
-
-
-
+~~~~~~~~~~~~~
+~~~~~~~~~~~~~
+~~~~~~~~~~~~~ ~
-
-
-
+~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~ ~
-
-
-
+~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~ ~
-
-
+~~~~~~~~~
+~~~~~~~~~
-
-
+~~~~~~~~~~
+~~~~~~~~~~
-
-
+~~~~~~~~
+~~~~~~~~
- {
-
\ No newline at end of file
+~~~~~~~~ {
+~~~~~~~~~~ ~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.codegen.html
index b60ac0100e38..9cd1d59959a7 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.codegen.html
@@ -1,3 +1,3 @@
-
+~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
-
\ No newline at end of file
+~~~~~~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_DesignTime.codegen.html
index 3b6fa1cd0620..18ebd6d308e5 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_DesignTime.codegen.html
@@ -1,3 +1,3 @@
- (string link) {
-
+~~~~~~~~ ~~~~(string link) {
+
}
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.codegen.html
index 111d1f7474ce..1c44204c9352 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.codegen.html
@@ -1,38 +1,38 @@
-
-
- Bar
- Hello, World
+~~
+ ~~~ ~ ~ ~~
+ ~~~ ~~~ ~ ~Bar
~
+ ~~Hello, World
Hello, World
-
+~
-
- Hello from C#, #
-
-
+~~~~~~~~ ~~ ~~~ ~
+ Hello from C#, #~~~~
+ ~ ~~ ~~
+~
-
+~~~~~ ~~ ~~~ ~
We wrote 10 lines!
-
+~
-
-
+~~~~~~~~~~ ~
+ ~~~~ ~~~
No really, we wrote 10 lines!
-
-
+ ~~~~~~
+ ~~~~~~~~
Actually, we didn't...
-
-
+ ~~~~~~
+~
-
- Hello again from C#, #
-
+~~~~~~~~ ~ ~ ~~ ~ ~~ ~~~ ~ ~~ ~~ ~
+ Hello again from C#, #~~~~
+~
-
+~~~~ ~
That time, we wrote 5 lines!
-
- Oh no! An error occurred:
-
+~ ~~~~~~~~~~~~~~~ ~~~ ~
+ Oh no! An error occurred: ~~~~~~~~~~~~~
+~
-
+~~~~~~~~~ ~~~~~~~~~ ~
This block is locked, for your security!
-
\ No newline at end of file
+~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.codegen.html
index 9148ce732370..ad3e1315f2bd 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.codegen.html
@@ -1,5 +1,5 @@
-
-
- Hello from C#, #
-
-
+~~
+ ~~~~~~~ ~ ~ ~~ ~ ~~ ~~~ ~~~~ ~
+ Hello from C#, #~~~~~~~~~~~~~~~
+ ~
+~
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.codegen.html
index 4b346c914a4b..554040f8c49a 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.codegen.html
@@ -1,45 +1,45 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+~~
+ ~~~ ~~~~~~ ~ ~~~ ~~~~~~~~
+ ~
+ ~~~ ~~~~~~~~ ~ ~~~~ ~ ~~~~~~~~~ ~~~ ~ ~~~ ~
+ ~~
+
+ ~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~
+ ~
+ ~~~~~~~~~~~~
+ ~
+~
+
+~~ ~~~~~~~~~~~~~~~~~~~~ ~
+~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
+
+~~~~~~~~~~ ~
+ ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~
+ ~
+ ~~~ ~~~~~~~~~ ~ ~~~~~ ~~~~~~~~~~~~~~~
-
Happy birthday !
+ Happy birthday ~~~~~~~~~~~~!
-
-
- - Happy birthday!
-
+ ~~~~ ~~~~ ~ ~ ~~ ~ ~ ~~~~~~~~~~ ~ ~~~ ~~~~
+ ~
+ - ~~~~ Happy birthday!
+ ~
-
-
-
-
+ ~~ ~~~~~~~~~~~ ~ ~~~
+ ~
+ ~~~~~~~
+ ~
Secret message
-
-
-
-
-
-
-
-
\ No newline at end of file
+ ~
+
+ ~~~~~ ~~~~~~
+ ~
+ ~~~~~~ ~~~~~~ ~~~~ ~ ~~~~ ~~~~ ~
+ ~~~~~~ ~~~ ~~~ ~ ~~~~ ~~~~ ~
+ ~
+~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.codegen.html
index c1b9240ee07a..1a78d3888c91 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.codegen.html
@@ -1,8 +1,8 @@
-
-
-
+~~
+ ~~~~~~~~ ~~~~ ~~~~~~ ~~ ~~~~~~~~~~~~~
+ ~
- .
+ ~~~~~~~~~~~~~~~~~.
-
-
\ No newline at end of file
+ ~
+~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.codegen.html
index c56380dfcb99..966b588e290f 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.codegen.html
@@ -1,4 +1,4 @@
-
-
-
-
\ No newline at end of file
+~~~~~~~~ ~
+ ~~~~~~~~ ~
+ ~
+~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.codegen.html
index b7c02278c1d0..494393779b10 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.codegen.html
@@ -1,38 +1,38 @@
-
-
-
+~~
+ ~~~ ~ ~ ~~
+~
-
- Hello from C#, #
-
-
+~~~~~~~~ ~~ ~~~ ~
+ Hello from C#, #~~~~
+ ~ ~~ ~~
+~
-
+~~~~~ ~~ ~~~ ~
We wrote 10 lines!
-
+~
-
-
+~~~~~~~~~~ ~
+ ~~~~ ~~~
No really, we wrote 10 lines!
-
-
+ ~~~~~~
+ ~~~~~~~~
Actually, we didn't...
-
-
+ ~~~~~~
+~
-
- Hello again from C#, #
-
+~~~~~~~~ ~ ~ ~~ ~ ~~ ~~~ ~ ~~ ~~ ~
+ Hello again from C#, #~~~~
+~
-
+~~~~ ~
That time, we wrote 5 lines!
-
- Oh no! An error occurred:
-
+~ ~~~~~~~~~~~~~~~ ~~~ ~
+ Oh no! An error occurred: ~~~~~~~~~~~~~
+~
-
-i is now
+~~ ~~~~ ~~~ ~~ ~~~~~~~~~~ ~~ ~~ ~~
+i is now ~~
-
+~~~~~~~~~ ~~~~~~~~~ ~
This block is locked, for your security!
-
\ No newline at end of file
+~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.codegen.html
index 7ad423b1f29e..e40e3c6f4954 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.codegen.html
@@ -1,11 +1,11 @@
-
-
-
-
-
-
+~~
+ ~~~~~~~~~~~~~~
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~
-
-
-
-
\ No newline at end of file
+~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.codegen.html
index 1675f6438378..42ba9c64b06a 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.codegen.html
@@ -1,5 +1,5 @@
-
+~~~ ~~~~~~ ~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.codegen.html
index d0076463280f..61e3b424cb11 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.codegen.html
@@ -1,5 +1,5 @@
-
-
-
-
-
\ No newline at end of file
+~~
+~~
+~~~ ~ ~~~~
+~~~ ~ ~~~~
+~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.codegen.html
index f851e2e59774..d4faa3491649 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.codegen.html
@@ -1,18 +1,18 @@
-
-This should be shown
+~~~~~~ ~~ ~~~ ~~~~~ ~~ ~~ ~~~~~~~~~~
+This should ~~ ~~~ ~~ be shown
-
-
-
-
-
-
-
+~~
+ ~~ ~~~~~ ~~~ ~~~~~~~~~~~~~ ~~~~~ ~~
+ ~~~~~~~~~ ~~~ ~ ~~ ~~~ ~~~~~~~~~~~~~ ~~~~~ ~~ ~~~~~
+ ~~~~~~ ~~ ~~~~~ ~
+ ~~~~~ ~~~~
+ ~
+~
-
-But this should show the comment syntax:
+~~ ~~~ ~~~ ~ ~~~ ~~~ ~~~~ ~
+But this should show the comment syntax: ~~~~
-
+~~~~~~~~~
-
+
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.codegen.html
index 77def406f5ff..1460ade1eacc 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.codegen.html
@@ -1 +1 @@
-
+~~~~~~~~~~~~~~~~ ~~ ~~~~~~~~~~~~
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.html
index 72ff37f26cb5..b47779a0df74 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.html
@@ -1,17 +1,17 @@
-
-
-
+~~
+ ~~~~~~ ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~
This is in the Body>
-
-
This is in Section 2
-
+~~~~~~~~ ~~~~~~~~ ~
+
This is in Section 2
+~
-
+~~~~~~~~ ~~~~~~~~ ~
This is in Section 1
-
+~
-
-
-
\ No newline at end of file
+~~~~~~~~ ~~~~~~~~~~~~~~~ ~
+ ~~ ~~~~~~~~~~~~~ ~~~~~~~ ~ ~ ~
~~~~~~ ~
+~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.codegen.html
index 11a63ced54cf..221eda5a6c0f 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.codegen.html
@@ -1,4 +1,4 @@
-
-
+~~~ ~~~~~~
+~
-
\ No newline at end of file
+~
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.codegen.html
index 3d06dc8b909c..897f7e85741e 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleLineControlFlowStatements_DesignTime.codegen.html
@@ -1,102 +1,102 @@
Before Text
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+~~
+ ~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~ ~ ~~ ~~ ~~~~~~~~~~ ~~~~ ~~ ~~~~~~~~~ ~~ ~~~ ~~~~ ~~~~~~~~~~~~~
+
+ ~~~~~~ ~~~~~
+ ~
+ ~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~ ~ ~~ ~~
+ ~~~~~~ ~~~~~~~~ ~~~~ ~~ ~~~~~~~~~ ~~ ~~~
+ ~~~~ ~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~ ~ ~~ ~~
+ ~~~~~~ ~~~~~~~~ ~~~~ ~~ ~~~~~~~~~ ~~ ~~~
+ ~~~~
+ ~~~~~~ ~~~~~~~~~~~~~
+ ~
+
+ ~~~ ~~~~ ~ ~ ~~ ~ ~ ~~~ ~~~~
+ ~~ ~~~~~~~~~~~~ ~ ~~~~~~
+ ~~~~
+
+ ~~~~~~~~ ~~~~ ~~~~ ~~ ~~~~~ ~~~~~~~~~~
+ ~~~~~
+
+ ~~
+ ~~~~~~~~~~~~~
+ ~~~~~ ~~~~~~~~~~~~~~~ ~~ ~~~
+
+ ~~~~~ ~~~~~~~~~~~~~~~ ~~ ~~~
+ ~~~~~~~~~~~~~~~
+
+ ~~~~~ ~~~~ ~~~~~~ ~ ~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~~~~~~~~~~~~~~~~~~~
+
+ ~~~~~ ~~~~~~
+ ~~~~~~~~~~~~~~~
+~
+
+~~~~~~~~~~ ~
+ ~~~~~~ ~~~~~~ ~~~~~
+ ~
+ ~~~ ~ ~ ~~~
+
+ ~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~ ~ ~~ ~~
+ ~~~~~~ ~~~~~~~~ ~~~~ ~~ ~~~~~~~~~ ~~ ~~~
+ ~~~~
+ ~~~~~~ ~~~ ~~~~~ ~~~~~~~~~ ~~ ~~~~~
-
-
-
+ ~~~ ~~~~ ~ ~ ~~ ~ ~ ~~~ ~~~~
+ ~~ ~~~~~~~~~~~~ ~ ~~~~~~
+ ~~~~
-
-
+ ~~~~~~~ ~~~~ ~~~~ ~~ ~~~~~ ~~~~~~~~~~
+ ~~~~~
-
-
-
+ ~~
+ ~~~~~~~~~~~~~
+ ~~~~~ ~~~~~~~~~~~~~~~ ~~ ~~~
-
-
+ ~~~~~ ~~~~~~~~~~~~~~~ ~~ ~~~
+ ~~~~~~~~~~~~~~~
-
-
+ ~~~~~ ~~~~ ~~~~~~ ~ ~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~~~~~~~~~~~~~~~~~~~
-
-
-
+ ~~~~ ~~~~~~
+ ~~~~~~~~~~~~~~~
+ ~
-
+ ~~~ ~~~~~~~~~~~~ ~ ~~
-
-
-
-
+ ~~~~~~ ~~~~ ~~~~~~~~~~~~~~~~
+ ~
+ ~~ ~~~~~~ ~~~~~~~~~~~~~~~
+ ~
-
+~
-
-
+~~~~ ~~~~ ~ ~ ~~ ~ ~ ~~~ ~~~~
+ ~~
-
-
+~~~~~~~~ ~~~~ ~~~~ ~~ ~~~~~ ~~~~~~~~~~
+ ~~~~~
-
-
-
+~~~
+ ~~~~~~~~~~~~~
+~~~~~ ~~~~~~~~~~~~~~~ ~~ ~~~
-
-
+~~~~~~ ~~~~~~~~~~~~~~~ ~~ ~~~
+ ~~~~~~~~~~~~~~~
-
-
-
+~~~~~~ ~~~~ ~~~~~~ ~ ~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~~ ~~~~~~~ ~~~ ~~~~~~ ~~~~
+ ~~~~~~~~~~~~~~~~~~~
-
-
+~~~~~ ~~~~~~
+ ~~~~~~~~~~~~~~~
-
Hello!
+~~~ ~~~~~~ ~~~~~~~~~~~~~~~~
Hello!
-
-
The time is
+~~~ ~~~~~~
+ ~~
The time is ~~~~~~~~~~~~~
After Text
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.codegen.html
index b47c6a931ccb..823fe9a3eed3 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.codegen.html
@@ -83,7 +83,7 @@
This is line 83
This is line 84
-
+~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ ~
This is line 1 nested
This is line 2 nested
This is line 3 nested
@@ -159,7 +159,7 @@
This is line 73 nested
This is line 74 nested
This is line 75 nested
-
+~
This is line 1
This is line 2
This is line 3
@@ -203,7 +203,7 @@
This is line 41
This is line 42
This is line 43
hi!
-
+~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ ~
This is line 1 nested
This is line 2 nested
This is line 3 nested
@@ -234,4 +234,4 @@
This is line 28 nested
This is line 29 nested
30
- !
\ No newline at end of file
+~!
\ No newline at end of file
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.codegen.html b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.codegen.html
index 419c13c11c9b..0dfbab3b0cdc 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.codegen.html
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.codegen.html
@@ -1,6 +1,6 @@
-
-
-
+~~
+
+~