5 references to IsParentKind
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
236
type.Parent.Parent.Parent.
IsParentKind
(SyntaxKind.VariableDeclaration, out variableDeclaration) &&
297
if (type.
IsParentKind
(SyntaxKind.VariableDeclaration, out variableDeclaration) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (2)
153
var isFirstTokenOfSwitchArm = currentToken.Parent.
IsParentKind
(SyntaxKind.RecursivePattern, out RecursivePatternSyntax? recursivePattern)
154
&& recursivePattern.
IsParentKind
(SyntaxKind.SwitchExpressionArm, out SwitchExpressionArmSyntax? switchExpressionArm)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1737
if (ienumerableType != null && memberAccessExpression.
IsParentKind
(SyntaxKind.InvocationExpression, out invocation))