提交 72c0c9ec 编写于 作者: C CyrusNajmabadi

Fixup tests.

上级 d0d91a09
......@@ -332,7 +332,7 @@ End Sub
End Class", Async Function(w)
SetupVerifiableGlyph(StandardGlyphGroup.GlyphGroupMethod, StandardGlyphItem.GlyphItemPublic)
Dim item As NavigateToItem = (Await _aggregator.GetItemsAsync("Foo")).Single(Function(i) i.Kind = NavigateToItemKind.Method)
VerifyNavigateToResultItem(item, "Foo", MatchKind.Exact, NavigateToItemKind.Method, "New()", $"{FeaturesResources.type_space}Foo")
VerifyNavigateToResultItem(item, "Foo", MatchKind.Exact, NavigateToItemKind.Method, "Foo.New()", $"{FeaturesResources.type_space}Foo")
End Function)
End Function
......@@ -344,7 +344,7 @@ End Sub
End Class", Async Function(w)
SetupVerifiableGlyph(StandardGlyphGroup.GlyphGroupMethod, StandardGlyphItem.GlyphItemPrivate)
Dim item As NavigateToItem = (Await _aggregator.GetItemsAsync("Foo")).Single(Function(i) i.Kind = NavigateToItemKind.Method)
VerifyNavigateToResultItem(item, "Foo", MatchKind.Exact, NavigateToItemKind.Method, "Shared New()", $"{FeaturesResources.type_space}Foo")
VerifyNavigateToResultItem(item, "Foo", MatchKind.Exact, NavigateToItemKind.Method, "Foo.New()", $"{FeaturesResources.type_space}Foo")
End Function)
End Function
......
......@@ -858,7 +858,8 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
Dim typeBlock = TryCast(constructor.Parent, TypeBlockSyntax)
If typeBlock IsNot Nothing Then
declaredSymbolInfo = New DeclaredSymbolInfo(
typeBlock.BlockStatement.Identifier.ValueText, GetConstructorSuffix(constructor),
typeBlock.BlockStatement.Identifier.ValueText,
GetConstructorSuffix(constructor),
GetContainerDisplayName(node.Parent),
GetFullyQualifiedContainerName(node.Parent),
DeclaredSymbolInfoKind.Constructor,
......@@ -1003,11 +1004,12 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
End Function
Private Function GetMethodSuffix(method As MethodBlockSyntax) As String
Return GetSuffix(method.SubOrFunctionStatement.ParameterList)
Return GetTypeParameterSuffix(method.SubOrFunctionStatement.TypeParameterList) &
GetSuffix(method.SubOrFunctionStatement.ParameterList)
End Function
Private Function GetConstructorSuffix(method As ConstructorBlockSyntax) As String
Return GetSuffix(method.SubNewStatement.ParameterList)
Return ".New" & GetSuffix(method.SubNewStatement.ParameterList)
End Function
Private Function GetPropertySuffix([property] As PropertyStatementSyntax) As String
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册