Пример #1
0
        public SymbolInfo GetSymbolAt(string sourceFileName, SnapshotPoint point)
        {
            //Debugger.Launch();
            var file = (SourceFile)point.Snapshot.TextBuffer.MaybeGetSourceFileData().Value.SourceFile;

            if (!file.IsBound)
                return null;
            return Walk(file.RootNode, point.ToPosition());
        }
Пример #2
0
        public SymbolInfo GetSymbolAt(string sourceFileName, SnapshotPoint point)
        {
            //Debugger.Launch();
            var file = (SourceFile)point.Snapshot.TextBuffer.MaybeGetSourceFileData().Value.SourceFile;

            if (!file.IsBound)
            {
                return(null);
            }
            return(Walk(file.RootNode, point.ToPosition()));
        }