PowerShellTypeDefinitionSyntax Class

Represents a class or enum definition.

public sealed class PowerShellTypeDefinitionSyntax : ShellStatementSyntax
Inheritance
ShellStatementSyntax PowerShellTypeDefinitionSyntax

Properties

NameDescription
Attributes
BaseTypes
CloseBraceToken
ColonToken
Keyword
Members
NameThe type name.
NameToken
OpenBraceToken

Attributes

Syntax.g.cs
public SyntaxList<PowerShellAttributeSyntax> Attributes { get; }

No documentation is available.

BaseTypes

Syntax.g.cs

No documentation is available.

CloseBraceToken

Syntax.g.cs
public SyntaxToken CloseBraceToken { get; }

Property value

SyntaxToken

No documentation is available.

ColonToken

Syntax.g.cs
public SyntaxToken ColonToken { get; }

Property value

SyntaxToken

No documentation is available.

public SyntaxToken Keyword { get; }

Property value

SyntaxToken

No documentation is available.

public ShellStatementListSyntax Members { get; }

No documentation is available.

The type name.

public string Name { get; }

Property value

string

NameToken

Syntax.g.cs
public SyntaxToken NameToken { get; }

Property value

SyntaxToken

No documentation is available.

OpenBraceToken

Syntax.g.cs
public SyntaxToken OpenBraceToken { get; }

Property value

SyntaxToken

No documentation is available.

Methods

NameDescription
Accept(ShellSyntaxVisitor)
Accept<TResult>(ShellSyntaxVisitor<TResult>)
Update(SyntaxList<PowerShellAttributeSyntax>, SyntaxToken, SyntaxToken, SyntaxToken, SeparatedSyntaxList<PowerShellTypeLiteralSyntax>, SyntaxToken, ShellStatementListSyntax, SyntaxToken)Returns this node with the given parts, or itself when nothing changed.
WithAttributes(SyntaxList<PowerShellAttributeSyntax>)Returns this node with attributes in place of its PowerShellTypeDefinitionSyntax.Attributes.
WithBaseTypes(SeparatedSyntaxList<PowerShellTypeLiteralSyntax>)Returns this node with baseTypes in place of its PowerShellTypeDefinitionSyntax.BaseTypes.
WithCloseBraceToken(SyntaxToken)Returns this node with closeBraceToken in place of its PowerShellTypeDefinitionSyntax.CloseBraceToken.
WithColonToken(SyntaxToken)Returns this node with colonToken in place of its PowerShellTypeDefinitionSyntax.ColonToken.
WithKeyword(SyntaxToken)Returns this node with keyword in place of its PowerShellTypeDefinitionSyntax.Keyword.
WithMembers(ShellStatementListSyntax)Returns this node with members in place of its PowerShellTypeDefinitionSyntax.Members.
WithNameToken(SyntaxToken)Returns this node with nameToken in place of its PowerShellTypeDefinitionSyntax.NameToken.
WithOpenBraceToken(SyntaxToken)Returns this node with openBraceToken in place of its PowerShellTypeDefinitionSyntax.OpenBraceToken.

Accept overloads

Accept(ShellSyntaxVisitor)

Syntax.g.cs
public override void Accept(ShellSyntaxVisitor visitor)
Parameters
visitor ShellSyntaxVisitor

No documentation is available.

Accept<TResult>(ShellSyntaxVisitor<TResult>)

Syntax.g.cs
public override TResult? Accept<TResult>(ShellSyntaxVisitor<TResult> visitor)
Type parameters
TResult
Parameters
visitor ShellSyntaxVisitor<TResult>
Returns

TResult?

No documentation is available.

Update(SyntaxList<PowerShellAttributeSyntax>, SyntaxToken, SyntaxToken, SyntaxToken, SeparatedSyntaxList<PowerShellTypeLiteralSyntax>, SyntaxToken, ShellStatementListSyntax, SyntaxToken)

Syntax.g.cs

Returns this node with the given parts, or itself when nothing changed.

WithAttributes(SyntaxList<PowerShellAttributeSyntax>)

Syntax.g.cs

Returns this node with attributes in place of its PowerShellTypeDefinitionSyntax.Attributes.

WithBaseTypes(SeparatedSyntaxList<PowerShellTypeLiteralSyntax>)

Syntax.g.cs

WithCloseBraceToken(SyntaxToken)

Syntax.g.cs

Returns this node with closeBraceToken in place of its PowerShellTypeDefinitionSyntax.CloseBraceToken.

public PowerShellTypeDefinitionSyntax WithCloseBraceToken(SyntaxToken closeBraceToken)

Parameters

closeBraceToken SyntaxToken

Returns

PowerShellTypeDefinitionSyntax

WithColonToken(SyntaxToken)

Syntax.g.cs

Returns this node with colonToken in place of its PowerShellTypeDefinitionSyntax.ColonToken.

public PowerShellTypeDefinitionSyntax WithColonToken(SyntaxToken colonToken)

Parameters

colonToken SyntaxToken

Returns

PowerShellTypeDefinitionSyntax

WithKeyword(SyntaxToken)

Syntax.g.cs

Returns this node with keyword in place of its PowerShellTypeDefinitionSyntax.Keyword.

public PowerShellTypeDefinitionSyntax WithKeyword(SyntaxToken keyword)

WithMembers(ShellStatementListSyntax)

Syntax.g.cs

Returns this node with members in place of its PowerShellTypeDefinitionSyntax.Members.

WithNameToken(SyntaxToken)

Syntax.g.cs

Returns this node with nameToken in place of its PowerShellTypeDefinitionSyntax.NameToken.

public PowerShellTypeDefinitionSyntax WithNameToken(SyntaxToken nameToken)

WithOpenBraceToken(SyntaxToken)

Syntax.g.cs

Returns this node with openBraceToken in place of its PowerShellTypeDefinitionSyntax.OpenBraceToken.

public PowerShellTypeDefinitionSyntax WithOpenBraceToken(SyntaxToken openBraceToken)

Parameters

openBraceToken SyntaxToken

Returns

PowerShellTypeDefinitionSyntax