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)); }
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)); }
public void Navigate(string assemblyName, string rqName) { var url = baseUrl + "/" + assemblyName + "/a.html#" + GetHash(RQNameTranslator.ToIndexId(rqName)); Process.Start(url); }