diff --git a/src/Microsoft.AspNet.Razor/Parser/CSharpCodeParser.cs b/src/Microsoft.AspNet.Razor/Parser/CSharpCodeParser.cs index 6534f3e86..41f3a7448 100644 --- a/src/Microsoft.AspNet.Razor/Parser/CSharpCodeParser.cs +++ b/src/Microsoft.AspNet.Razor/Parser/CSharpCodeParser.cs @@ -425,17 +425,17 @@ private bool MethodCallOrArrayIndex(AcceptedCharacters acceptedCharacters) return false; } - private void CompleteBlock() + protected void CompleteBlock() { CompleteBlock(insertMarkerIfNecessary: true); } - private void CompleteBlock(bool insertMarkerIfNecessary) + protected void CompleteBlock(bool insertMarkerIfNecessary) { CompleteBlock(insertMarkerIfNecessary, captureWhitespaceToEndOfLine: insertMarkerIfNecessary); } - private void CompleteBlock(bool insertMarkerIfNecessary, bool captureWhitespaceToEndOfLine) + protected void CompleteBlock(bool insertMarkerIfNecessary, bool captureWhitespaceToEndOfLine) { if (insertMarkerIfNecessary && Context.LastAcceptedCharacters != AcceptedCharacters.Any) {