Move Source down to ExtensionIRNode

This commit is contained in:
Ryan Nowak 2017-06-20 22:45:13 -07:00
parent 8649e1a4be
commit d2469e078a
11 changed files with 2 additions and 20 deletions

View File

@ -16,8 +16,6 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions
public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance;
public override SourceSpan? Source { get; set; }
public override void Accept(RazorIRNodeVisitor visitor)
{
if (visitor == null)

View File

@ -13,8 +13,6 @@ namespace Microsoft.AspNetCore.Razor.Language.Extensions
public string Name { get; set; }
public override SourceSpan? Source { get; set; }
public override void Accept(RazorIRNodeVisitor visitor)
{
if (visitor == null)

View File

@ -11,8 +11,6 @@ namespace Microsoft.AspNetCore.Razor.Language.Extensions
{
public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection();
public override SourceSpan? Source { get; set; }
public override void Accept(RazorIRNodeVisitor visitor)
{
if (visitor == null)

View File

@ -12,8 +12,6 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate
public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance;
public override SourceSpan? Source { get; set; }
public override bool HasDiagnostics => false;
public string VariableName { get; set; }

View File

@ -13,8 +13,6 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate
public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance;
public override SourceSpan? Source { get; set; }
public override bool HasDiagnostics => false;
public string VariableName { get; set; }

View File

@ -13,8 +13,6 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate
public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance;
public override SourceSpan? Source { get; set; }
public override bool HasDiagnostics => false;
public string VariableName { get; set; }

View File

@ -10,8 +10,6 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate
{
public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection();
public override SourceSpan? Source { get; set; }
public override void Accept(RazorIRNodeVisitor visitor)
{
if (visitor == null)

View File

@ -36,6 +36,8 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate
}
}
public override SourceSpan? Source { get; set; }
public override bool HasDiagnostics => _diagnostics != null && _diagnostics.Count > 0;
public abstract void WriteNode(CodeTarget target, CSharpRenderingContext context);

View File

@ -12,8 +12,6 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate
public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance;
public override SourceSpan? Source { get; set; }
public override bool HasDiagnostics => false;
public string VariableName { get; set; }

View File

@ -551,8 +551,6 @@ Render Node - CSharpExpressionIRNode
{
public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance;
public override SourceSpan? Source { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
public override void Accept(RazorIRNodeVisitor visitor)
{
throw new NotImplementedException();

View File

@ -46,8 +46,6 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate
{
public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance;
public override SourceSpan? Source { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
public override void Accept(RazorIRNodeVisitor visitor)
{
// This is the standard visitor boilerplate for an extension node.