未验证 提交 fe80f830 编写于 作者: D Dustin Campbell 提交者: GitHub

Merge pull request #29374 from carlos-quintero/master

Fix to return attributes of VB.NET enum members when using the code model EnvDTE.CodeVariable.Attributes
......@@ -384,6 +384,8 @@ Namespace Microsoft.VisualStudio.LanguageServices.VisualBasic.CodeModel
Return GetAttributeNodes(DirectCast(node, FieldDeclarationSyntax).AttributeLists)
ElseIf TypeOf node Is ParameterSyntax Then
Return GetAttributeNodes(DirectCast(node, ParameterSyntax).AttributeLists)
ElseIf TypeOf node Is EnumMemberDeclarationSyntax Then
Return GetAttributeNodes(DirectCast(node, EnumMemberDeclarationSyntax).AttributeLists)
ElseIf TypeOf node Is ModifiedIdentifierSyntax OrElse
TypeOf node Is VariableDeclaratorSyntax Then
Return GetAttributeNodes(node.Parent)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册