/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Workspaces/SharedUtilitiesAndExtensions/Workspace/CSharp/LanguageServices/CSharpSymbolDeclarationService.cs
22 строки
861 B
Cyrus Najmabadi
IN progress
14 окт 2025, 00:02
14 окт 2025, 00:02
33750ef
Код
Авторство
О чём код?
// 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. using System; using System.Collections.Immutable; using System.Composition; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.LanguageService; namespace Microsoft.CodeAnalysis.CSharp; [ExportLanguageService(typeof(ISymbolDeclarationService), LanguageNames.CSharp), Shared] [method: ImportingConstructor] [method: Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] internal sealed class CSharpSymbolDeclarationService() : ISymbolDeclarationService { public ImmutableArray<SyntaxReference> GetDeclarations(ISymbol symbol) => symbol != null ? symbol.DeclaringSyntaxReferences : []; }