TableSyntaxBase Class
Base class for a TableSyntax or a TableArraySyntax
public abstract class TableSyntaxBase : SyntaxNode- Inheritance
SyntaxNodeTableSyntaxBase
Constructors
| Name | Description |
|---|---|
| TableSyntaxBase(SyntaxKind) |
TableSyntaxBase(SyntaxKind)
TableSyntaxBase.csProperties
| Name | Description |
|---|---|
| ChildrenCount | Gets the number of children. |
| CloseBracket | Gets or sets the close bracket (simple `]` for TableSyntax, double `]]` for TableArraySyntax) |
| EndOfLineToken | Gets the new-line. |
| Items | Gets the key-values associated with this table. |
| Name | Gets or sets the name of this table |
| OpenBracket | Gets or sets the open bracket (simple `[` for TableSyntax, double `[[` for TableArraySyntax) |
ChildrenCount
TableSyntaxBase.csCloseBracket
TableSyntaxBase.csGets or sets the close bracket (simple `]` for TableSyntax, double `]]` for TableArraySyntax)
public SyntaxToken? CloseBracket { get; set; }Property value
EndOfLineToken
TableSyntaxBase.csItems
TableSyntaxBase.csGets the key-values associated with this table.
public SyntaxList<KeyValueSyntax> Items { get; }Property value
OpenBracket
TableSyntaxBase.csGets or sets the open bracket (simple `[` for TableSyntax, double `[[` for TableArraySyntax)
public SyntaxToken? OpenBracket { get; set; }Property value
Methods
| Name | Description |
|---|---|
| GetChildImpl(int) | Gets a child at the specified index. |
GetChildImpl(int)
TableSyntaxBase.csGets a child at the specified index.
protected override SyntaxNode? GetChildImpl(int index)Parameters
indexint- Index of the child
Returns
SyntaxNode? A child at the specified index
Remarks
The index is safe to use