18 references to LockKeyword
Microsoft.CodeAnalysis.CSharp (7)
Parser\LanguageParser.cs (5)
7983case SyntaxKind.LockKeyword: 8795case SyntaxKind.LockKeyword: 9575Debug.Assert(this.CurrentToken.Kind == SyntaxKind.LockKeyword); 9578this.EatToken(SyntaxKind.LockKeyword), 10592case SyntaxKind.LockKeyword:
Syntax\SyntaxKindFacts.cs (2)
913return SyntaxKind.LockKeyword; 1567case SyntaxKind.LockKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
156previousKind == SyntaxKind.UsingKeyword || previousKind == SyntaxKind.WhenKeyword || previousKind == SyntaxKind.LockKeyword ||
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2625token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.LockKeyword))
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\LockKeywordRecommender.cs (1)
13: base(SyntaxKind.LockKeyword)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Generated\Syntax.Test.xml.Generated.cs (4)
416=> InternalSyntaxFactory.LockStatement(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.LockKeyword), InternalSyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock()); 2383Assert.Equal(SyntaxKind.LockKeyword, node.LockKeyword.Kind); 10593=> SyntaxFactory.LockStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Token(SyntaxKind.LockKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock()); 12560Assert.Equal(SyntaxKind.LockKeyword, node.LockKeyword.Kind());
Parsing\StatementAttributeParsingTests.cs (1)
2130N(SyntaxKind.LockKeyword);
Parsing\StatementParsingTests.cs (1)
2107Assert.Equal(SyntaxKind.LockKeyword, ls.LockKeyword.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
156previousKind == SyntaxKind.UsingKeyword || previousKind == SyntaxKind.WhenKeyword || previousKind == SyntaxKind.LockKeyword ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2625token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.LockKeyword))