26 references to SyncLockStatement
Microsoft.CodeAnalysis.VisualBasic (12)
Binding\Binder_Statements.vb (1)
4698Dim lockExpression As BoundExpression = BindRValue(node.SyncLockStatement.Expression, diagnostics)
Generated\Syntax.xml.Main.Generated.vb (2)
2764Dim newSyncLockStatement = DirectCast(Visit(node.SyncLockStatement), SyncLockStatementSyntax) 2765If node.SyncLockStatement IsNot newSyncLockStatement Then anyChanges = True
Generated\Syntax.xml.Syntax.Generated.vb (4)
13067return Update(Me.SyncLockStatement, statements, Me.EndSyncLockStatement) 13089return Update(Me.SyncLockStatement, Me.Statements, endSyncLockStatement) 13108Return Me.SyncLockStatement 13141If syncLockStatement IsNot Me.SyncLockStatement OrElse statements <> Me.Statements OrElse endSyncLockStatement IsNot Me.EndSyncLockStatement Then
Lowering\Instrumentation\DebugInfoInjector.vb (1)
160Return New BoundSequencePoint(DirectCast(original.Syntax, SyncLockBlockSyntax).SyncLockStatement, MyBase.CreateSyncLockStatementPrologue(original))
Lowering\LocalRewriter\LocalRewriter_SyncLock.vb (1)
50Dim tempLockObjectLocal As LocalSymbol = New SynthesizedLocal(Me._currentMethodOrLambda, objectType, SynthesizedLocalKind.Lock, syntaxNode.SyncLockStatement)
Semantics\StatementSyntaxWalker.vb (1)
125Visit(node.SyncLockStatement)
Syntax\SyntaxFacts.vb (1)
418beginStatement = syncBlock.SyncLockStatement
Syntax\SyntaxNormalizer.vb (1)
915AddLinebreaksAfterTokenIfNeeded(node.SyncLockStatement.GetLastToken(), 1)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
NodeBasedFormattingRule.vb (1)
391[sync].SyncLockStatement.GetLastToken().GetNextToken(includeZeroWidth:=True),
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
LineCommit\ContainingStatementInfo.MatchingStatementsVisitor.vb (1)
89Return New StatementSyntax() {node.SyncLockStatement, node.EndSyncLockStatement}
Microsoft.CodeAnalysis.VisualBasic.Features (9)
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (1)
139(Function(n As SyncLockBlockSyntax) n.SyncLockStatement),
EditAndContinue\SyntaxComparer.vb (2)
1011distance = ComputeWeightedDistance(leftLock.SyncLockStatement.Expression, leftLock.Statements, rightLock.SyncLockStatement.Expression, rightLock.Statements)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (3)
1653Return DirectCast(node, SyncLockBlockSyntax).SyncLockStatement.Span 2811areEquivalent:=Function(n1, n2) AreEquivalentIgnoringLambdaBodies(n1.SyncLockStatement.Expression, n2.SyncLockStatement.Expression),
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.CallSiteContainerRewriter.vb (1)
162Return node.WithSyncLockStatement(ReplaceStatementIfNeeded(node.SyncLockStatement)).
Highlighting\KeywordHighlighters\SyncLockBlockHighlighter.vb (1)
29highlights.Add(.SyncLockStatement.SyncLockKeyword.Span)
Structure\Providers\SyncLockBlockStructureProvider.vb (1)
20node, node.SyncLockStatement, autoCollapse:=False,
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.vb (2)
19417Assert.NotNull(objectUnderTest.syncLockStatement) 19419Dim withObj = objectUnderTest.WithSyncLockStatement(objectUnderTest.SyncLockStatement).WithStatements(objectUnderTest.Statements).WithEndSyncLockStatement(objectUnderTest.EndSyncLockStatement)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Formatting\Rules\NodeBasedFormattingRule.vb (1)
391[sync].SyncLockStatement.GetLastToken().GetNextToken(includeZeroWidth:=True),