Simplified casting

上级 e65ae4c0
......@@ -1464,7 +1464,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
If (BoundUsing.ResourceList.IsDefault) Then
Return Nothing
End If
Dim usingStatementSyntax = DirectCast(Syntax.ChildNodes()(0), UsingStatementSyntax)
Dim usingStatementSyntax = DirectCast(Syntax, UsingBlockSyntax).UsingStatement
Return New Variables(BoundUsing.ResourceList.As(Of IVariableDeclaration), usingStatementSyntax)
End Function)
End Get
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册