|
|
|
@ -1,6 +1,4 @@
@@ -1,6 +1,4 @@
|
|
|
|
|
using System; |
|
|
|
|
using System.Collections.Generic; |
|
|
|
|
using System.Text; |
|
|
|
|
using System.Collections.Generic; |
|
|
|
|
|
|
|
|
|
using ICSharpCode.Decompiler.CSharp.Syntax.PatternMatching; |
|
|
|
|
|
|
|
|
@ -51,39 +49,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
@@ -51,39 +49,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
|
|
|
|
|
[DecompilerAstNode(true)] |
|
|
|
|
public abstract partial class InterpolatedStringContent : AstNode |
|
|
|
|
{ |
|
|
|
|
#region Null
|
|
|
|
|
public new static readonly InterpolatedStringContent Null = new NullInterpolatedStringContent(); |
|
|
|
|
|
|
|
|
|
sealed class NullInterpolatedStringContent : InterpolatedStringContent |
|
|
|
|
{ |
|
|
|
|
public override bool IsNull { |
|
|
|
|
get { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override void AcceptVisitor(IAstVisitor visitor) |
|
|
|
|
{ |
|
|
|
|
visitor.VisitNullNode(this); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override T AcceptVisitor<T>(IAstVisitor<T> visitor) |
|
|
|
|
{ |
|
|
|
|
return visitor.VisitNullNode(this); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data) |
|
|
|
|
{ |
|
|
|
|
return visitor.VisitNullNode(this, data); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) |
|
|
|
|
{ |
|
|
|
|
return other == null || other.IsNull; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
public new static readonly Role<InterpolatedStringContent> Role = new Role<InterpolatedStringContent>("InterpolatedStringContent", Syntax.InterpolatedStringContent.Null); |
|
|
|
|
|
|
|
|
|
public override NodeType NodeType => NodeType.Unknown; |
|
|
|
|