TomlArraySyntax Class
An array: brackets around a comma-separated list of values.
public sealed class TomlArraySyntax : TomlValueSyntax- Inheritance
TomlValueSyntaxTomlArraySyntax
Properties
| Name | Description |
|---|---|
| CloseBracketToken | |
| Elements | Gets the values in the array. The commas between them are the separators of the list. |
| OpenBracketToken |
CloseBracketToken
TomlArraySyntax.csElements
TomlArraySyntax.csGets the values in the array. The commas between them are the separators of the list.
public SeparatedSyntaxList<TomlValueSyntax> Elements { get; }Property value
OpenBracketToken
TomlArraySyntax.csMethods
| Name | Description |
|---|---|
| Accept(TomlSyntaxVisitor) | |
| Accept<TResult>(TomlSyntaxVisitor<TResult>) | |
| AddElements(TomlValueSyntax[]) | Returns this array with items added at the end, laid out the way the array already is. |
| Update(SyntaxToken, SeparatedSyntaxList<TomlValueSyntax>, SyntaxToken) | Returns this array with the given parts, or itself when nothing changed. |
| WithCloseBracketToken(SyntaxToken) | |
| WithElements(SeparatedSyntaxList<TomlValueSyntax>) | |
| WithOpenBracketToken(SyntaxToken) |
Accept overloads
Accept(TomlSyntaxVisitor)
TomlArraySyntax.cspublic override void Accept(TomlSyntaxVisitor visitor)Parameters
visitorTomlSyntaxVisitor
No documentation is available.
Accept<TResult>(TomlSyntaxVisitor<TResult>)
TomlArraySyntax.cspublic override TResult? Accept<TResult>(TomlSyntaxVisitor<TResult> visitor)No documentation is available.
AddElements(TomlValueSyntax[])
TomlArraySyntax.csReturns this array with items added at the end, laid out the way the array already is.
public TomlArraySyntax AddElements(params TomlValueSyntax[] items)Parameters
itemsTomlValueSyntax[]
Returns
Exceptions
ArgumentNullExceptionitemsor one of its items isnull.
Remarks
In an array written on one line, each new element follows a comma and a space. In one written an element per line, each goes on a line of its own, indented as the last one is, and a comment after the last element stays on its line. An element that ends with a comment gets a line break after it, or the comment would hide what follows it.
Update(SyntaxToken, SeparatedSyntaxList<TomlValueSyntax>, SyntaxToken)
TomlArraySyntax.csReturns this array with the given parts, or itself when nothing changed.
public TomlArraySyntax Update(SyntaxToken openBracketToken, SeparatedSyntaxList<TomlValueSyntax> elements, SyntaxToken closeBracketToken)Parameters
openBracketTokenSyntaxTokenelementsSeparatedSyntaxList<TomlValueSyntax>closeBracketTokenSyntaxToken
Returns
WithCloseBracketToken(SyntaxToken)
TomlArraySyntax.cspublic TomlArraySyntax WithCloseBracketToken(SyntaxToken closeBracketToken)No documentation is available.
WithElements(SeparatedSyntaxList<TomlValueSyntax>)
TomlArraySyntax.cspublic TomlArraySyntax WithElements(SeparatedSyntaxList<TomlValueSyntax> elements)No documentation is available.
WithOpenBracketToken(SyntaxToken)
TomlArraySyntax.cspublic TomlArraySyntax WithOpenBracketToken(SyntaxToken openBracketToken)No documentation is available.