18 references to LockKeyword
Microsoft.CodeAnalysis.CSharp (7)
Parser\LanguageParser.cs (5)
7408case SyntaxKind.LockKeyword: 8219case SyntaxKind.LockKeyword: 9007Debug.Assert(this.CurrentToken.Kind == SyntaxKind.LockKeyword); 9010this.EatToken(SyntaxKind.LockKeyword), 10006case SyntaxKind.LockKeyword:
Syntax\SyntaxKindFacts.cs (2)
885return SyntaxKind.LockKeyword; 1531case SyntaxKind.LockKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
SpacingFormattingRule.cs (1)
158previousKind == SyntaxKind.UsingKeyword || previousKind == SyntaxKind.WhenKeyword || previousKind == SyntaxKind.LockKeyword ||
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
2645token.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)
407=> 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()); 2335Assert.Equal(SyntaxKind.LockKeyword, node.LockKeyword.Kind); 10383=> SyntaxFactory.LockStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Token(SyntaxKind.LockKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock()); 12311Assert.Equal(SyntaxKind.LockKeyword, node.LockKeyword.Kind());
Parsing\StatementAttributeParsingTests.cs (1)
2129N(SyntaxKind.LockKeyword);
Parsing\StatementParsingTests.cs (1)
2107Assert.Equal(SyntaxKind.LockKeyword, ls.LockKeyword.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
2645token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.LockKeyword))
SpacingFormattingRule.cs (1)
158previousKind == SyntaxKind.UsingKeyword || previousKind == SyntaxKind.WhenKeyword || previousKind == SyntaxKind.LockKeyword ||