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