/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/VisualStudio/Core/Def/Utilities/VsDebugName.cs
39 строк
1 KB
Cyrus Najmabadi
Make sealed
26 мар 2025, 22:21
26 мар 2025, 22:21
d99b771
Код
Авторство
О чём код?
// 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 Microsoft.VisualStudio.TextManager.Interop; namespace Microsoft.VisualStudio.LanguageServices.Implementation.Utilities; internal sealed class VsDebugName : IVsDebugName { private readonly string? _name; private readonly string _document; private readonly TextSpan _textSpan; public VsDebugName(string? name, string document, TextSpan textSpan) { _name = name; _document = document; _textSpan = textSpan; } public int GetLocation(out string pbstrMkDoc, TextSpan[] pspanLocation) { pbstrMkDoc = _document; if (pspanLocation != null && pspanLocation.Length > 0) { pspanLocation[0] = _textSpan; } return VSConstants.S_OK; } public int GetName(out string? pbstrName) { pbstrName = _name; return VSConstants.S_OK; } }