233 references to InKeyword
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
168previous.IsKind(SyntaxKind.InKeyword) ||
Microsoft.CodeAnalysis.CSharp (67)
Binder\Binder_Expressions.cs (1)
3193if (argumentSyntax.RefKindKeyword.IsKind(SyntaxKind.InKeyword))
CSharpExtensions.cs (1)
252case SyntaxKind.InKeyword: return VarianceKind.In;
Parser\DocumentationCommentParser.cs (2)
1300case SyntaxKind.InKeyword: 1321case SyntaxKind.InKeyword:
Parser\LanguageParser.cs (19)
1477Debug.Assert(modTok.Kind is not (SyntaxKind.OutKeyword or SyntaxKind.InKeyword)); 4953case SyntaxKind.InKeyword: 4968if (this.CurrentToken.Kind is SyntaxKind.RefKeyword or SyntaxKind.OutKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword) 4985while (this.CurrentToken.Kind is SyntaxKind.RefKeyword or SyntaxKind.OutKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword) 6033if (this.CurrentToken.Kind is SyntaxKind.OpenBracketToken or SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 6061this.CurrentToken.Kind is SyntaxKind.InKeyword or SyntaxKind.OutKeyword ? EatToken() : null, 6584var varianceToken = this.CurrentToken.Kind is SyntaxKind.InKeyword or SyntaxKind.OutKeyword 9449this.EatToken().Kind == SyntaxKind.InKeyword) 9634var @in = this.EatToken(SyntaxKind.InKeyword, ErrorCode.ERR_InExpected); 10443if (this.CurrentToken.Kind is (SyntaxKind.RefKeyword or SyntaxKind.OutKeyword or SyntaxKind.InKeyword)) 12393case SyntaxKind.InKeyword: 13728case SyntaxKind.InKeyword: 13880if (pk2 == SyntaxKind.InKeyword) 13916return this.ScanType() != ScanTypeFlags.NotType && this.CurrentToken.Kind is SyntaxKind.IdentifierToken or SyntaxKind.InKeyword; 13983var type = this.PeekToken(1).Kind != SyntaxKind.InKeyword 13988if (this.PeekToken(1).ContextualKind == SyntaxKind.InKeyword && 14007this.EatToken(SyntaxKind.InKeyword), 14016type: this.PeekToken(1).Kind != SyntaxKind.InKeyword 14020inKeyword: this.EatToken(SyntaxKind.InKeyword),
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
1147AddKeyword(SyntaxKind.InKeyword);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
813AddKeyword(SyntaxKind.InKeyword);
Symbols\RefKindExtensions.cs (1)
29case SyntaxKind.InKeyword:
Symbols\Source\ParameterHelpers.cs (6)
666addERR_BadParameterModifiers(diagnostics, modifier, SyntaxKind.InKeyword); 697addERR_BadParameterModifiers(diagnostics, modifier, SyntaxKind.InKeyword); 724addERR_BadParameterModifiers(diagnostics, modifier, SyntaxKind.InKeyword); 746case SyntaxKind.InKeyword: 768addERR_ParamsCantBeWithModifier(diagnostics, modifier, SyntaxKind.InKeyword); 1151case SyntaxKind.InKeyword:
Syntax.xml.Internal.Generated.cs (14)
29400case SyntaxKind.InKeyword: 29848if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 29878if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 31002if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 31030if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 31635case SyntaxKind.InKeyword: 32886case SyntaxKind.InKeyword: 34767case SyntaxKind.InKeyword: 35215if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 35245if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 36369if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 36397if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 37002case SyntaxKind.InKeyword: 38253case SyntaxKind.InKeyword:
Syntax.xml.Main.Generated.cs (18)
3160case SyntaxKind.InKeyword: 3463if (inKeyword.Kind() != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 3470=> SyntaxFactory.FromClause(SyntaxFactory.Token(SyntaxKind.FromKeyword), type, identifier, SyntaxFactory.Token(SyntaxKind.InKeyword), expression); 3474=> SyntaxFactory.FromClause(SyntaxFactory.Token(SyntaxKind.FromKeyword), default, identifier, SyntaxFactory.Token(SyntaxKind.InKeyword), expression); 3478=> SyntaxFactory.FromClause(SyntaxFactory.Token(SyntaxKind.FromKeyword), default, SyntaxFactory.Identifier(identifier), SyntaxFactory.Token(SyntaxKind.InKeyword), expression); 3503if (inKeyword.Kind() != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 3514=> SyntaxFactory.JoinClause(SyntaxFactory.Token(SyntaxKind.JoinKeyword), type, identifier, SyntaxFactory.Token(SyntaxKind.InKeyword), inExpression, SyntaxFactory.Token(SyntaxKind.OnKeyword), leftExpression, SyntaxFactory.Token(SyntaxKind.EqualsKeyword), rightExpression, into); 3518=> SyntaxFactory.JoinClause(SyntaxFactory.Token(SyntaxKind.JoinKeyword), default, identifier, SyntaxFactory.Token(SyntaxKind.InKeyword), inExpression, SyntaxFactory.Token(SyntaxKind.OnKeyword), leftExpression, SyntaxFactory.Token(SyntaxKind.EqualsKeyword), rightExpression, default); 3522=> SyntaxFactory.JoinClause(SyntaxFactory.Token(SyntaxKind.JoinKeyword), default, SyntaxFactory.Identifier(identifier), SyntaxFactory.Token(SyntaxKind.InKeyword), inExpression, SyntaxFactory.Token(SyntaxKind.OnKeyword), leftExpression, SyntaxFactory.Token(SyntaxKind.EqualsKeyword), rightExpression, default); 4362if (inKeyword.Kind() != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 4371=> SyntaxFactory.ForEachStatement(attributeLists, default, SyntaxFactory.Token(SyntaxKind.ForEachKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), type, identifier, SyntaxFactory.Token(SyntaxKind.InKeyword), expression, SyntaxFactory.Token(SyntaxKind.CloseParenToken), statement); 4375=> SyntaxFactory.ForEachStatement(default, default, SyntaxFactory.Token(SyntaxKind.ForEachKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), type, identifier, SyntaxFactory.Token(SyntaxKind.InKeyword), expression, SyntaxFactory.Token(SyntaxKind.CloseParenToken), statement); 4379=> SyntaxFactory.ForEachStatement(default, default, SyntaxFactory.Token(SyntaxKind.ForEachKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), type, SyntaxFactory.Identifier(identifier), SyntaxFactory.Token(SyntaxKind.InKeyword), expression, SyntaxFactory.Token(SyntaxKind.CloseParenToken), statement); 4393if (inKeyword.Kind() != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 4402=> SyntaxFactory.ForEachVariableStatement(attributeLists, default, SyntaxFactory.Token(SyntaxKind.ForEachKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), variable, SyntaxFactory.Token(SyntaxKind.InKeyword), expression, SyntaxFactory.Token(SyntaxKind.CloseParenToken), statement); 4406=> SyntaxFactory.ForEachVariableStatement(default, default, SyntaxFactory.Token(SyntaxKind.ForEachKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), variable, SyntaxFactory.Token(SyntaxKind.InKeyword), expression, SyntaxFactory.Token(SyntaxKind.CloseParenToken), statement); 4951case SyntaxKind.InKeyword: 6019case SyntaxKind.InKeyword:
Syntax\SyntaxKindFacts.cs (3)
996return SyntaxKind.InKeyword; 1688case SyntaxKind.InKeyword: 1885return kind == SyntaxKind.OutKeyword || kind == SyntaxKind.InKeyword;
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
49public static readonly SyntaxToken InKeyword = Token(SyntaxKind.InKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArgumentSyntaxExtensions.cs (1)
29SyntaxKind.InKeyword => RefKind.In,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
224=> expression?.Parent is ArgumentSyntax { RefKindKeyword: SyntaxToken(SyntaxKind.InKeyword) };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
99case SyntaxKind.InKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
377=> token.Kind() == SyntaxKind.InKeyword && token.Parent is FromClauseSyntax { Expression: QueryExpressionSyntax };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (2)
285ForEachVariableStatementSyntax _ when token.Kind() == SyntaxKind.InKeyword => GetDeconstructionForEachMethods(semanticModel, node).As<ISymbol>(), 341return token.IsKind(SyntaxKind.InKeyword) ? queryInfo.CastInfo.GetBestOrAllSymbols() : queryInfo.OperationInfo.GetBestOrAllSymbols();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
285case SyntaxKind.InKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
267var inKeyword = current.Modifiers.FirstOrDefault(t => t.Kind() == SyntaxKind.InKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
487if (targetToken.IsKind(SyntaxKind.InKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (4)
1108if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword or SyntaxKind.OutKeyword or SyntaxKind.ThisKeyword or SyntaxKind.ParamsKeyword or SyntaxKind.ScopedKeyword) 1288if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 2446if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 2547if (token.IsKind(SyntaxKind.InKeyword))
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\InKeywordRecommender.cs (1)
13internal sealed class InKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.InKeyword)
Completion\KeywordRecommenders\ThisKeywordRecommender.cs (1)
47or SyntaxKind.InKeyword
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
267var inKeyword = current.Modifiers.FirstOrDefault(t => t.Kind() == SyntaxKind.InKeyword);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
DocumentationComments\CrefTests.cs (1)
6669Assert.Equal(SyntaxKind.InKeyword, parameter.RefKindKeyword.Kind());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (114)
Generated\Syntax.Test.xml.Generated.cs (16)
233=> InternalSyntaxFactory.FromClause(InternalSyntaxFactory.Token(SyntaxKind.FromKeyword), null, InternalSyntaxFactory.Identifier("Identifier"), InternalSyntaxFactory.Token(SyntaxKind.InKeyword), GenerateIdentifierName()); 239=> InternalSyntaxFactory.JoinClause(InternalSyntaxFactory.Token(SyntaxKind.JoinKeyword), null, InternalSyntaxFactory.Identifier("Identifier"), InternalSyntaxFactory.Token(SyntaxKind.InKeyword), GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.OnKeyword), GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.EqualsKeyword), GenerateIdentifierName(), null); 401=> InternalSyntaxFactory.ForEachStatement(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), null, InternalSyntaxFactory.Token(SyntaxKind.ForEachKeyword), InternalSyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), InternalSyntaxFactory.Identifier("Identifier"), InternalSyntaxFactory.Token(SyntaxKind.InKeyword), GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock()); 404=> InternalSyntaxFactory.ForEachVariableStatement(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), null, InternalSyntaxFactory.Token(SyntaxKind.ForEachKeyword), InternalSyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.InKeyword), GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock()); 1625Assert.Equal(SyntaxKind.InKeyword, node.InKeyword.Kind); 1652Assert.Equal(SyntaxKind.InKeyword, node.InKeyword.Kind); 2317Assert.Equal(SyntaxKind.InKeyword, node.InKeyword.Kind); 2335Assert.Equal(SyntaxKind.InKeyword, node.InKeyword.Kind); 10583=> SyntaxFactory.FromClause(SyntaxFactory.Token(SyntaxKind.FromKeyword), default(TypeSyntax), SyntaxFactory.Identifier("Identifier"), SyntaxFactory.Token(SyntaxKind.InKeyword), GenerateIdentifierName()); 10589=> SyntaxFactory.JoinClause(SyntaxFactory.Token(SyntaxKind.JoinKeyword), default(TypeSyntax), SyntaxFactory.Identifier("Identifier"), SyntaxFactory.Token(SyntaxKind.InKeyword), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.OnKeyword), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.EqualsKeyword), GenerateIdentifierName(), default(JoinIntoClauseSyntax)); 10751=> SyntaxFactory.ForEachStatement(new SyntaxList<AttributeListSyntax>(), default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.ForEachKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.Identifier("Identifier"), SyntaxFactory.Token(SyntaxKind.InKeyword), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock()); 10754=> SyntaxFactory.ForEachVariableStatement(new SyntaxList<AttributeListSyntax>(), default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.ForEachKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.InKeyword), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock()); 11975Assert.Equal(SyntaxKind.InKeyword, node.InKeyword.Kind()); 12002Assert.Equal(SyntaxKind.InKeyword, node.InKeyword.Kind()); 12667Assert.Equal(SyntaxKind.InKeyword, node.InKeyword.Kind()); 12685Assert.Equal(SyntaxKind.InKeyword, node.InKeyword.Kind());
Parsing\AsyncStreamsParsingTests.cs (3)
320N(SyntaxKind.InKeyword); 426M(SyntaxKind.InKeyword); 529N(SyntaxKind.InKeyword);
Parsing\CollectionExpressionParsingTests.cs (5)
2170N(SyntaxKind.InKeyword); 2232N(SyntaxKind.InKeyword); 2278N(SyntaxKind.InKeyword); 2306N(SyntaxKind.InKeyword); 5773N(SyntaxKind.InKeyword);
Parsing\CrefParsingTests.cs (1)
2541N(SyntaxKind.InKeyword);
Parsing\DeclarationExpressionTests.cs (12)
417N(SyntaxKind.InKeyword); 445N(SyntaxKind.InKeyword); 502N(SyntaxKind.InKeyword); 559N(SyntaxKind.InKeyword); 605N(SyntaxKind.InKeyword); 649N(SyntaxKind.InKeyword); 693N(SyntaxKind.InKeyword); 760N(SyntaxKind.InKeyword); 821N(SyntaxKind.InKeyword); 852N(SyntaxKind.InKeyword); 879N(SyntaxKind.InKeyword); 918N(SyntaxKind.InKeyword);
Parsing\DeclarationParsingTests.cs (2)
13116N(SyntaxKind.InKeyword); 13543N(SyntaxKind.InKeyword);
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (1)
4969M(SyntaxKind.InKeyword);
Parsing\DeclarationScopeParsingTests.cs (31)
107N(SyntaxKind.InKeyword); 194N(SyntaxKind.InKeyword); 968N(SyntaxKind.InKeyword); 9684N(SyntaxKind.InKeyword); 9722N(SyntaxKind.InKeyword); 9781M(SyntaxKind.InKeyword); 9824N(SyntaxKind.InKeyword); 9885M(SyntaxKind.InKeyword); 9959M(SyntaxKind.InKeyword); 10009N(SyntaxKind.InKeyword); 10061M(SyntaxKind.InKeyword); 10107N(SyntaxKind.InKeyword); 10162M(SyntaxKind.InKeyword); 10213N(SyntaxKind.InKeyword); 10267M(SyntaxKind.InKeyword); 10321N(SyntaxKind.InKeyword); 10363N(SyntaxKind.InKeyword); 10406N(SyntaxKind.InKeyword); 10448N(SyntaxKind.InKeyword); 10486N(SyntaxKind.InKeyword); 10524N(SyntaxKind.InKeyword); 10566N(SyntaxKind.InKeyword); 10609N(SyntaxKind.InKeyword); 10643N(SyntaxKind.InKeyword); 10681N(SyntaxKind.InKeyword); 10731M(SyntaxKind.InKeyword); 10789M(SyntaxKind.InKeyword); 10843M(SyntaxKind.InKeyword); 10951N(SyntaxKind.InKeyword); 11005N(SyntaxKind.InKeyword); 11060M(SyntaxKind.InKeyword);
Parsing\DeconstructionTests.cs (3)
1475N(SyntaxKind.InKeyword); 1555N(SyntaxKind.InKeyword); 1700N(SyntaxKind.InKeyword);
Parsing\ExpressionParsingTests.cs (7)
4785N(SyntaxKind.InKeyword); 6897N(SyntaxKind.InKeyword); 6959N(SyntaxKind.InKeyword); 7044M(SyntaxKind.InKeyword); 7348N(SyntaxKind.InKeyword); 7390N(SyntaxKind.InKeyword); 7444N(SyntaxKind.InKeyword);
Parsing\ForStatementParsingTest.cs (1)
3731N(SyntaxKind.InKeyword);
Parsing\FunctionPointerTests.cs (2)
825N(SyntaxKind.InKeyword); 2968N(SyntaxKind.InKeyword);
Parsing\LambdaReturnTypeParsingTests.cs (5)
3565N(SyntaxKind.InKeyword); 3745N(SyntaxKind.InKeyword); 3914N(SyntaxKind.InKeyword); 4130N(SyntaxKind.InKeyword); 4226N(SyntaxKind.InKeyword);
Parsing\NullableParsingTests.cs (1)
1241N(SyntaxKind.InKeyword);
Parsing\ParserErrorMessageTests.cs (7)
3768Assert.Equal(SyntaxKind.InKeyword, methodDeclaration.ParameterList.Parameters.Single().Modifiers.Single().Kind()); 3771Assert.Equal(SyntaxKind.InKeyword, delegateDeclaration.ParameterList.Parameters.Single().Modifiers.Single().Kind()); 3774Assert.Equal(SyntaxKind.InKeyword, localFunctionStatement.ParameterList.Parameters.Single().Modifiers.Single().Kind()); 3777Assert.Equal(SyntaxKind.InKeyword, lambdaExpression.ParameterList.Parameters.Single().Modifiers.Single().Kind()); 3780Assert.Equal(SyntaxKind.InKeyword, anonymousMethodExpression.ParameterList.Parameters.Single().Modifiers.Single().Kind()); 3783Assert.Equal(SyntaxKind.InKeyword, indexerDeclaration.ParameterList.Parameters.Single().Modifiers.Single().Kind()); 3786Assert.Equal(SyntaxKind.InKeyword, operatorDeclaration.ParameterList.Parameters.Single().Modifiers.Single().Kind());
Parsing\PatternParsingTests.cs (1)
352N(SyntaxKind.InKeyword);
Parsing\RefReadonlyTests.cs (1)
1344N(SyntaxKind.InKeyword);
Parsing\ScriptParsingTests.cs (8)
8674M(SyntaxKind.InKeyword); 8831M(SyntaxKind.InKeyword); 9356M(SyntaxKind.InKeyword); 9416M(SyntaxKind.InKeyword); 9476M(SyntaxKind.InKeyword); 9544M(SyntaxKind.InKeyword); 9592N(SyntaxKind.InKeyword); 9655N(SyntaxKind.InKeyword);
Parsing\StatementAttributeParsingTests.cs (3)
1164N(SyntaxKind.InKeyword); 1298N(SyntaxKind.InKeyword); 5688N(SyntaxKind.InKeyword);
Parsing\StatementParsingTests.cs (4)
1940Assert.Equal(SyntaxKind.InKeyword, fs.InKeyword.Kind()); 1973Assert.Equal(SyntaxKind.InKeyword, fs.InKeyword.Kind()); 2004Assert.Equal(SyntaxKind.InKeyword, fs.InKeyword.Kind()); 3388Assert.Equal(SyntaxKind.InKeyword, fs.InKeyword.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (15)
Classification\ClassificationHelpers.cs (1)
85case SyntaxKind.InKeyword: // Include InKeyword as it can be part of an ForEachStatement
Simplification\Reducers\CSharpEscapingReducer.cs (1)
77case SyntaxKind.InKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
49public static readonly SyntaxToken InKeyword = Token(SyntaxKind.InKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArgumentSyntaxExtensions.cs (1)
29SyntaxKind.InKeyword => RefKind.In,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
224=> expression?.Parent is ArgumentSyntax { RefKindKeyword: SyntaxToken(SyntaxKind.InKeyword) };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
99case SyntaxKind.InKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
377=> token.Kind() == SyntaxKind.InKeyword && token.Parent is FromClauseSyntax { Expression: QueryExpressionSyntax };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (2)
285ForEachVariableStatementSyntax _ when token.Kind() == SyntaxKind.InKeyword => GetDeconstructionForEachMethods(semanticModel, node).As<ISymbol>(), 341return token.IsKind(SyntaxKind.InKeyword) ? queryInfo.CastInfo.GetBestOrAllSymbols() : queryInfo.OperationInfo.GetBestOrAllSymbols();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
285case SyntaxKind.InKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
487if (targetToken.IsKind(SyntaxKind.InKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (4)
1108if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword or SyntaxKind.OutKeyword or SyntaxKind.ThisKeyword or SyntaxKind.ParamsKeyword or SyntaxKind.ScopedKeyword) 1288if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 2446if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 2547if (token.IsKind(SyntaxKind.InKeyword))
Microsoft.Interop.SourceGeneration (4)
Marshalling\MarshallerHelpers.cs (3)
400tokens = tokens.Add(Token(SyntaxKind.InKeyword)); 431RefKind.In => Token(SyntaxKind.InKeyword), 434RefKind.RefReadOnlyParameter => Token(SyntaxKind.InKeyword),
Utils\SyntaxFactoryExtensions.cs (1)
75=> Argument(null, Token(SyntaxKind.InKeyword), expression);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
464if (token.IsKind(SyntaxKind.InKeyword))
Roslyn.Diagnostics.CSharp.Analyzers (13)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
49public static readonly SyntaxToken InKeyword = Token(SyntaxKind.InKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArgumentSyntaxExtensions.cs (1)
29SyntaxKind.InKeyword => RefKind.In,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
224=> expression?.Parent is ArgumentSyntax { RefKindKeyword: SyntaxToken(SyntaxKind.InKeyword) };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
99case SyntaxKind.InKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
377=> token.Kind() == SyntaxKind.InKeyword && token.Parent is FromClauseSyntax { Expression: QueryExpressionSyntax };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (2)
285ForEachVariableStatementSyntax _ when token.Kind() == SyntaxKind.InKeyword => GetDeconstructionForEachMethods(semanticModel, node).As<ISymbol>(), 341return token.IsKind(SyntaxKind.InKeyword) ? queryInfo.CastInfo.GetBestOrAllSymbols() : queryInfo.OperationInfo.GetBestOrAllSymbols();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
285case SyntaxKind.InKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
487if (targetToken.IsKind(SyntaxKind.InKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (4)
1108if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword or SyntaxKind.OutKeyword or SyntaxKind.ThisKeyword or SyntaxKind.ParamsKeyword or SyntaxKind.ScopedKeyword) 1288if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 2446if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 2547if (token.IsKind(SyntaxKind.InKeyword))