35 references to UsingStatement
Microsoft.CodeAnalysis.VisualBasic (15)
Binding\Binder_Statements.vb (1)
4413Dim usingStatement = node.UsingStatement
Binding\UsingBlockBinder.vb (1)
43Dim variableDeclarators = _syntax.UsingStatement.Variables
Generated\Syntax.xml.Main.Generated.vb (2)
2747Dim newUsingStatement = DirectCast(Visit(node.UsingStatement), UsingStatementSyntax) 2748If node.UsingStatement IsNot newUsingStatement Then anyChanges = True
Generated\Syntax.xml.Syntax.Generated.vb (4)
12915return Update(Me.UsingStatement, statements, Me.EndUsingStatement) 12937return Update(Me.UsingStatement, Me.Statements, endUsingStatement) 12956Return Me.UsingStatement 12989If usingStatement IsNot Me.UsingStatement OrElse statements <> Me.Statements OrElse endUsingStatement IsNot Me.EndUsingStatement Then
Lowering\Instrumentation\DebugInfoInjector.vb (1)
391Return New BoundSequencePoint(original.UsingInfo.UsingStatementSyntax.UsingStatement, MyBase.CreateUsingStatementPrologue(original))
Lowering\LocalRewriter\LocalRewriter_Using.vb (1)
132blockSyntax.UsingStatement)
Operations\VisualBasicOperationFactory.vb (1)
1455Return GetUsingStatementDeclaration(boundUsingStatement.ResourceList, DirectCast(boundUsingStatement.Syntax, UsingBlockSyntax).UsingStatement)
Semantics\StatementSyntaxWalker.vb (1)
119Visit(node.UsingStatement)
Syntax\SyntaxBindingUtilities.vb (1)
20node.IsKind(SyntaxKind.UsingBlock) AndAlso DirectCast(node, UsingBlockSyntax).UsingStatement.Expression IsNot Nothing
Syntax\SyntaxFacts.vb (1)
411beginStatement = usingBlock.UsingStatement
Syntax\SyntaxNormalizer.vb (1)
1021AddLinebreaksAfterTokenIfNeeded(node.UsingStatement.GetLastToken(), 1)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
NodeBasedFormattingRule.vb (1)
384[using].UsingStatement.GetLastToken().GetNextToken(includeZeroWidth:=True),
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
VisualBasicSemanticFactsService.vb (1)
139Dim usingStatement = If(TryCast(node, UsingBlockSyntax)?.UsingStatement, TryCast(node, UsingStatementSyntax))
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
LineCommit\ContainingStatementInfo.MatchingStatementsVisitor.vb (1)
110Return New StatementSyntax() {node.UsingStatement, node.EndUsingStatement}
Microsoft.CodeAnalysis.VisualBasic.Features (10)
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (1)
130(Function(n As UsingBlockSyntax) n.UsingStatement),
EditAndContinue\SyntaxComparer.vb (3)
412Return If(TryCast(nodeOpt, UsingBlockSyntax)?.UsingStatement.Variables IsNot Nothing, Label.UsingBlockWithDeclarations, Label.UsingBlockWithExpression) 999distance = ComputeWeightedDistance(leftUsing.UsingStatement.Expression, leftUsing.Statements, rightUsing.UsingStatement.Expression, rightUsing.Statements)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (3)
1659Return DirectCast(node, UsingBlockSyntax).UsingStatement.Span 2819areEquivalent:=Function(n1, n2) AreEquivalentIgnoringLambdaBodies(n1.UsingStatement.Expression, n2.UsingStatement.Expression),
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.CallSiteContainerRewriter.vb (1)
153Return node.WithUsingStatement(ReplaceStatementIfNeeded(node.UsingStatement)).
Highlighting\KeywordHighlighters\UsingBlockHighlighter.vb (1)
29highlights.Add(.UsingStatement.UsingKeyword.Span)
Structure\Providers\UsingBlockStructureProvider.vb (1)
20node, node.UsingStatement, autoCollapse:=False,
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.vb (2)
19408Assert.NotNull(objectUnderTest.usingStatement) 19410Dim withObj = objectUnderTest.WithUsingStatement(objectUnderTest.UsingStatement).WithStatements(objectUnderTest.Statements).WithEndUsingStatement(objectUnderTest.EndUsingStatement)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
Formatting\Rules\NodeBasedFormattingRule.vb (1)
384[using].UsingStatement.GetLastToken().GetNextToken(includeZeroWidth:=True),
Rename\LocalConflictVisitor.vb (1)
178For Each usingVariableDeclarator In node.UsingStatement.Variables
VisualBasicSemanticFactsService.vb (1)
139Dim usingStatement = If(TryCast(node, UsingBlockSyntax)?.UsingStatement, TryCast(node, UsingStatementSyntax))
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (2)
IOperation\IOperationTests_IUsingStatement.vb (2)
46Assert.Same(node.UsingStatement, op.Resources.Syntax) 898Dim node = tree.GetRoot().DescendantNodes().OfType(Of UsingBlockSyntax).Single().UsingStatement