提交 e90cf291 编写于 作者: C Cyrus Najmabadi

Support OOP with dynamic types.

上级 d8667476
......@@ -74,6 +74,19 @@ internal partial class SolutionState
return projectId;
}
else if (symbol.IsKind(SymbolKind.DynamicType))
{
foreach (var (projectId, tracker) in _projectIdToTrackerMap)
{
// VB doesn't have DynamicTypes (and throws if you ask for them), so just check C# projects.
if (tracker.TryGetCompilation(out var compilation) &&
compilation.Language == LanguageNames.CSharp &&
compilation.DynamicType.Equals(symbol))
{
return projectId;
}
}
}
return null;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册