You've already forked linux-packaging-mono
data
debian
docs
eglib
external
Lucene.Net
Newtonsoft.Json
aspnetwebstack
packages
src
test
Microsoft.TestCommon
Microsoft.Web.Helpers.Test
Microsoft.Web.Http.Data.Test
Microsoft.Web.Mvc.Test
Microsoft.Web.WebPages.OAuth.Test
SPA.Test
System.Json.Test.Integration
System.Json.Test.Unit
System.Net.Http.Formatting.Test.Integration
System.Net.Http.Formatting.Test.Unit
System.Web.Helpers.Test
System.Web.Http.Integration.Test
System.Web.Http.SelfHost.Test
System.Web.Http.Test
System.Web.Http.WebHost.Test
System.Web.Mvc.Test
System.Web.Razor.Test
Editor
Framework
BlockExtensions.cs
BlockTypes.cs
CodeParserTestBase.cs
CsHtmlCodeParserTestBase.cs
CsHtmlMarkupParserTestBase.cs
ErrorCollector.cs
MarkupParserTestBase.cs
ParserTestBase.cs
RawTextSymbol.cs
TestSpanBuilder.cs
VBHtmlCodeParserTestBase.cs
VBHtmlMarkupParserTestBase.cs
Generator
Parser
Properties
TestFiles
Text
Tokenizer
Utils
CSharpRazorCodeLanguageTest.cs
CodeCompileUnitExtensions.cs
RazorCodeLanguageTest.cs
RazorDirectiveAttributeTest.cs
RazorEngineHostTest.cs
RazorTemplateEngineTest.cs
StringTextBuffer.cs
System.Web.Razor.Test.csproj
VBRazorCodeLanguageTest.cs
packages.config
System.Web.WebPages.Administration.Test
System.Web.WebPages.Deployment.Test
System.Web.WebPages.Razor.Test
System.Web.WebPages.Test
WebMatrix.Data.Test
WebMatrix.WebData.Test
Settings.StyleCop
tools
.gitattributes
.gitignore
License.txt
README.md
Runtime.msbuild
Runtime.sln
Runtime.xunit
Settings.StyleCop
build.cmd
binary-reference-assemblies
cecil
debian-snapshot
ikdasm
ikvm
referencesource
rx
ikvm-native
libgc
m4
man
mcs
mono
msvc
po
runtime
samples
scripts
support
tools
AUTHORS
COPYING.LIB
ChangeLog.REMOVED.git-id
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
build-mingw32.sh
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-core.spec
mono-core.spec.in
mono-uninstalled.pc.in
test-driver
winconfig.h
30 lines
781 B
C#
30 lines
781 B
C#
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
|
|
|
|
using System.Web.Razor.Parser.SyntaxTree;
|
|
|
|
namespace System.Web.Razor.Test.Framework
|
|
{
|
|
public static class BlockExtensions
|
|
{
|
|
public static void LinkNodes(this Block self)
|
|
{
|
|
Span first = null;
|
|
Span previous = null;
|
|
foreach (Span span in self.Flatten())
|
|
{
|
|
if (first == null)
|
|
{
|
|
first = span;
|
|
}
|
|
span.Previous = previous;
|
|
|
|
if (previous != null)
|
|
{
|
|
previous.Next = span;
|
|
}
|
|
previous = span;
|
|
}
|
|
}
|
|
}
|
|
}
|