TableSyntaxBase Class

Base class for a TableSyntax or a TableArraySyntax

public abstract class TableSyntaxBase : SyntaxNode
Inheritance
SyntaxNode TableSyntaxBase

Constructors

NameDescription
TableSyntaxBase(SyntaxKind)

TableSyntaxBase(SyntaxKind)

TableSyntaxBase.cs
protected TableSyntaxBase(SyntaxKind kind)

Parameters

kind SyntaxKind

No documentation is available.

Properties

NameDescription
ChildrenCountGets the number of children.
CloseBracketGets or sets the close bracket (simple `]` for TableSyntax, double `]]` for TableArraySyntax)
EndOfLineTokenGets the new-line.
ItemsGets the key-values associated with this table.
NameGets or sets the name of this table
OpenBracketGets or sets the open bracket (simple `[` for TableSyntax, double `[[` for TableArraySyntax)

ChildrenCount

TableSyntaxBase.cs

Gets the number of children.

public override int ChildrenCount { get; }

Property value

int

CloseBracket

TableSyntaxBase.cs

Gets or sets the close bracket (simple `]` for TableSyntax, double `]]` for TableArraySyntax)

public SyntaxToken? CloseBracket { get; set; }

Property value

SyntaxToken?

EndOfLineToken

TableSyntaxBase.cs

Gets the new-line.

public SyntaxToken? EndOfLineToken { get; set; }

Property value

SyntaxToken?

Gets the key-values associated with this table.

public SyntaxList<KeyValueSyntax> Items { get; }

Gets or sets the name of this table

public KeySyntax? Name { get; set; }

Property value

KeySyntax?

Gets or sets the open bracket (simple `[` for TableSyntax, double `[[` for TableArraySyntax)

public SyntaxToken? OpenBracket { get; set; }

Property value

SyntaxToken?

Methods

NameDescription
GetChildImpl(int)Gets a child at the specified index.

GetChildImpl(int)

TableSyntaxBase.cs

Gets a child at the specified index.

protected override SyntaxNode? GetChildImpl(int index)

Parameters

index int
Index of the child

Returns

SyntaxNode? A child at the specified index

Remarks

The index is safe to use