提交 8adaa7ae 编写于 作者: C chandera 提交者: RoslynTeam

Fixing an issue where Go To Definition didn't work inside inferred field...

Fixing an issue where Go To Definition didn't work inside inferred field initializers in anonymous types. (changeset 1214467)
上级 a1ecb5ea
......@@ -124,7 +124,8 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
Dim q = From node In token.GetAncestors(Of SyntaxNode)()
Where Not TypeOf node Is AggregationRangeVariableSyntax AndAlso
Not TypeOf node Is CollectionRangeVariableSyntax AndAlso
Not TypeOf node Is ExpressionRangeVariableSyntax
Not TypeOf node Is ExpressionRangeVariableSyntax AndAlso
Not TypeOf node Is InferredFieldInitializerSyntax
Let symbol = semanticModel.GetDeclaredSymbol(node, cancellationToken)
Where symbol IsNot Nothing AndAlso symbol.Locations.Contains(location)
Select symbol
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册