File: Utilities\IVsLanguageDebugInfo.cs
Web Access
Project: src\src\VisualStudio\Core\Def\Microsoft.VisualStudio.LanguageServices_pxr0p0dn_wpftmp.csproj (Microsoft.VisualStudio.LanguageServices)
// 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;
using System.Runtime.InteropServices;
using Microsoft.VisualStudio.TextManager.Interop;
 
namespace Microsoft.VisualStudio.LanguageServices.Implementation.Utilities;
 
[ComImport]
[Guid("F30A6A07-5340-4C0E-B312-5772558B0E63")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
internal interface IVsLanguageDebugInfo
{
    [PreserveSig]
    int GetProximityExpressions(IVsTextBuffer pBuffer, int iLine, int iCol, int cLines, out IVsEnumBSTR ppEnum);
 
    [PreserveSig]
    int ValidateBreakpointLocation(
        IVsTextBuffer pBuffer,
        int iLine,
        int iCol,
        [In, Out, MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Struct)] TextSpan[] pCodeSpan);
 
    [PreserveSig]
    int GetNameOfLocation(IVsTextBuffer pBuffer, int iLine, int iCol, [MarshalAs(UnmanagedType.BStr)] out string pbstrName, out int piLineOffset);
 
    [PreserveSig]
    int GetLocationOfName(
        [MarshalAs(UnmanagedType.LPWStr)] string pszName,
        [MarshalAs(UnmanagedType.BStr)] out string pbstrMkDoc,
        out TextSpan pspanLocation);
 
    [PreserveSig]
    int ResolveName([MarshalAs(UnmanagedType.LPWStr)] string pszName, uint dwFlags, out IVsEnumDebugName ppNames);
 
    [PreserveSig]
    int GetLanguageID(IVsTextBuffer pBuffer, int iLine, int iCol, out Guid pguidLanguageID);
 
    [PreserveSig]
    int IsMappedLocation(IVsTextBuffer pBuffer, int iLine, int iCol);
}