15 references to LockKeyword
Microsoft.CodeAnalysis.CSharp (9)
Lowering\Instrumentation\DebugInfoInjector.cs (1)
399
TextSpan.FromBounds(lockSyntax.
LockKeyword
.SpanStart, lockSyntax.CloseParenToken.Span.End));
Syntax.xml.Main.Generated.cs (1)
1912
=> 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"));
Syntax.xml.Syntax.Generated.cs (6)
8272
if (attributeLists != this.AttributeLists || lockKeyword != this.
LockKeyword
|| openParenToken != this.OpenParenToken || expression != this.Expression || closeParenToken != this.CloseParenToken || statement != this.Statement)
8283
public new LockStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.
LockKeyword
, this.OpenParenToken, this.Expression, this.CloseParenToken, this.Statement);
8285
public LockStatementSyntax WithOpenParenToken(SyntaxToken openParenToken) => Update(this.AttributeLists, this.
LockKeyword
, openParenToken, this.Expression, this.CloseParenToken, this.Statement);
8286
public LockStatementSyntax WithExpression(ExpressionSyntax expression) => Update(this.AttributeLists, this.
LockKeyword
, this.OpenParenToken, expression, this.CloseParenToken, this.Statement);
8287
public LockStatementSyntax WithCloseParenToken(SyntaxToken closeParenToken) => Update(this.AttributeLists, this.
LockKeyword
, this.OpenParenToken, this.Expression, closeParenToken, this.Statement);
8288
public LockStatementSyntax WithStatement(StatementSyntax statement) => Update(this.AttributeLists, this.
LockKeyword
, this.OpenParenToken, this.Expression, this.CloseParenToken, statement);
Syntax\LookupPosition.cs (1)
347
return ((LockStatementSyntax)statement).
LockKeyword
;
Microsoft.CodeAnalysis.CSharp.Features (2)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1771
return TextSpan.FromBounds(lockStatement.
LockKeyword
.SpanStart, lockStatement.CloseParenToken.Span.End);
Highlighting\KeywordHighlighters\LockStatementHighlighter.cs (1)
28
=> highlights.Add(lockStatement.
LockKeyword
.Span);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Generated\Syntax.Test.xml.Generated.cs (2)
12755
Assert.Equal(SyntaxKind.LockKeyword, node.
LockKeyword
.Kind());
12760
var newNode = node.WithAttributeLists(node.AttributeLists).WithLockKeyword(node.
LockKeyword
).WithOpenParenToken(node.OpenParenToken).WithExpression(node.Expression).WithCloseParenToken(node.CloseParenToken).WithStatement(node.Statement);
Parsing\StatementParsingTests.cs (2)
2106
Assert.NotEqual(default, ls.
LockKeyword
);
2107
Assert.Equal(SyntaxKind.LockKeyword, ls.
LockKeyword
.Kind());