74 references to IsParentKind
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (74)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (29)
15
While 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)
58
Return expression.
IsParentKind
(SyntaxKind.SimpleMemberAccessExpression) AndAlso
80
Return expression.
IsParentKind
(SyntaxKind.QualifiedName) AndAlso
86
Return expression.
IsParentKind
(SyntaxKind.QualifiedName) AndAlso
336
If expression.
IsParentKind
(SyntaxKind.SimpleAssignmentStatement) Then
343
If expression.
IsParentKind
(SyntaxKind.NameColonEquals) AndAlso
344
expression.Parent.
IsParentKind
(SyntaxKind.SimpleArgument) Then
526
If expression.
IsParentKind
(SyntaxKind.EqualsValue) OrElse
527
expression.
IsParentKind
(SyntaxKind.ParenthesizedExpression) OrElse
528
expression.
IsParentKind
(SyntaxKind.SelectStatement) OrElse
529
expression.
IsParentKind
(SyntaxKind.SyncLockStatement) OrElse
530
expression.
IsParentKind
(SyntaxKind.CollectionInitializer) OrElse
531
expression.
IsParentKind
(SyntaxKind.InferredFieldInitializer) OrElse
532
expression.
IsParentKind
(SyntaxKind.BinaryConditionalExpression) OrElse
533
expression.
IsParentKind
(SyntaxKind.TernaryConditionalExpression) OrElse
534
expression.
IsParentKind
(SyntaxKind.ReturnStatement) OrElse
535
expression.
IsParentKind
(SyntaxKind.YieldStatement) OrElse
536
expression.
IsParentKind
(SyntaxKind.XmlEmbeddedExpression) OrElse
537
expression.
IsParentKind
(SyntaxKind.ThrowStatement) OrElse
538
expression.
IsParentKind
(SyntaxKind.IfStatement) OrElse
539
expression.
IsParentKind
(SyntaxKind.WhileStatement) OrElse
540
expression.
IsParentKind
(SyntaxKind.ElseIfStatement) OrElse
541
expression.
IsParentKind
(SyntaxKind.ForEachStatement) OrElse
542
expression.
IsParentKind
(SyntaxKind.ForStatement) OrElse
543
expression.
IsParentKind
(SyntaxKind.ConditionalAccessExpression) OrElse
544
expression.
IsParentKind
(SyntaxKind.TypeOfIsExpression) OrElse
545
expression.
IsParentKind
(SyntaxKind.TypeOfIsNotExpression) Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\InvocationExpressionSyntaxExtensions.vb (3)
45
If invocationExpression.
IsParentKind
(SyntaxKind.CallStatement) OrElse invocationExpression.
IsParentKind
(SyntaxKind.ExpressionStatement) Then
59
If invocationExpression.
IsParentKind
(SyntaxKind.ConditionalAccessExpression) Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\MemberAccessExpressionSyntaxExtensions.vb (1)
59
Return statement.
IsParentKind
(SyntaxKind.ConstructorBlock) AndAlso
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ParenthesizedExpressionSyntaxExtensions.vb (7)
138
If node.
IsParentKind
(SyntaxKind.Interpolation) Then
151
If Not node.
IsParentKind
(SyntaxKind.CollectionInitializer) Then
158
If node.Parent.
IsParentKind
(SyntaxKind.ObjectCollectionInitializer) AndAlso
166
If node.Parent.
IsParentKind
(SyntaxKind.CollectionInitializer) AndAlso
167
node.Parent.Parent.
IsParentKind
(SyntaxKind.ObjectCollectionInitializer) AndAlso
211
If node.
IsParentKind
(SyntaxKind.EqualsValue) AndAlso
300
If node.
IsParentKind
(SyntaxKind.InvocationExpression) Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SemanticModelExtensions.vb (25)
105
If type.
IsParentKind
(SyntaxKind.InheritsStatement) Then
112
If type.
IsParentKind
(SyntaxKind.SimpleAsClause) AndAlso
113
type.Parent.
IsParentKind
(SyntaxKind.VariableDeclarator) Then
114
If type.Parent.Parent.
IsParentKind
(SyntaxKind.FieldDeclaration) OrElse
115
type.Parent.Parent.
IsParentKind
(SyntaxKind.EventStatement) Then
126
If type.
IsParentKind
(SyntaxKind.ObjectCreationExpression) AndAlso
127
type.Parent.
IsParentKind
(SyntaxKind.AsNewClause) AndAlso
128
type.Parent.Parent.
IsParentKind
(SyntaxKind.VariableDeclarator) Then
129
If type.Parent.Parent.Parent.
IsParentKind
(SyntaxKind.FieldDeclaration) OrElse
130
type.Parent.Parent.Parent.
IsParentKind
(SyntaxKind.EventStatement) Then
139
If type.
IsParentKind
(SyntaxKind.SimpleAsClause) Then
140
If type.Parent.
IsParentKind
(SyntaxKind.DelegateFunctionStatement) OrElse
141
type.Parent.
IsParentKind
(SyntaxKind.FunctionStatement) OrElse
142
type.Parent.
IsParentKind
(SyntaxKind.PropertyStatement) OrElse
143
type.Parent.
IsParentKind
(SyntaxKind.EventStatement) OrElse
144
type.Parent.
IsParentKind
(SyntaxKind.OperatorStatement) Then
150
If type.
IsParentKind
(SyntaxKind.SimpleAsClause) AndAlso
151
type.Parent.
IsParentKind
(SyntaxKind.Parameter) AndAlso
152
type.Parent.Parent.
IsParentKind
(SyntaxKind.ParameterList) Then
153
If type.Parent.Parent.Parent.
IsParentKind
(SyntaxKind.DelegateFunctionStatement) OrElse
154
type.Parent.Parent.Parent.
IsParentKind
(SyntaxKind.FunctionStatement) OrElse
155
type.Parent.Parent.Parent.
IsParentKind
(SyntaxKind.PropertyStatement) OrElse
156
type.Parent.Parent.Parent.
IsParentKind
(SyntaxKind.OperatorStatement) OrElse
157
type.Parent.Parent.Parent.
IsParentKind
(SyntaxKind.SubNewStatement) OrElse
158
type.Parent.Parent.Parent.
IsParentKind
(SyntaxKind.SubStatement) Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\StatementSyntaxExtensions.vb (1)
744
If statement.
IsParentKind
(SyntaxKind.ConstructorBlock) AndAlso
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (1)
787
Return node.
IsParentKind
(SyntaxKind.SimpleAssignmentStatement) AndAlso
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\VariableDeclaratorSyntaxExtensions.vb (1)
53
If variableDeclarator.
IsParentKind
(SyntaxKind.FieldDeclaration) AndAlso
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (6)
135
If speculatedExpressionOuterType Is Nothing OrElse outerSpeculatedExpression.
IsParentKind
(SyntaxKind.SimpleArgument) Then
226
_castNode.WalkUpParentheses().
IsParentKind
(SyntaxKind.Interpolation) Then
256
If outerSpeculatedExpression.
IsParentKind
(SyntaxKind.DirectCastExpression) OrElse
257
outerSpeculatedExpression.
IsParentKind
(SyntaxKind.TryCastExpression) OrElse
258
outerSpeculatedExpression.
IsParentKind
(SyntaxKind.CTypeExpression) Then
263
If expressionToOuterType = Nothing AndAlso outerSpeculatedExpression.
IsParentKind
(SyntaxKind.SimpleArgument) Then