File: CodeModel\SyntaxListExtensions.cs
Web Access
Project: src\src\VisualStudio\CSharp\Impl\Microsoft.VisualStudio.LanguageServices.CSharp_bcxn1drg_wpftmp.csproj (Microsoft.VisualStudio.LanguageServices.CSharp)
// 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 disable
 
using System.Collections.Generic;
using Microsoft.CodeAnalysis;
 
namespace Microsoft.VisualStudio.LanguageServices.CSharp.CodeModel;
 
internal static class SyntaxListExtensions
{
    public static IReadOnlyList<TNode> AsReadOnlyList<TNode>(this SyntaxList<TNode> list)
        where TNode : SyntaxNode
    {
        return list;
    }
 
    public static IReadOnlyList<TNode> AsReadOnlyList<TNode>(this SeparatedSyntaxList<TNode> separatedList)
        where TNode : SyntaxNode
    {
        return separatedList;
    }
}