예제 #1
0
        public SymbolInfo GetSymbolAt(string sourceFileName, SnapshotPoint point)
        {
            var result = GetGoToDefLocations(sourceFileName, point).FirstOrDefault();

            if (result == null || String.IsNullOrEmpty(result.RQName))
            {
                return(null);
            }
            return(new SymbolInfo(RQNameTranslator.ToIndexId(result.RQName), !result.IsMetadata, result.AssemblyBinaryName));
        }
예제 #2
0
        public SymbolInfo GetSymbolAt(string sourceFileName, SnapshotPoint point)
        {
            var project = dte.Solution.FindProjectItem(sourceFileName).ContainingProject;
            var result  = GetNode(point, project, sourceFileName);

            if (result == null || String.IsNullOrEmpty(result.RQName) || result.RQName.StartsWith("Ns("))
            {
                return(null);
            }
            return(new SymbolInfo(RQNameTranslator.ToIndexId(result.RQName), result.DefinitionFiles.Any(), result.AssemblyName));
        }
예제 #3
0
        public void Navigate(string assemblyName, string rqName)
        {
            var url = baseUrl + "/" + assemblyName + "/a.html#" + GetHash(RQNameTranslator.ToIndexId(rqName));

            Process.Start(url);
        }