154 references to Any
Microsoft.AspNetCore.App.Analyzers (2)
WebApplicationBuilder\PublicPartialProgramClassAnalyzer.cs (2)
41
&& modifiers.
Any
(SyntaxKind.PublicKeyword)
42
&& modifiers.
Any
(SyntaxKind.PartialKeyword)
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Flags.cs (1)
109
return !withoutUnsafe && modifiers.
Any
(SyntaxKind.UnsafeKeyword)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
464
return (baseMethodDeclarationSyntax.Modifiers.
Any
(SyntaxKind.StaticKeyword) ? WellKnownMemberNames.StaticConstructorName : WellKnownMemberNames.InstanceConstructorName);
Parser\LanguageParser.cs (2)
5148
if (mods.
Any
(SyntaxKind.FixedKeyword))
5153
if (mods.
Any
(SyntaxKind.ConstKeyword))
Microsoft.CodeAnalysis.CSharp.CodeStyle (18)
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (2)
58
if (!methodDeclaration.Modifiers.
Any
(SyntaxKind.StaticKeyword) ||
135
if (!member.Modifiers.
Any
(SyntaxKind.StaticKeyword))
src\Analyzers\CSharp\Analyzers\MakeAnonymousFunctionStatic\MakeAnonymousFunctionStaticDiagnosticAnalyzer.cs (1)
46
if (anonymousFunction.Modifiers.
Any
(SyntaxKind.StaticKeyword))
src\Analyzers\CSharp\Analyzers\MakeLocalFunctionStatic\MakeLocalFunctionStaticDiagnosticAnalyzer.cs (1)
39
if (localFunction.Modifiers.
Any
(SyntaxKind.StaticKeyword))
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
189
property.Modifiers.
Any
(SyntaxKind.ReadOnlyKeyword))
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (2)
76
if (anonymousFunction.Modifiers.
Any
(SyntaxKind.StaticKeyword))
84
if (wasAwaited != anonymousFunction.Modifiers.
Any
(SyntaxKind.AsyncKeyword))
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForLocalFunctionHelper.cs (1)
56
if (statement.Modifiers.
Any
(SyntaxKind.AsyncKeyword))
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForMethodsHelper.cs (1)
56
if (declaration.Modifiers.
Any
(SyntaxKind.AsyncKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (5)
330
m => m.GetModifiers().
Any
(SyntaxKind.UnsafeKeyword));
343
case LocalFunctionStatementSyntax localFunction when localFunction.Modifiers.
Any
(SyntaxKind.StaticKeyword):
346
case AnonymousFunctionExpressionSyntax anonymousFunction when anonymousFunction.Modifiers.
Any
(SyntaxKind.StaticKeyword):
350
return current.GetModifiers().
Any
(SyntaxKind.StaticKeyword);
353
return property.Modifiers.
Any
(SyntaxKind.StaticKeyword) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
236
modifiers.
Any
(SyntaxKind.PartialKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (3)
37
return ignoreDeclarationModifiers || !((MemberDeclarationSyntax)declaration).Modifiers.
Any
(SyntaxKind.FileKeyword);
55
return ignoreDeclarationModifiers || !((ConstructorDeclarationSyntax)declaration).Modifiers.
Any
(SyntaxKind.StaticKeyword);
77
if (method.Modifiers.
Any
(SyntaxKind.PartialKeyword))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (15)
src\Analyzers\CSharp\CodeFixes\ConvertToAsync\CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
87
if (!methodDeclaration.Modifiers.
Any
(SyntaxKind.AsyncKeyword))
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
37
if (typeDeclaration.Modifiers.
Any
(SyntaxKind.PartialKeyword))
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (2)
145
MethodDeclarationSyntax method => (method.ReturnType, method.Modifiers.
Any
(SyntaxKind.AsyncKeyword)),
148
LocalFunctionStatementSyntax localFunction => (localFunction.ReturnType, localFunction.Modifiers.
Any
(SyntaxKind.AsyncKeyword)),
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (1)
79
if (otherAccessor.Modifiers.
Any
(SyntaxKind.ReadOnlyKeyword))
src\Analyzers\CSharp\CodeFixes\MakeTypeAbstract\CSharpMakeTypeAbstractCodeFixProvider.cs (2)
51
!enclosingType.Modifiers.
Any
(SyntaxKind.AbstractKeyword) && !enclosingType.Modifiers.
Any
(SyntaxKind.StaticKeyword))
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
272
if (modifiers.
Any
(SyntaxKind.AsyncKeyword) || onYield)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\FieldGenerator.cs (6)
29
.Where(f => f.Modifiers.
Any
(SyntaxKind.ConstKeyword))
34
if (fieldDeclaration.Modifiers.
Any
(SyntaxKind.ConstKeyword))
40
.Where(f => f.Modifiers.
Any
(SyntaxKind.ReadOnlyKeyword))
44
.Where(f => !f.Modifiers.
Any
(SyntaxKind.ReadOnlyKeyword) && !f.Modifiers.
Any
(SyntaxKind.ConstKeyword))
49
return fieldDeclaration.Modifiers.
Any
(SyntaxKind.ReadOnlyKeyword)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
75
if (typeNode.Modifiers.
Any
(SyntaxKind.PartialKeyword))
Microsoft.CodeAnalysis.CSharp.EditorFeatures (4)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
547
&& !baseFieldDeclarationNode.Modifiers.
Any
(SyntaxKind.ReadOnlyKeyword);
CompleteStatement\CompleteStatementCommandHandler.cs (3)
275
if (method.Modifiers.
Any
(SyntaxKind.AbstractKeyword) || method.Modifiers.
Any
(SyntaxKind.ExternKeyword) ||
281
if (method.Modifiers.
Any
(SyntaxKind.PartialKeyword) && method.Body is null)
Microsoft.CodeAnalysis.CSharp.Features (41)
CodeRefactorings\AddAwait\CSharpAddAwaitCodeRefactoringProvider.cs (1)
39
return methodDeclaration.Modifiers.
Any
(SyntaxKind.AsyncKeyword);
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (1)
85
return declarations.Any(d => d.Body == null && d.Modifiers.
Any
(SyntaxKind.PartialKeyword));
Completion\CompletionProviders\PartialTypeCompletionProvider.cs (1)
76
=> syntax is BaseTypeDeclarationSyntax declarationSyntax && declarationSyntax.Modifiers.
Any
(SyntaxKind.PartialKeyword);
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
317
var firstConstructorIndex = currentTypeDeclaration.Members.IndexOf(m => m is ConstructorDeclarationSyntax c && !c.Modifiers.
Any
(SyntaxKind.StaticKeyword));
ConvertProgram\ConvertProgramTransform_ProgramMain.cs (1)
66
declaration.Modifiers.
Any
(SyntaxKind.PartialKeyword);
EditAndContinue\BreakpointSpans.cs (4)
453
if (constructorSyntax.Modifiers.
Any
(SyntaxKind.StaticKeyword))
792
if (modifiersOpt.
Any
(SyntaxKind.ConstKeyword))
832
if (variableDeclarator.Initializer == null || modifiers.
Any
(SyntaxKind.ConstKeyword))
853
if (variableDeclarator.Initializer == null || modifiers.
Any
(SyntaxKind.ConstKeyword))
EditAndContinue\SyntaxUtilities.cs (6)
46
=> constructorDeclaration.Modifiers.
Any
(SyntaxKind.StaticKeyword)
56
when !fieldDeclaration.Modifiers.
Any
(SyntaxKind.ConstKeyword)
193
if (property.Modifiers.
Any
(SyntaxKind.AbstractKeyword) ||
194
property.Modifiers.
Any
(SyntaxKind.ExternKeyword))
223
MethodDeclarationSyntax method => method.Modifiers.
Any
(SyntaxKind.AsyncKeyword),
224
LocalFunctionStatementSyntax localFunction => localFunction.Modifiers.
Any
(SyntaxKind.AsyncKeyword),
ExtractMethod\CSharpSelectionResult.StatementResult.cs (1)
35
MethodDeclarationSyntax method => method.Modifiers.
Any
(SyntaxKind.AsyncKeyword),
ExtractMethod\Extensions.cs (1)
128
if (!modifiersGetter(decl).
Any
(SyntaxKind.ConstKeyword))
IntroduceVariable\CSharpIntroduceVariableService_IntroduceField.cs (1)
161
=> member is FieldDeclarationSyntax field && field.Modifiers.
Any
(SyntaxKind.ConstKeyword);
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (2)
138
if (setMethodDeclaration?.Modifiers.
Any
(SyntaxKind.UnsafeKeyword) == true
139
&& !property.Modifiers.
Any
(SyntaxKind.UnsafeKeyword))
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.cs (4)
131
if (propertyDeclaration.Modifiers.
Any
(SyntaxKind.UnsafeKeyword)
132
&& !methodDeclaration.Modifiers.
Any
(SyntaxKind.UnsafeKeyword))
186
if (propertyDeclaration.Modifiers.
Any
(SyntaxKind.UnsafeKeyword)
187
&& !methodDeclaration.Modifiers.
Any
(SyntaxKind.UnsafeKeyword))
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (2)
58
if (!methodDeclaration.Modifiers.
Any
(SyntaxKind.StaticKeyword) ||
135
if (!member.Modifiers.
Any
(SyntaxKind.StaticKeyword))
src\Analyzers\CSharp\Analyzers\MakeAnonymousFunctionStatic\MakeAnonymousFunctionStaticDiagnosticAnalyzer.cs (1)
46
if (anonymousFunction.Modifiers.
Any
(SyntaxKind.StaticKeyword))
src\Analyzers\CSharp\Analyzers\MakeLocalFunctionStatic\MakeLocalFunctionStaticDiagnosticAnalyzer.cs (1)
39
if (localFunction.Modifiers.
Any
(SyntaxKind.StaticKeyword))
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
189
property.Modifiers.
Any
(SyntaxKind.ReadOnlyKeyword))
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (2)
76
if (anonymousFunction.Modifiers.
Any
(SyntaxKind.StaticKeyword))
84
if (wasAwaited != anonymousFunction.Modifiers.
Any
(SyntaxKind.AsyncKeyword))
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForLocalFunctionHelper.cs (1)
56
if (statement.Modifiers.
Any
(SyntaxKind.AsyncKeyword))
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForMethodsHelper.cs (1)
56
if (declaration.Modifiers.
Any
(SyntaxKind.AsyncKeyword))
src\Analyzers\CSharp\CodeFixes\ConvertToAsync\CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
87
if (!methodDeclaration.Modifiers.
Any
(SyntaxKind.AsyncKeyword))
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
37
if (typeDeclaration.Modifiers.
Any
(SyntaxKind.PartialKeyword))
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (2)
145
MethodDeclarationSyntax method => (method.ReturnType, method.Modifiers.
Any
(SyntaxKind.AsyncKeyword)),
148
LocalFunctionStatementSyntax localFunction => (localFunction.ReturnType, localFunction.Modifiers.
Any
(SyntaxKind.AsyncKeyword)),
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (1)
79
if (otherAccessor.Modifiers.
Any
(SyntaxKind.ReadOnlyKeyword))
src\Analyzers\CSharp\CodeFixes\MakeTypeAbstract\CSharpMakeTypeAbstractCodeFixProvider.cs (2)
51
!enclosingType.Modifiers.
Any
(SyntaxKind.AbstractKeyword) && !enclosingType.Modifiers.
Any
(SyntaxKind.StaticKeyword))
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
272
if (modifiers.
Any
(SyntaxKind.AsyncKeyword) || onYield)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverTests.cs (1)
4057
.Where(static (node) => node.Modifiers.
Any
(SyntaxKind.PartialKeyword))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Syntax\SyntaxTokenListTests.cs (4)
250
Assert.True(list.
Any
(SyntaxKind.SizeOfKeyword));
253
Assert.True(list.
Any
(SyntaxKind.StringLiteralToken));
256
Assert.True(list.
Any
(SyntaxKind.DotToken));
259
Assert.False(list.
Any
(SyntaxKind.NullKeyword));
Microsoft.CodeAnalysis.CSharp.Workspaces (37)
Classification\ClassificationHelpers.cs (4)
239
FieldDeclarationSyntax fieldDeclaration => fieldDeclaration.Modifiers.
Any
(SyntaxKind.ConstKeyword) ? ClassificationTypeNames.ConstantName : ClassificationTypeNames.FieldName,
322
if (parentNode.GetModifiers().
Any
(SyntaxKind.ConstKeyword))
328
return parentNode.GetModifiers().
Any
(SyntaxKind.StaticKeyword);
332
=> methodDeclaration.ParameterList.Parameters.FirstOrDefault()?.Modifiers.
Any
(SyntaxKind.ThisKeyword) == true;
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (14)
214
if (typeDeclaration.Modifiers.
Any
(SyntaxKind.PartialKeyword) &&
227
typeDeclaration.Modifiers.
Any
(SyntaxKind.PartialKeyword),
257
enumDeclaration.Modifiers.
Any
(SyntaxKind.PartialKeyword),
285
ctorDecl.Modifiers.
Any
(SyntaxKind.PartialKeyword),
301
delegateDecl.Modifiers.
Any
(SyntaxKind.PartialKeyword),
315
enumMember.Modifiers.
Any
(SyntaxKind.PartialKeyword),
329
eventDecl.Modifiers.
Any
(SyntaxKind.PartialKeyword),
343
indexerDecl.Modifiers.
Any
(SyntaxKind.PartialKeyword),
358
method.Modifiers.
Any
(SyntaxKind.PartialKeyword),
374
property.Modifiers.
Any
(SyntaxKind.PartialKeyword),
388
: fieldDeclaration.Modifiers.
Any
(SyntaxKind.ConstKeyword)
397
fieldDeclaration.Modifiers.
Any
(SyntaxKind.PartialKeyword),
492
=> constructor.Modifiers.
Any
(SyntaxKind.StaticKeyword)
663
=> method.ParameterList.Parameters is [var parameter, ..] && parameter.Modifiers.
Any
(SyntaxKind.ThisKeyword);
Simplification\Reducers\CSharpEscapingReducer.cs (1)
77
if (enclosingMethodBlock != null && ((MethodDeclarationSyntax)enclosingMethodBlock).Modifiers.
Any
(SyntaxKind.AsyncKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (5)
330
m => m.GetModifiers().
Any
(SyntaxKind.UnsafeKeyword));
343
case LocalFunctionStatementSyntax localFunction when localFunction.Modifiers.
Any
(SyntaxKind.StaticKeyword):
346
case AnonymousFunctionExpressionSyntax anonymousFunction when anonymousFunction.Modifiers.
Any
(SyntaxKind.StaticKeyword):
350
return current.GetModifiers().
Any
(SyntaxKind.StaticKeyword);
353
return property.Modifiers.
Any
(SyntaxKind.StaticKeyword) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
236
modifiers.
Any
(SyntaxKind.PartialKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (3)
37
return ignoreDeclarationModifiers || !((MemberDeclarationSyntax)declaration).Modifiers.
Any
(SyntaxKind.FileKeyword);
55
return ignoreDeclarationModifiers || !((ConstructorDeclarationSyntax)declaration).Modifiers.
Any
(SyntaxKind.StaticKeyword);
77
if (method.Modifiers.
Any
(SyntaxKind.PartialKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\FieldGenerator.cs (6)
29
.Where(f => f.Modifiers.
Any
(SyntaxKind.ConstKeyword))
34
if (fieldDeclaration.Modifiers.
Any
(SyntaxKind.ConstKeyword))
40
.Where(f => f.Modifiers.
Any
(SyntaxKind.ReadOnlyKeyword))
44
.Where(f => !f.Modifiers.
Any
(SyntaxKind.ReadOnlyKeyword) && !f.Modifiers.
Any
(SyntaxKind.ConstKeyword))
49
return fieldDeclaration.Modifiers.
Any
(SyntaxKind.ReadOnlyKeyword)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (2)
506
targetToken.GetAncestors<MemberDeclarationSyntax>().Any(m => m.GetModifiers().
Any
(SyntaxKind.UnsafeKeyword) ||
507
targetToken.GetAncestors<LocalFunctionStatementSyntax>().Any(f => f.GetModifiers().
Any
(SyntaxKind.UnsafeKeyword))) ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
75
if (typeNode.Modifiers.
Any
(SyntaxKind.PartialKeyword))
Microsoft.Interop.ComInterfaceGenerator (5)
ComMethodInfo.cs (2)
72
|| comMethodDeclaringSyntax.Modifiers.
Any
(SyntaxKind.SealedKeyword))
151
bool shadowsBaseMethod = comMethodDeclaringSyntax.Modifiers.
Any
(SyntaxKind.NewKeyword);
VtableIndexStubGenerator.cs (3)
397
|| methodSyntax.Modifiers.
Any
(SyntaxKind.StaticKeyword)
398
|| methodSyntax.Modifiers.
Any
(SyntaxKind.SealedKeyword))
406
if (!typeDecl.Modifiers.
Any
(SyntaxKind.PartialKeyword))
Microsoft.Interop.JavaScript.JSImportGenerator (6)
JSExportGenerator.cs (3)
341
|| !methodSyntax.Modifiers.
Any
(SyntaxKind.StaticKeyword)
342
|| methodSyntax.Modifiers.
Any
(SyntaxKind.PartialKeyword))
350
if (!typeDecl.Modifiers.
Any
(SyntaxKind.PartialKeyword))
JSImportGenerator.cs (3)
220
|| !methodSyntax.Modifiers.
Any
(SyntaxKind.StaticKeyword)
221
|| !methodSyntax.Modifiers.
Any
(SyntaxKind.PartialKeyword))
229
if (!typeDecl.Modifiers.
Any
(SyntaxKind.PartialKeyword))
Microsoft.Interop.LibraryImportGenerator (2)
LibraryImportGenerator.cs (2)
547
|| !methodSyntax.Modifiers.
Any
(SyntaxKind.StaticKeyword)
548
|| !methodSyntax.Modifiers.
Any
(SyntaxKind.PartialKeyword))
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
DownlevelLibraryImportGenerator.cs (2)
417
|| !methodSyntax.Modifiers.
Any
(SyntaxKind.StaticKeyword)
418
|| !methodSyntax.Modifiers.
Any
(SyntaxKind.PartialKeyword))
Microsoft.Interop.SourceGeneration (2)
SyntaxExtensions.cs (1)
124
if (!typeDecl.Modifiers.
Any
(SyntaxKind.PartialKeyword))
TypePositionInfo.cs (1)
99
IsExplicitThis = ((ParameterSyntax)paramSymbol.DeclaringSyntaxReferences[0].GetSyntax()).Modifiers.
Any
(SyntaxKind.ThisKeyword)
Microsoft.VisualStudio.LanguageServices.CSharp (10)
CodeModel\CSharpCodeModelService.cs (6)
1872
if (modifiers.
Any
(SyntaxKind.RefKeyword))
1876
else if (modifiers.
Any
(SyntaxKind.OutKeyword))
1880
else if (modifiers.
Any
(SyntaxKind.ParamsKeyword))
3581
!classDecl.Modifiers.
Any
(SyntaxKind.StaticKeyword))
3592
return methodDeclaration.ParameterList.Parameters[0].Modifiers.
Any
(SyntaxKind.ThisKeyword);
3596
=> methodDeclaration.Modifiers.
Any
(SyntaxKind.PartialKeyword);
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (4)
120
if (parameter.Modifiers.
Any
(SyntaxKind.RefKeyword))
124
else if (parameter.Modifiers.
Any
(SyntaxKind.OutKeyword))
128
else if (parameter.Modifiers.
Any
(SyntaxKind.ParamsKeyword))
225
builder.Append(constructorDeclaration.Modifiers.
Any
(SyntaxKind.StaticKeyword) ? "#sctor" : "#ctor");
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Parser.cs (1)
130
if (!memberSyntax.Modifiers.
Any
(SyntaxKind.PartialKeyword) || // TODO: Switch to using regexPropertySymbol.IsPartialDefinition when available