28 references to Statement
Microsoft.CodeAnalysis.CSharp (10)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1924
=> node.Update(VisitList(node.AttributeLists), VisitToken(node.LockKeyword), VisitToken(node.OpenParenToken), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), VisitToken(node.CloseParenToken), (StatementSyntax?)Visit(node.
Statement
) ?? throw new ArgumentNullException("statement"));
_generated\2\Syntax.xml.Syntax.Generated.cs (6)
8318
if (attributeLists != this.AttributeLists || lockKeyword != this.LockKeyword || openParenToken != this.OpenParenToken || expression != this.Expression || closeParenToken != this.CloseParenToken || statement != this.
Statement
)
8329
public new LockStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.LockKeyword, this.OpenParenToken, this.Expression, this.CloseParenToken, this.
Statement
);
8330
public LockStatementSyntax WithLockKeyword(SyntaxToken lockKeyword) => Update(this.AttributeLists, lockKeyword, this.OpenParenToken, this.Expression, this.CloseParenToken, this.
Statement
);
8331
public LockStatementSyntax WithOpenParenToken(SyntaxToken openParenToken) => Update(this.AttributeLists, this.LockKeyword, openParenToken, this.Expression, this.CloseParenToken, this.
Statement
);
8332
public LockStatementSyntax WithExpression(ExpressionSyntax expression) => Update(this.AttributeLists, this.LockKeyword, this.OpenParenToken, expression, this.CloseParenToken, this.
Statement
);
8333
public LockStatementSyntax WithCloseParenToken(SyntaxToken closeParenToken) => Update(this.AttributeLists, this.LockKeyword, this.OpenParenToken, this.Expression, closeParenToken, this.
Statement
);
Binder\LocalBinderFactory.cs (1)
719
StatementSyntax statement = node.
Statement
;
Binder\LockBinder.cs (1)
73
BoundStatement stmt = originalBinder.BindPossibleEmbeddedStatement(_syntax.
Statement
, diagnostics);
Syntax\LookupPosition.cs (1)
410
return GetFirstExcludedToken(((LockStatementSyntax)statement).
Statement
);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
140
LockStatementSyntax n => n.
Statement
,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (3)
502
if (lockStatement.
Statement
!= null &&
503
!lockStatement.
Statement
.IsMissing &&
504
lockStatement.
Statement
.Span.Contains(position))
Microsoft.CodeAnalysis.CSharp.Features (6)
Debugging\CSharpProximityExpressionsService.Worker.cs (1)
268
AddLastStatementOfConstruct((statement as LockStatementSyntax).
Statement
);
EditAndContinue\SyntaxComparer.cs (2)
858
distance = ComputeWeightedDistance(leftLock.Expression, leftLock.
Statement
, rightLock.Expression, rightLock.
Statement
);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (1)
186
.WithStatement(ReplaceStatementIfNeeded(node.
Statement
));
Snippets\CSharpLockSnippetProvider.cs (2)
38
static s => (BlockSyntax)s.
Statement
,
45
static s => (BlockSyntax)s.
Statement
,
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
140
LockStatementSyntax n => n.
Statement
,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (3)
502
if (lockStatement.
Statement
!= null &&
503
!lockStatement.
Statement
.IsMissing &&
504
lockStatement.
Statement
.Span.Contains(position))
Roslyn.Diagnostics.CSharp.Analyzers (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
140
LockStatementSyntax n => n.
Statement
,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (3)
502
if (lockStatement.
Statement
!= null &&
503
!lockStatement.
Statement
.IsMissing &&
504
lockStatement.
Statement
.Span.Contains(position))