Updated TODO comment and narrowed Variables constructor.

上级 73bb89e3
......@@ -1491,7 +1491,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
Private ReadOnly _variables As ImmutableArray(Of IVariableDeclaration)
Private ReadOnly _syntax As SyntaxNode
Public Sub New(variables As ImmutableArray(Of IVariableDeclaration), syntax As SyntaxNode)
Public Sub New(variables As ImmutableArray(Of IVariableDeclaration), syntax As UsingStatementSyntax)
_variables = variables
_syntax = syntax
End Sub
......
......@@ -420,6 +420,9 @@ End Module
<Fact>
Public Sub UsingDeclarationExistingVariableNonNullSyntax()
' TODO: This will need to be removed when https://github.com/dotnet/roslyn/issues/19887 is fixed.
' The docs for IUsingStatement.Declaration state that it should be returning null when the
' using statement does not declare any variables. However, it currently does not. When that is
' fixed, this test should be updated to correctly reflect that assertion.
Dim source = <compilation>
<file name="c.vb">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册