Skip to main content

SyntaxExtensions.IsParentKind Method

Containing Type: SyntaxExtensions

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
IsParentKind(SyntaxNode, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind)Returns true if a node parent's kind is one of the specified kinds.
IsParentKind(SyntaxNode, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind)Returns true if a node parent's kind is one of the specified kinds.
IsParentKind(SyntaxNode, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind)Returns true if a node parent's kind is one of the specified kinds.
IsParentKind(SyntaxNode, SyntaxKind, SyntaxKind, SyntaxKind)Returns true if a node parent's kind is one of the specified kinds.
IsParentKind(SyntaxNode, SyntaxKind, SyntaxKind)Returns true if a node parent's kind is one of the specified kinds.
IsParentKind(SyntaxNode, SyntaxKind)Returns true if a node parent's kind is the specified kind.
IsParentKind(SyntaxToken, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind)Returns true if a token parent's kind is one of the specified kinds.
IsParentKind(SyntaxToken, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind)Returns true if a token parent's kind is one of the specified kinds.
IsParentKind(SyntaxToken, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind)Returns true if a token parent's kind is one of the specified kinds.
IsParentKind(SyntaxToken, SyntaxKind, SyntaxKind, SyntaxKind)Returns true if a token parent's kind is one of the specified kinds.
IsParentKind(SyntaxToken, SyntaxKind, SyntaxKind)Returns true if a token parent's kind is one of the specified kinds.
IsParentKind(SyntaxToken, SyntaxKind)Returns true if a token parent's kind is the specified kind.

IsParentKind(SyntaxNode, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind)

Returns true if a node parent's kind is one of the specified kinds.

public static bool IsParentKind(this Microsoft.CodeAnalysis.SyntaxNode node, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind1, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind2, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind3, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind4, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind5, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind6)

Parameters

node SyntaxNode

kind1 SyntaxKind

kind2 SyntaxKind

kind3 SyntaxKind

kind4 SyntaxKind

kind5 SyntaxKind

kind6 SyntaxKind

Returns

Boolean

IsParentKind(SyntaxNode, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind)

Returns true if a node parent's kind is one of the specified kinds.

public static bool IsParentKind(this Microsoft.CodeAnalysis.SyntaxNode node, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind1, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind2, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind3, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind4, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind5)

Parameters

node SyntaxNode

kind1 SyntaxKind

kind2 SyntaxKind

kind3 SyntaxKind

kind4 SyntaxKind

kind5 SyntaxKind

Returns

Boolean

IsParentKind(SyntaxNode, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind)

Returns true if a node parent's kind is one of the specified kinds.

public static bool IsParentKind(this Microsoft.CodeAnalysis.SyntaxNode node, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind1, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind2, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind3, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind4)

Parameters

node SyntaxNode

kind1 SyntaxKind

kind2 SyntaxKind

kind3 SyntaxKind

kind4 SyntaxKind

Returns

Boolean

IsParentKind(SyntaxNode, SyntaxKind, SyntaxKind, SyntaxKind)

Returns true if a node parent's kind is one of the specified kinds.

public static bool IsParentKind(this Microsoft.CodeAnalysis.SyntaxNode node, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind1, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind2, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind3)

Parameters

node SyntaxNode

kind1 SyntaxKind

kind2 SyntaxKind

kind3 SyntaxKind

Returns

Boolean

IsParentKind(SyntaxNode, SyntaxKind, SyntaxKind)

Returns true if a node parent's kind is one of the specified kinds.

public static bool IsParentKind(this Microsoft.CodeAnalysis.SyntaxNode node, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind1, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind2)

Parameters

node SyntaxNode

kind1 SyntaxKind

kind2 SyntaxKind

Returns

Boolean

IsParentKind(SyntaxNode, SyntaxKind)

Returns true if a node parent's kind is the specified kind.

public static bool IsParentKind(this Microsoft.CodeAnalysis.SyntaxNode? node, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind)

Parameters

node SyntaxNode

kind SyntaxKind

Returns

Boolean

IsParentKind(SyntaxToken, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind)

Returns true if a token parent's kind is one of the specified kinds.

public static bool IsParentKind(this Microsoft.CodeAnalysis.SyntaxToken token, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind1, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind2, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind3, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind4, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind5, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind6)

Parameters

token SyntaxToken

kind1 SyntaxKind

kind2 SyntaxKind

kind3 SyntaxKind

kind4 SyntaxKind

kind5 SyntaxKind

kind6 SyntaxKind

Returns

Boolean

IsParentKind(SyntaxToken, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind)

Returns true if a token parent's kind is one of the specified kinds.

public static bool IsParentKind(this Microsoft.CodeAnalysis.SyntaxToken token, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind1, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind2, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind3, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind4, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind5)

Parameters

token SyntaxToken

kind1 SyntaxKind

kind2 SyntaxKind

kind3 SyntaxKind

kind4 SyntaxKind

kind5 SyntaxKind

Returns

Boolean

IsParentKind(SyntaxToken, SyntaxKind, SyntaxKind, SyntaxKind, SyntaxKind)

Returns true if a token parent's kind is one of the specified kinds.

public static bool IsParentKind(this Microsoft.CodeAnalysis.SyntaxToken token, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind1, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind2, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind3, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind4)

Parameters

token SyntaxToken

kind1 SyntaxKind

kind2 SyntaxKind

kind3 SyntaxKind

kind4 SyntaxKind

Returns

Boolean

IsParentKind(SyntaxToken, SyntaxKind, SyntaxKind, SyntaxKind)

Returns true if a token parent's kind is one of the specified kinds.

public static bool IsParentKind(this Microsoft.CodeAnalysis.SyntaxToken token, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind1, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind2, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind3)

Parameters

token SyntaxToken

kind1 SyntaxKind

kind2 SyntaxKind

kind3 SyntaxKind

Returns

Boolean

IsParentKind(SyntaxToken, SyntaxKind, SyntaxKind)

Returns true if a token parent's kind is one of the specified kinds.

public static bool IsParentKind(this Microsoft.CodeAnalysis.SyntaxToken token, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind1, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind2)

Parameters

token SyntaxToken

kind1 SyntaxKind

kind2 SyntaxKind

Returns

Boolean

IsParentKind(SyntaxToken, SyntaxKind)

Returns true if a token parent's kind is the specified kind.

public static bool IsParentKind(this Microsoft.CodeAnalysis.SyntaxToken token, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind)

Parameters

token SyntaxToken

kind SyntaxKind

Returns

Boolean