18 references to LockKeyword
Microsoft.CodeAnalysis.CSharp (7)
Parser\LanguageParser.cs (5)
7956case SyntaxKind.LockKeyword: 8773case SyntaxKind.LockKeyword: 9604Debug.Assert(this.CurrentToken.Kind == SyntaxKind.LockKeyword); 9607this.EatToken(SyntaxKind.LockKeyword), 10622case 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)
2631token.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)
419=> 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()); 2396Assert.Equal(SyntaxKind.LockKeyword, node.LockKeyword.Kind); 10635=> SyntaxFactory.LockStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Token(SyntaxKind.LockKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock()); 12612Assert.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)
2631token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.LockKeyword))