ArrayItemSyntax Class

An item of an ArraySyntax

public sealed class ArrayItemSyntax : SyntaxNode
Inheritance
SyntaxNode ArrayItemSyntax

Constructors

NameDescription
ArrayItemSyntax()Creates an instance of ArrayItemSyntax

ArrayItemSyntax()

ArrayItemSyntax.cs

Creates an instance of ArrayItemSyntax

public ArrayItemSyntax()

Properties

NameDescription
ChildrenCountGets the number of children.
CommaGets or sets the comma of this item (mandatory to separate elements in an array)
ValueGets or sets the value of this item.

ChildrenCount

ArrayItemSyntax.cs

Gets the number of children.

public override int ChildrenCount { get; }

Property value

int

Gets or sets the comma of this item (mandatory to separate elements in an array)

public SyntaxToken? Comma { get; set; }

Property value

SyntaxToken?

Gets or sets the value of this item.

public ValueSyntax? Value { get; set; }

Property value

ValueSyntax?

Methods

NameDescription
Accept(SyntaxVisitor)Allow to visit this instance with the specified visitor.

Accept(SyntaxVisitor)

ArrayItemSyntax.cs

Allow to visit this instance with the specified visitor.

public override void Accept(SyntaxVisitor visitor)

Parameters

visitor SyntaxVisitor
The visitor