提交 33ee562e 编写于 作者: J Jason Malinowski

Flatten the type hierarchy

Nothing is using UnresolvedRQNode directly, so we can just flatten the
type hierarchy a bit.
上级 be99cc61
......@@ -9,8 +9,7 @@
namespace Microsoft.CodeAnalysis.Features.RQName.Nodes
{
// an unresolved but parsed representation of an RQ Name
internal abstract class UnresolvedRQNode
internal abstract class RQNode
{
protected abstract string RQKeyword { get; }
......
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable enable
namespace Microsoft.CodeAnalysis.Features.RQName.Nodes
{
internal abstract class RQNode : UnresolvedRQNode
{
}
}
......@@ -18,7 +18,7 @@ internal static class RQNodeBuilder
/// Builds the RQName for a given symbol.
/// </summary>
/// <returns>The node if it could be created, otherwise null</returns>
public static UnresolvedRQNode? Build(ISymbol symbol)
public static RQNode? Build(ISymbol symbol)
=> symbol switch
{
INamespaceSymbol namespaceSymbol => BuildNamespace(namespaceSymbol),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册