4 references to IsParentKind
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
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)