79 references to IsParentKind
Microsoft.CodeAnalysis.VisualBasic.Workspaces (79)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (29)
15While expression.IsParentKind(SyntaxKind.ParenthesizedExpression) 38(expression.IsParentKind(SyntaxKind.QualifiedName) AndAlso DirectCast(expression.Parent, QualifiedNameSyntax).Left Is expression) OrElse 39(expression.IsParentKind(SyntaxKind.SimpleMemberAccessExpression) AndAlso DirectCast(expression.Parent, MemberAccessExpressionSyntax).Expression Is expression) 58Return expression.IsParentKind(SyntaxKind.SimpleMemberAccessExpression) AndAlso 80Return expression.IsParentKind(SyntaxKind.QualifiedName) AndAlso 86Return expression.IsParentKind(SyntaxKind.QualifiedName) AndAlso 336If expression.IsParentKind(SyntaxKind.SimpleAssignmentStatement) Then 343If expression.IsParentKind(SyntaxKind.NameColonEquals) AndAlso 344expression.Parent.IsParentKind(SyntaxKind.SimpleArgument) Then 526If expression.IsParentKind(SyntaxKind.EqualsValue) OrElse 527expression.IsParentKind(SyntaxKind.ParenthesizedExpression) OrElse 528expression.IsParentKind(SyntaxKind.SelectStatement) OrElse 529expression.IsParentKind(SyntaxKind.SyncLockStatement) OrElse 530expression.IsParentKind(SyntaxKind.CollectionInitializer) OrElse 531expression.IsParentKind(SyntaxKind.InferredFieldInitializer) OrElse 532expression.IsParentKind(SyntaxKind.BinaryConditionalExpression) OrElse 533expression.IsParentKind(SyntaxKind.TernaryConditionalExpression) OrElse 534expression.IsParentKind(SyntaxKind.ReturnStatement) OrElse 535expression.IsParentKind(SyntaxKind.YieldStatement) OrElse 536expression.IsParentKind(SyntaxKind.XmlEmbeddedExpression) OrElse 537expression.IsParentKind(SyntaxKind.ThrowStatement) OrElse 538expression.IsParentKind(SyntaxKind.IfStatement) OrElse 539expression.IsParentKind(SyntaxKind.WhileStatement) OrElse 540expression.IsParentKind(SyntaxKind.ElseIfStatement) OrElse 541expression.IsParentKind(SyntaxKind.ForEachStatement) OrElse 542expression.IsParentKind(SyntaxKind.ForStatement) OrElse 543expression.IsParentKind(SyntaxKind.ConditionalAccessExpression) OrElse 544expression.IsParentKind(SyntaxKind.TypeOfIsExpression) OrElse 545expression.IsParentKind(SyntaxKind.TypeOfIsNotExpression) Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\InvocationExpressionSyntaxExtensions.vb (3)
45If invocationExpression.IsParentKind(SyntaxKind.CallStatement) OrElse invocationExpression.IsParentKind(SyntaxKind.ExpressionStatement) Then 59If invocationExpression.IsParentKind(SyntaxKind.ConditionalAccessExpression) Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\MemberAccessExpressionSyntaxExtensions.vb (1)
59Return statement.IsParentKind(SyntaxKind.ConstructorBlock) AndAlso
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ParenthesizedExpressionSyntaxExtensions.vb (7)
138If node.IsParentKind(SyntaxKind.Interpolation) Then 151If Not node.IsParentKind(SyntaxKind.CollectionInitializer) Then 158If node.Parent.IsParentKind(SyntaxKind.ObjectCollectionInitializer) AndAlso 166If node.Parent.IsParentKind(SyntaxKind.CollectionInitializer) AndAlso 167node.Parent.Parent.IsParentKind(SyntaxKind.ObjectCollectionInitializer) AndAlso 211If node.IsParentKind(SyntaxKind.EqualsValue) AndAlso 300If node.IsParentKind(SyntaxKind.InvocationExpression) Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SemanticModelExtensions.vb (25)
115If type.IsParentKind(SyntaxKind.InheritsStatement) Then 122If type.IsParentKind(SyntaxKind.SimpleAsClause) AndAlso 123type.Parent.IsParentKind(SyntaxKind.VariableDeclarator) Then 124If type.Parent.Parent.IsParentKind(SyntaxKind.FieldDeclaration) OrElse 125type.Parent.Parent.IsParentKind(SyntaxKind.EventStatement) Then 136If type.IsParentKind(SyntaxKind.ObjectCreationExpression) AndAlso 137type.Parent.IsParentKind(SyntaxKind.AsNewClause) AndAlso 138type.Parent.Parent.IsParentKind(SyntaxKind.VariableDeclarator) Then 139If type.Parent.Parent.Parent.IsParentKind(SyntaxKind.FieldDeclaration) OrElse 140type.Parent.Parent.Parent.IsParentKind(SyntaxKind.EventStatement) Then 149If type.IsParentKind(SyntaxKind.SimpleAsClause) Then 150If type.Parent.IsParentKind(SyntaxKind.DelegateFunctionStatement) OrElse 151type.Parent.IsParentKind(SyntaxKind.FunctionStatement) OrElse 152type.Parent.IsParentKind(SyntaxKind.PropertyStatement) OrElse 153type.Parent.IsParentKind(SyntaxKind.EventStatement) OrElse 154type.Parent.IsParentKind(SyntaxKind.OperatorStatement) Then 160If type.IsParentKind(SyntaxKind.SimpleAsClause) AndAlso 161type.Parent.IsParentKind(SyntaxKind.Parameter) AndAlso 162type.Parent.Parent.IsParentKind(SyntaxKind.ParameterList) Then 163If type.Parent.Parent.Parent.IsParentKind(SyntaxKind.DelegateFunctionStatement) OrElse 164type.Parent.Parent.Parent.IsParentKind(SyntaxKind.FunctionStatement) OrElse 165type.Parent.Parent.Parent.IsParentKind(SyntaxKind.PropertyStatement) OrElse 166type.Parent.Parent.Parent.IsParentKind(SyntaxKind.OperatorStatement) OrElse 167type.Parent.Parent.Parent.IsParentKind(SyntaxKind.SubNewStatement) OrElse 168type.Parent.Parent.Parent.IsParentKind(SyntaxKind.SubStatement) Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\StatementSyntaxExtensions.vb (1)
744If statement.IsParentKind(SyntaxKind.ConstructorBlock) AndAlso
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (1)
787Return node.IsParentKind(SyntaxKind.SimpleAssignmentStatement) AndAlso
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\VariableDeclaratorSyntaxExtensions.vb (1)
53If variableDeclarator.IsParentKind(SyntaxKind.FieldDeclaration) AndAlso
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (6)
135If speculatedExpressionOuterType Is Nothing OrElse outerSpeculatedExpression.IsParentKind(SyntaxKind.SimpleArgument) Then 226_castNode.WalkUpParentheses().IsParentKind(SyntaxKind.Interpolation) Then 256If outerSpeculatedExpression.IsParentKind(SyntaxKind.DirectCastExpression) OrElse 257outerSpeculatedExpression.IsParentKind(SyntaxKind.TryCastExpression) OrElse 258outerSpeculatedExpression.IsParentKind(SyntaxKind.CTypeExpression) Then 263If expressionToOuterType = Nothing AndAlso outerSpeculatedExpression.IsParentKind(SyntaxKind.SimpleArgument) Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (3)
136If targetType.ContainsAnonymousType() OrElse expression.IsParentKind(SyntaxKind.AsNewClause) Then 197If Not statement.IsParentKind(SyntaxKind.ConstructorBlock) Then 273Return expression.IsParentKind(SyntaxKind.NameOfExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ParameterSyntaxExtensions.vb (1)
15parameter.IsParentKind(SyntaxKind.ParameterList) AndAlso
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SimpleNameSyntaxExtensions.vb (1)
36If simpleName.IsParentKind(SyntaxKind.InvocationExpression) Then