提交 754a716f 编写于 作者: R Ravi Chande

Speculatively bind names as expressions to show MyForms intellisense.

上级 220a10bb
......@@ -247,6 +247,11 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Recommendations
Dim leftHandTypeInfo = context.SemanticModel.GetTypeInfo(leftExpression, cancellationToken)
Dim leftHandSymbolInfo = context.SemanticModel.GetSymbolInfo(leftExpression, cancellationToken)
' GitHub #9087: Try to speculatively bind a type as an expression for My namespace
If leftHandTypeInfo.Type IsNot Nothing AndAlso leftHandSymbolInfo.Symbol Is leftHandTypeInfo.Type Then
leftHandSymbolInfo = context.SemanticModel.GetSpeculativeSymbolInfo(context.Position, node, SpeculativeBindingOption.BindAsExpression)
End If
Dim excludeInstance = False
Dim excludeShared = True ' do not show shared members by default
Dim useBaseReferenceAccessibility = False
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册