4 instantiations of WithStatementSyntax
Microsoft.CodeAnalysis.VisualBasic (4)
Generated\Syntax.xml.Internal.Generated.vb (1)
19184Return new Microsoft.CodeAnalysis.VisualBasic.Syntax.WithStatementSyntax(Me, parent, startLocation)
Generated\Syntax.xml.Main.Generated.vb (2)
3676Return New WithStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newWithKeyword, newExpression) 24432Return New WithStatementSyntax(SyntaxKind.WithStatement, Nothing, Nothing, DirectCast(withKeyword.Node, InternalSyntax.KeywordSyntax), expression)
Generated\Syntax.xml.Syntax.Generated.vb (1)
20755Me.New(New Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.WithStatementSyntax(kind, errors, annotations, withKeyword, DirectCast(expression.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.ExpressionSyntax)), Nothing, 0)
40 references to WithStatementSyntax
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\ControlFlowGraphVerifier.cs (2)
586if (parent is WithStatementSyntax with && 1286if (((VisualBasic.Syntax.WithStatementSyntax)parent).Expression == syntax)
Microsoft.CodeAnalysis.VisualBasic (21)
Generated\Syntax.xml.Main.Generated.vb (9)
395Public Overridable Function VisitWithStatement(ByVal node As WithStatementSyntax) As TResult 1130Public Overridable Sub VisitWithStatement(ByVal node As WithStatementSyntax) 2781Dim newWithStatement = DirectCast(Visit(node.WithStatement), WithStatementSyntax) 3667Public Overrides Function VisitWithStatement(ByVal node As WithStatementSyntax) As SyntaxNode 12981Public Shared Function WithBlock(withStatement As WithStatementSyntax, statements As SyntaxList(of StatementSyntax), endWithStatement As EndBlockStatementSyntax) As WithBlockSyntax 13013Public Shared Function WithBlock(withStatement As WithStatementSyntax, statements As SyntaxList(of StatementSyntax)) As WithBlockSyntax 13025Public Shared Function WithBlock(withStatement As WithStatementSyntax) As WithBlockSyntax 24314Public Shared Function WithStatement(withKeyword As SyntaxToken, expression As ExpressionSyntax) As WithStatementSyntax 24444Public Shared Function WithStatement(expression As ExpressionSyntax) As WithStatementSyntax
Generated\Syntax.xml.Syntax.Generated.vb (8)
13167Friend _withStatement as WithStatementSyntax 13177Friend Sub New(ByVal kind As SyntaxKind, ByVal errors as DiagnosticInfo(), ByVal annotations as SyntaxAnnotation(), withStatement As WithStatementSyntax, statements As SyntaxNode, endWithStatement As EndBlockStatementSyntax) 13184Public ReadOnly Property WithStatement As WithStatementSyntax 13195Public Shadows Function WithWithStatement(withStatement as WithStatementSyntax) As WithBlockSyntax 13292Public Function Update(withStatement As WithStatementSyntax, statements As SyntaxList(of StatementSyntax), endWithStatement As EndBlockStatementSyntax) As WithBlockSyntax 20772Public Shadows Function WithWithKeyword(withKeyword as SyntaxToken) As WithStatementSyntax 20790Public Shadows Function WithExpression(expression as ExpressionSyntax) As WithStatementSyntax 20831Public Function Update(withKeyword As SyntaxToken, expression As ExpressionSyntax) As WithStatementSyntax
Lowering\WithExpressionRewriter.vb (2)
17Private ReadOnly _withSyntax As WithStatementSyntax 36Friend Sub New(withSyntax As WithStatementSyntax)
Syntax\SyntaxNodeExtensions.vb (1)
27Public Function ContainingWithStatement(node As VisualBasicSyntaxNode) As WithStatementSyntax
Syntax\SyntaxNormalizer.vb (1)
1264Public Overrides Function VisitWithStatement(node As WithStatementSyntax) As SyntaxNode
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (5)
ElasticTriviaFormattingRule.vb (1)
320IsBeginStatement(Of WithStatementSyntax, WithBlockSyntax)(currentStatement) Then
SpeculationAnalyzer.vb (4)
387Dim originalWithStatement = DirectCast(currentOriginalNode, WithStatementSyntax) 388Dim newWithStatement = DirectCast(currentReplacedNode, WithStatementSyntax) 432Private Function ReplacementBreaksWithStatement(originalWithStatement As WithStatementSyntax, replacedWithStatement As WithStatementSyntax) As Boolean
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
SyntaxTreeExtensions.vb (1)
435targetToken.IsChildToken(Of WithStatementSyntax)(Function(withStatement) withStatement.WithKeyword) OrElse
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
EndConstructGeneration\EndConstructStatementVisitor.vb (1)
264Public Overrides Function VisitWithStatement(node As WithStatementSyntax) As AbstractEndConstructResult
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
FlowAnalysis\RegionAnalysisTests.vb (2)
4948Dim stmtSyntaxNode = DirectCast(tree.GetCompilationUnitRoot().FindToken(tree.GetRoot.ToFullString().IndexOf("With New Object()", StringComparison.Ordinal)).Parent, WithStatementSyntax) 4975Dim withStatement = DirectCast(tree.GetCompilationUnitRoot().FindToken(tree.GetRoot.ToFullString().IndexOf("With tableauEmission(t)", StringComparison.Ordinal)).Parent, WithStatementSyntax)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Generated\Syntax.Test.xml.Generated.vb (1)
14095Private Shared Function GenerateRedWithStatement() As WithStatementSyntax
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
LocalVariableDeclaratorsCollector.vb (1)
40Public Overrides Sub VisitWithStatement(node As WithStatementSyntax)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (6)
Formatting\Rules\ElasticTriviaFormattingRule.vb (1)
320IsBeginStatement(Of WithStatementSyntax, WithBlockSyntax)(currentStatement) Then
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb\SyntaxTreeExtensions.vb (1)
435targetToken.IsChildToken(Of WithStatementSyntax)(Function(withStatement) withStatement.WithKeyword) OrElse
SpeculationAnalyzer.vb (4)
387Dim originalWithStatement = DirectCast(currentOriginalNode, WithStatementSyntax) 388Dim newWithStatement = DirectCast(currentReplacedNode, WithStatementSyntax) 432Private Function ReplacementBreaksWithStatement(originalWithStatement As WithStatementSyntax, replacedWithStatement As WithStatementSyntax) As Boolean