Пример #1
0
    public static bool GetSymbolFromPos(out ISymbol sym, out CodeInfo.Context cd)
    {
        sym = null;
        var doc = Panels.Editor.ZActiveDoc; if (doc == null)

        {
            cd = default; return(false);
        }

        if (!CodeInfo.GetContextAndDocument(out cd))
        {
            return(false);
        }
        return(GetSymbolFromPos(cd.pos16, cd.document, out sym));
    }