Make CodeWrite public
This commit is contained in:
parent
2b2cf6efec
commit
25831260f7
|
|
@ -9,7 +9,7 @@ using System.Linq;
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.Razor.Evolution.Legacy
|
namespace Microsoft.AspNetCore.Razor.Evolution.Legacy
|
||||||
{
|
{
|
||||||
internal class CSharpCodeWriter : CodeWriter
|
public class CSharpCodeWriter : CodeWriter
|
||||||
{
|
{
|
||||||
private const string InstanceMethodFormat = "{0}.{1}";
|
private const string InstanceMethodFormat = "{0}.{1}";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ using System.Linq;
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.Razor.Evolution.Legacy
|
namespace Microsoft.AspNetCore.Razor.Evolution.Legacy
|
||||||
{
|
{
|
||||||
internal struct CSharpCodeWritingScope : IDisposable
|
public struct CSharpCodeWritingScope : IDisposable
|
||||||
{
|
{
|
||||||
private CodeWriter _writer;
|
private CodeWriter _writer;
|
||||||
private bool _autoSpace;
|
private bool _autoSpace;
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ using System;
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.Razor.Evolution.Legacy
|
namespace Microsoft.AspNetCore.Razor.Evolution.Legacy
|
||||||
{
|
{
|
||||||
internal struct CSharpDisableWarningScope : IDisposable
|
public struct CSharpDisableWarningScope : IDisposable
|
||||||
{
|
{
|
||||||
private CSharpCodeWriter _writer;
|
private CSharpCodeWriter _writer;
|
||||||
int _warningNumber;
|
int _warningNumber;
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ using System.Text;
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.Razor.Evolution.Legacy
|
namespace Microsoft.AspNetCore.Razor.Evolution.Legacy
|
||||||
{
|
{
|
||||||
internal class CodeWriter : IDisposable
|
public class CodeWriter : IDisposable
|
||||||
{
|
{
|
||||||
private static readonly char[] NewLineCharacters = { '\r', '\n' };
|
private static readonly char[] NewLineCharacters = { '\r', '\n' };
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ using Microsoft.Extensions.Internal;
|
||||||
namespace Microsoft.AspNetCore.Razor.Evolution.Legacy
|
namespace Microsoft.AspNetCore.Razor.Evolution.Legacy
|
||||||
{
|
{
|
||||||
[DebuggerDisplay("({Location})\"{Value}\"")]
|
[DebuggerDisplay("({Location})\"{Value}\"")]
|
||||||
internal class LocationTagged<TValue> : IFormattable
|
public class LocationTagged<TValue> : IFormattable
|
||||||
{
|
{
|
||||||
public LocationTagged(TValue value, int absoluteIndex, int lineIndex, int characterIndex)
|
public LocationTagged(TValue value, int absoluteIndex, int lineIndex, int characterIndex)
|
||||||
: this (value, new SourceLocation(absoluteIndex, lineIndex, characterIndex))
|
: this (value, new SourceLocation(absoluteIndex, lineIndex, characterIndex))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue