224 references to IsParentKind
Microsoft.CodeAnalysis.CSharp.EditorFeatures (4)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (2)
515&& !baseMethodDeclarationNode.IsParentKind(SyntaxKind.InterfaceDeclaration); 800&& accessorDeclarationNode.Parent.IsParentKind(SyntaxKind.PropertyDeclaration)
CompleteStatement\CompleteStatementCommandHandler.cs (2)
255if (currentNode.IsKind(SyntaxKind.EqualsValueClause) && currentNode.IsParentKind(SyntaxKind.PropertyDeclaration)) 268method.IsParentKind(SyntaxKind.InterfaceDeclaration))
Microsoft.CodeAnalysis.CSharp.Features (88)
AddImport\CSharpAddImportFeatureService.cs (6)
119if (!nameNode.IsParentKind(SyntaxKind.SimpleMemberAccessExpression) && 120!nameNode.IsParentKind(SyntaxKind.MemberBindingExpression)) 127if (memberAccess.IsParentKind(SyntaxKind.SimpleMemberAccessExpression) || 128memberAccess.IsParentKind(SyntaxKind.ElementAccessExpression) || 129memberBinding.IsParentKind(SyntaxKind.SimpleMemberAccessExpression) || 130memberBinding.IsParentKind(SyntaxKind.ElementAccessExpression))
BraceCompletion\InterpolationBraceCompletionService.cs (1)
72return token.Parent.IsKind(SyntaxKind.InterpolatedStringExpression) || token.Parent.IsParentKind(SyntaxKind.InterpolatedStringExpression);
CodeFixes\GenerateType\GenerateTypeCodeFixProvider.cs (1)
53return !simple.IsParentKind(SyntaxKind.QualifiedName);
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
251if (node.IsParentKind(SyntaxKind.CastExpression))
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
256TypeSyntax type when originalReceiver.IsParentKind(IsExpression) => TypePattern(type),
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (3)
480if (token.Parent.IsParentKind(SyntaxKind.IsExpression)) 489else if (token.Parent.IsParentKind(SyntaxKind.CaseSwitchLabel)) 498else if (token.Parent.IsParentKind(SyntaxKind.DeclarationPattern))
Completion\CompletionProviders\ExternAliasCompletionProvider.cs (1)
66|| (targetToken.Parent.IsKind(SyntaxKind.IdentifierName) && targetToken.Parent.IsParentKind(SyntaxKind.IncompleteMember)))
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (4)
115(token.Parent.IsKind(SyntaxKind.XmlName) && token.Parent.IsParentKind(SyntaxKind.XmlEmptyElement))) 118if (token.Parent.IsParentKind(SyntaxKind.XmlElement) || 119token.Parent.Parent.IsParentKind(SyntaxKind.XmlElement)) 137if (token.Parent.IsParentKind(SyntaxKind.XmlEmptyElement) &&
Completion\KeywordRecommenders\BaseKeywordRecommender.cs (1)
53token.Parent.IsParentKind(SyntaxKind.ConstructorDeclaration) &&
Completion\KeywordRecommenders\ModuleKeywordRecommender.cs (1)
27return type == null || type.IsParentKind(SyntaxKind.CompilationUnit);
Completion\KeywordRecommenders\NamespaceKeywordRecommender.cs (1)
156token.Parent.IsParentKind(SyntaxKind.CompilationUnit))
Completion\KeywordRecommenders\ThisKeywordRecommender.cs (1)
48token.Parent.IsParentKind(SyntaxKind.ConstructorDeclaration))
Completion\KeywordRecommenders\WhereKeywordRecommender.cs (2)
59token.Parent.IsParentKind(SyntaxKind.DelegateDeclaration)) 72token.Parent.IsParentKind(SyntaxKind.MethodDeclaration))
Completion\KeywordRecommenders\WhileKeywordRecommender.cs (1)
42token.Parent.IsParentKind(SyntaxKind.DoStatement))
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
100if (!documentUpdateInfo.Source.IsParentKind(SyntaxKind.Block) &&
ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
115editor.RemoveNode(nextStatement.IsParentKind(SyntaxKind.GlobalStatement) ? nextStatement.GetRequiredParent() : nextStatement);
CSharpAddBracesDiagnosticAnalyzer.cs (1)
276while (result.IsParentKind(SyntaxKind.ElseClause))
CSharpDeclareAsNullableCodeFixProvider.cs (3)
71if (node.IsParentKind(SyntaxKind.Argument)) 157var onYield = node.IsParentKind(SyntaxKind.YieldReturnStatement); 279if (node.IsParentKind(SyntaxKind.ArrowExpressionClause) &&
CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
312return current.IsParentKind(SyntaxKind.Block)
CSharpIsAndCastCheckCodeFixProvider.cs (1)
99newIf = originalIf.IsParentKind(SyntaxKind.ElseClause)
CSharpRemoveUnreachableCodeCodeFixProvider.cs (3)
84if (!statement.IsParentKind(SyntaxKind.Block) 85&& !statement.IsParentKind(SyntaxKind.SwitchSection) 86&& !statement.IsParentKind(SyntaxKind.GlobalStatement))
CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
85return node.IsParentKind(SyntaxKind.Subpattern)
CSharpUseLocalFunctionDiagnosticAnalyzer.cs (3)
186if (anonymousFunction.IsParentKind(SyntaxKind.EqualsValueClause) && 187anonymousFunction.Parent.IsParentKind(SyntaxKind.VariableDeclarator) && 188anonymousFunction.Parent.Parent.IsParentKind(SyntaxKind.VariableDeclaration) &&
Debugging\CSharpProximityExpressionsService_ExpressionTermCollector.cs (3)
189!memberAccessExpression.IsParentKind(SyntaxKind.SimpleMemberAccessExpression) && 190!memberAccessExpression.IsParentKind(SyntaxKind.PointerMemberAccessExpression)) 198!memberAccessExpression.IsParentKind(SyntaxKind.InvocationExpression))
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (6)
2381if (node.IsParentKind(SyntaxKind.CompilationUnit) || node.Parent.IsParentKind(SyntaxKind.CompilationUnit)) 2407if (oldNode.IsParentKind(SyntaxKind.CompilationUnit) || oldNode.Parent.IsParentKind(SyntaxKind.CompilationUnit)) 2430if (newNode.IsParentKind(SyntaxKind.CompilationUnit) || newNode.Parent.IsParentKind(SyntaxKind.CompilationUnit))
EditAndContinue\SyntaxComparer.cs (2)
659if (node is not null && node.IsParentKind(SyntaxKind.CompilationUnit)) 668if (node is { Parent: { } parent } && parent.IsParentKind(SyntaxKind.CompilationUnit))
ExtractMethod\CSharpSelectionResult.cs (2)
173Contract.ThrowIfFalse(last.IsParentKind(SyntaxKind.GlobalStatement)); 174Contract.ThrowIfFalse(last.Parent.IsParentKind(SyntaxKind.CompilationUnit));
ExtractMethod\CSharpSelectionValidator.cs (1)
103|| selectionInfo.CommonRootFromOriginalSpan.IsParentKind(SyntaxKind.GlobalStatement))
GenerateMember\GenerateEnumMember\CSharpGenerateEnumMemberService.cs (4)
45if (simpleNameOrMemberAccessExpression.IsParentKind(SyntaxKind.InvocationExpression) || 46simpleNameOrMemberAccessExpression.IsParentKind(SyntaxKind.ObjectCreationExpression) || 47simpleNameOrMemberAccessExpression.IsParentKind(SyntaxKind.GotoStatement) || 48simpleNameOrMemberAccessExpression.IsParentKind(SyntaxKind.AliasQualifiedName))
GenerateMember\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (1)
45=> _invocationExpression.IsParentKind(SyntaxKind.RefExpression) ? RefKind.Ref : RefKind.None;
GenerateMember\GenerateVariable\CSharpGenerateVariableService.cs (6)
167if (expression.IsParentKind(SyntaxKind.AttributeArgument)) 172if (expression.IsParentKind(SyntaxKind.ConditionalAccessExpression)) 177if (expression.IsParentKind(SyntaxKind.IsPatternExpression)) 183expression.Parent.IsParentKind(SyntaxKind.Subpattern)) 188if (expression.IsParentKind(SyntaxKind.ConstantPattern)) 200if (node.IsLeftSideOfAssignExpression() && node.Parent.IsParentKind(SyntaxKind.ExpressionStatement))
GenerateType\CSharpGenerateTypeService.cs (8)
48=> expression.IsParentKind(SyntaxKind.CatchDeclaration); 52return expression.IsParentKind(SyntaxKind.ArrayType) && 53expression.Parent.IsParentKind(SyntaxKind.ArrayCreationExpression); 160if (simpleName.IsParentKind(SyntaxKind.NameMemberCref)) 187nameOrMemberAccessExpression.Parent.IsParentKind(SyntaxKind.BaseList) && 189nameOrMemberAccessExpression.Parent.Parent.IsParentKind(SyntaxKind.EnumDeclaration)) 338if ((nameOrMemberAccessExpression.IsKind(SyntaxKind.SimpleMemberAccessExpression) || (nameOrMemberAccessExpression.Parent != null && nameOrMemberAccessExpression.IsParentKind(SyntaxKind.SimpleMemberAccessExpression))) 349Debug.Assert(nameOrMemberAccessExpression.IsParentKind(SyntaxKind.SimpleMemberAccessExpression));
ImplementInterface\CSharpImplementInterfaceService.cs (1)
44baseType.IsParentKind(SyntaxKind.BaseList) &&
IntroduceVariable\CSharpIntroduceVariableService.cs (4)
54=> expression.GetAncestorOrThis<EqualsValueClauseSyntax>().IsParentKind(SyntaxKind.Parameter); 60=> expression.GetAncestorOrThis<EqualsValueClauseSyntax>().IsParentKind(SyntaxKind.PropertyDeclaration); 97if (!attributeDecl.IsParentKind(SyntaxKind.CompilationUnit)) 114if (expression.WalkUpParentheses().IsParentKind(SyntaxKind.ExpressionStatement))
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
364statement.IsParentKind(SyntaxKind.ElseClause))
LineSeparators\CSharpLineSeparatorService.cs (1)
306if (lastChild.IsParentKind(SyntaxKind.CompilationUnit))
NullableImpactingSpanWalker.cs (4)
82if (node.IsParentKind(SyntaxKind.UsingDirective)) 88if (node.IsParentKind(SyntaxKind.SimpleBaseType)) 100if (node.IsParentKind(SyntaxKind.NameEquals) && node.Parent.IsParentKind(SyntaxKind.UsingDirective))
RemoveUnusedVariable\CSharpRemoveUnusedVariableCodeFixProvider.cs (1)
65RemoveNode(editor, node.IsParentKind(SyntaxKind.GlobalStatement) ? node.Parent : node, blockFacts);
Structure\Providers\ArrowExpressionClauseStructureProvider.cs (1)
30autoCollapse: !node.IsParentKind(SyntaxKind.LocalFunctionStatement)));
Structure\Providers\BlockSyntaxStructureProvider.cs (2)
45autoCollapse: parentKind == SyntaxKind.LocalFunctionStatement && node.Parent.IsParentKind(SyntaxKind.GlobalStatement))); 85if (parent.IsKind(SyntaxKind.IfStatement) && parent.IsParentKind(SyntaxKind.ElseClause))
Microsoft.CodeAnalysis.CSharp.Workspaces (129)
CastSimplifier.cs (1)
470if (castNode.IsParentKind(SyntaxKind.Interpolation) && originalConversionOperation.Type?.SpecialType is SpecialType.System_Object)
Classification\SyntaxClassification\NameSyntaxClassifier.cs (1)
48=> node.IsParentKind(SyntaxKind.Attribute);
Classification\SyntaxClassification\SyntaxTokenClassifier.cs (2)
65if (identifierName.IsParentKind(SyntaxKind.MemberBindingExpression)) 75if (identifier.Parent.IsParentKind(SyntaxKind.ConditionalAccessExpression))
CSharpCodeGenerationService.cs (1)
515else if (destinationMember is StatementSyntax statement && statement.IsParentKind(SyntaxKind.GlobalStatement))
CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
64(i == 0 && currentUsing.IsParentKind(SyntaxKind.FileScopedNamespaceDeclaration)))
CSharpSmartTokenFormatter.cs (2)
75(endToken.Parent.IsParentKind(SyntaxKind.TryStatement) || endToken.Parent.IsParentKind(SyntaxKind.DoStatement));
CSharpSyntaxFacts.cs (10)
634node.IsParentKind(SyntaxKind.NameColon) && 635node.Parent.IsParentKind(SyntaxKind.Subpattern); 647if (identifier.Parent.IsParentKind(SyntaxKind.WithInitializerExpression)) 653else if (identifier.Parent.IsParentKind(SyntaxKind.ObjectInitializerExpression)) 1173=> node.IsParentKind(SyntaxKind.PostIncrementExpression) || 1174node.IsParentKind(SyntaxKind.PreIncrementExpression); 1177=> node.IsParentKind(SyntaxKind.PostDecrementExpression) || 1178node.IsParentKind(SyntaxKind.PreDecrementExpression); 1264return node.Parent.IsParentKind(SyntaxKind.FieldDeclaration) || 1265node.Parent.IsParentKind(SyntaxKind.EventFieldDeclaration);
CSharpTypeInferenceService.TypeInferrer.cs (8)
323if (argument.Parent.IsParentKind(SyntaxKind.ImplicitElementAccess) && 324argument.Parent.Parent.IsParentKind(SyntaxKind.SimpleAssignmentExpression) && 325argument.Parent.Parent.Parent.IsParentKind(SyntaxKind.ObjectInitializerExpression) && 1234if (equalsValue.IsParentKind(SyntaxKind.Parameter) && 1440else if (initializerExpression.IsParentKind(SyntaxKind.SimpleAssignmentExpression)) 1766memberAccessExpression.Parent.IsParentKind(SyntaxKind.AwaitExpression)) 2245if (variableDeclaration.IsParentKind(SyntaxKind.UsingStatement)) 2249if (variableDeclaration.IsParentKind(SyntaxKind.ForStatement))
DefaultExpressionSyntaxExtensions.cs (1)
69if (equalsValueClause.IsParentKind(SyntaxKind.VariableDeclarator) &&
ElasticTriviaFormattingRule.cs (1)
131currentToken.Parent.IsParentKind(SyntaxKind.IfStatement))
FormattingHelpers.cs (5)
77=> token.IsOpenParenInParameterList() && token.Parent.IsParentKind(SyntaxKind.ConversionOperatorDeclaration); 80=> token.IsOpenParenInParameterList() && token.Parent.IsParentKind(SyntaxKind.OperatorDeclaration); 134return node.IsParentKind(SyntaxKind.SimpleLambdaExpression) || node.IsParentKind(SyntaxKind.ParenthesizedLambdaExpression); 144return node.IsParentKind(SyntaxKind.AnonymousMethodExpression);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs\ExpressionSyntaxExtensions.cs (10)
36=> expression.IsParentKind(SyntaxKind.NameMemberCref) && expression.Parent.IsParentKind(SyntaxKind.QualifiedCref); 100=> name.IsParentKind(SyntaxKind.ExplicitInterfaceSpecifier); 181if (expression.IsParentKind(SyntaxKind.ConstantPattern)) 275if (!expr.IsParentKind(SyntaxKind.Argument)) 386return nameEquals.IsParentKind(SyntaxKind.AttributeArgument); 470if (expression is LiteralExpressionSyntax && !expression.IsParentKind(SyntaxKind.UnaryMinusExpression)) 583if (!(expression is LiteralExpressionSyntax && expression.IsParentKind(SyntaxKind.UnaryMinusExpression))) 624if ((expression.IsParentKind(SyntaxKind.NameEquals) && expression.Parent.IsParentKind(SyntaxKind.AttributeArgument)) ||
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs\SyntaxNodeExtensions.cs (2)
49if (node.IsParentKind(kind)) 758equalsValue.IsParentKind(SyntaxKind.VariableDeclarator) &&
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxNodeExtensions.cs\SyntaxNodeExtensions.cs (6)
18if (node.IsParentKind(SyntaxKind.MethodDeclaration) || 19node.IsParentKind(SyntaxKind.LocalFunctionStatement) || 20node.IsParentKind(SyntaxKind.ConstructorDeclaration) || 21node.IsParentKind(SyntaxKind.DelegateDeclaration)) 29node.IsParentKind(SyntaxKind.OperatorDeclaration) || 30node.IsParentKind(SyntaxKind.ConversionOperatorDeclaration);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (13)
117return statement != null && !statement.IsParentKind(SyntaxKind.GlobalStatement) && 132if (!token.Parent.IsParentKind(SyntaxKind.TryStatement) && 133!token.Parent.IsParentKind(SyntaxKind.DoStatement)) 139token.Parent.IsParentKind(SyntaxKind.ElseClause) || 140token.Parent.IsParentKind(SyntaxKind.FinallyClause) || 141token.Parent.IsParentKind(SyntaxKind.CatchClause) || 142token.Parent.IsParentKind(SyntaxKind.SwitchSection)) 210memberDeclaration.IsParentKind(SyntaxKind.CompilationUnit)) 229memberDeclaration.IsParentKind(SyntaxKind.CompilationUnit)) 468if (targetToken.Parent.IsParentKind(SyntaxKind.ObjectCreationExpression) || 469targetToken.Parent.IsParentKind(SyntaxKind.BaseConstructorInitializer) || 470targetToken.Parent.IsParentKind(SyntaxKind.ThisConstructorInitializer)) 478if (targetToken.Parent.IsParentKind(SyntaxKind.InvocationExpression) && !targetToken.IsInvocationOfVarExpression())
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (27)
60token.Parent.IsParentKind(SyntaxKind.Attribute)) 68token.Parent.IsParentKind(SyntaxKind.Attribute)) 115(parent is MemberDeclarationSyntax && parent.IsParentKind(SyntaxKind.CompilationUnit))) 510if (token.Parent.IsParentKind(SyntaxKind.CompilationUnit)) 832token.Parent.IsParentKind(SyntaxKind.SimpleBaseType) && 833token.Parent.Parent.IsParentKind(SyntaxKind.BaseList)) 1007if (name.IsParentKind(SyntaxKind.LessThanExpression) && 1009conditional.IsParentKind(SyntaxKind.ExpressionStatement) && 1010conditional.Parent.IsParentKind(SyntaxKind.GlobalStatement)) 1217token.Parent.IsParentKind(SyntaxKind.ParenthesizedLambdaExpression)) 1264return parent.IsKind(SyntaxKind.ParameterList) && parent.IsParentKind(SyntaxKind.AnonymousMethodExpression); 1407leftToken.Parent.IsParentKind(SyntaxKind.Subpattern)) 1593leftToken.Parent.IsParentKind(SyntaxKind.ParenthesizedVariableDesignation)) 1784if (parent.IsParentKind(SyntaxKind.VariableDeclaration) && 2068if (equalsValue.IsParentKind(SyntaxKind.VariableDeclarator) && 2069equalsValue.Parent.IsParentKind(SyntaxKind.VariableDeclaration)) 2087if (equalsValue.IsParentKind(SyntaxKind.EnumMemberDeclaration)) 2093if (equalsValue.IsParentKind(SyntaxKind.Parameter)) 2111token.Parent.IsParentKind(SyntaxKind.AttributeArgument)) 2119token.Parent.IsParentKind(SyntaxKind.AttributeArgument)) 2200token.Parent.IsParentKind(SyntaxKind.UsingDirective)) 2340if (type.IsParentKind(SyntaxKind.VariableDeclaration) && 2459if (token.Parent.IsParentKind(SyntaxKind.ParenthesizedExpression)) 2471token.Parent.IsParentKind(SyntaxKind.Argument)) 2952if (block.IsParentKind(SyntaxKind.TryStatement) || 2953block.IsParentKind(SyntaxKind.CatchClause)) 3000token.Parent.IsParentKind(SyntaxKind.EnumDeclaration);
NameSyntaxExtensions.cs (4)
54if (nameSyntax.IsParentKind(SyntaxKind.AliasQualifiedName) || 55nameSyntax.IsParentKind(SyntaxKind.NameColon) || 56nameSyntax.IsParentKind(SyntaxKind.NameEquals) || 57nameSyntax.IsParentKind(SyntaxKind.TypeParameterConstraintClause))
ParenthesizedExpressionSyntaxExtensions.cs (2)
251nodeParent.IsParentKind(SyntaxKind.CasePatternSwitchLabel)) 556(binaryExpression.IsParentKind(SyntaxKind.Argument) || binaryExpression.Parent is InitializerExpressionSyntax))
Rename\CSharpRenameRewriterLanguageService.cs (1)
754token.Parent.IsParentKind(SyntaxKind.InvocationExpression) &&
SemanticModelExtensions.cs (20)
226variableDeclaration.IsParentKind(SyntaxKind.FieldDeclaration)) 233if (type.IsParentKind(SyntaxKind.ObjectCreationExpression) && 234type.Parent.IsParentKind(SyntaxKind.EqualsValueClause) && 235type.Parent.Parent.IsParentKind(SyntaxKind.VariableDeclarator) && 237variableDeclaration.IsParentKind(SyntaxKind.FieldDeclaration)) 252if (type.IsParentKind(SyntaxKind.DelegateDeclaration) || 253type.IsParentKind(SyntaxKind.MethodDeclaration) || 254type.IsParentKind(SyntaxKind.PropertyDeclaration) || 255type.IsParentKind(SyntaxKind.EventDeclaration) || 256type.IsParentKind(SyntaxKind.IndexerDeclaration) || 257type.IsParentKind(SyntaxKind.OperatorDeclaration)) 273if (type.IsParentKind(SyntaxKind.Parameter) && type.Parent.IsParentKind(SyntaxKind.ParameterList)) 275if (type.Parent.Parent.IsParentKind(SyntaxKind.DelegateDeclaration) || 276type.Parent.Parent.IsParentKind(SyntaxKind.MethodDeclaration) || 277type.Parent.Parent.IsParentKind(SyntaxKind.IndexerDeclaration) || 278type.Parent.Parent.IsParentKind(SyntaxKind.OperatorDeclaration)) 284if (type.Parent.Parent.IsParentKind(SyntaxKind.ConstructorDeclaration)) 296variableDeclaration.IsParentKind(SyntaxKind.EventFieldDeclaration)) 306if (type.IsParentKind(SyntaxKind.TypeConstraint))
SimpleNameSyntaxExtensions.cs (1)
16Debug.Assert(name.IsSimpleMemberAccessExpressionName() || name.IsMemberBindingExpressionName() || name.IsRightSideOfQualifiedName() || name.IsParentKind(SyntaxKind.NameMemberCref));
Simplification\CSharpSimplificationService.Expander.cs (3)
77argument.IsParentKind(SyntaxKind.ArgumentList) && 360if ((node.Kind() == SyntaxKind.GreaterThanExpression || node.Kind() == SyntaxKind.RightShiftExpression) && !node.IsParentKind(SyntaxKind.ParenthesizedExpression)) 670originalSimpleName.IsParentKind(SyntaxKind.NameMemberCref) ||
Simplification\Reducers\CSharpMiscellaneousReducer.cs (2)
42if (parameterSyntax.IsParentKind(SyntaxKind.ParameterList) && 43parameterSyntax.Parent.IsParentKind(SyntaxKind.ParenthesizedLambdaExpression))
Simplification\Simplifiers\MemberAccessExpressionSimplifier.cs (2)
45if (parent.IsParentKind(SyntaxKind.SimpleMemberAccessExpression)) 51if (!parent.IsParentKind(SyntaxKind.ParenthesizedExpression))
Simplification\Simplifiers\NameSimplifier.cs (1)
634expression.IsParentKind(SyntaxKind.UsingDirective) &&
TokenBasedFormattingRule.cs (2)
287previousToken.Parent.IsParentKind(SyntaxKind.Parameter)) 465previousToken.Parent?.IsParentKind(SyntaxKind.ArrayType) == true)
Microsoft.VisualStudio.LanguageServices.CSharp (3)
CodeModel\CSharpCodeModelService.cs (3)
1847namespaceNode = usingDirective.IsParentKind(SyntaxKind.CompilationUnit) 2473if (member.IsParentKind(SyntaxKind.InterfaceDeclaration)) 3540if (propertyDeclaration.IsParentKind(SyntaxKind.InterfaceDeclaration))