提交 1d19f6fb 编写于 作者: C CyrusNajmabadi

Rename method to be clearer that it can return null.

上级 bd99e8e7
......@@ -84,7 +84,7 @@ private bool TryNavigateToMetadataSymbol(string symbolKey)
private bool TryNavigateToMetadataSymbol(string symbolKey, Func<ISymbol, Project, ISymbolNavigationService, bool> action)
{
var projectAndSymbol = ResolveSymbolInCurrentSolution(symbolKey);
var projectAndSymbol = TryResolveSymbolInCurrentSolution(symbolKey);
if (projectAndSymbol == null)
{
return false;
......@@ -106,7 +106,7 @@ private bool TryNavigateToMetadataSymbol(string symbolKey, Func<ISymbol, Project
return action(symbol, project, navigationService);
}
private (Project project, ISymbol symbol)? ResolveSymbolInCurrentSolution(string symbolKey)
private (Project project, ISymbol symbol)? TryResolveSymbolInCurrentSolution(string symbolKey)
{
if (!this.Properties.TryGetValue(MetadataAssemblyIdentityDisplayName, out var identityDisplayName) ||
!AssemblyIdentity.TryParseDisplayName(identityDisplayName, out var identity))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册