TomlInlineTableSyntax Class
An inline table: braces around a comma-separated list of key/value pairs, such as { x = 1, y = 2 }.
public sealed class TomlInlineTableSyntax : TomlValueSyntax- Inheritance
TomlValueSyntaxTomlInlineTableSyntax
Properties
| Name | Description |
|---|---|
| CloseBraceToken | |
| OpenBraceToken | |
| Properties | Gets the key/value pairs of the table. The commas between them are the separators of the list. |
CloseBraceToken
TomlInlineTableSyntax.csOpenBraceToken
TomlInlineTableSyntax.csProperties
TomlInlineTableSyntax.csGets the key/value pairs of the table. The commas between them are the separators of the list.
public SeparatedSyntaxList<TomlPropertySyntax> Properties { get; }Property value
Methods
| Name | Description |
|---|---|
| Accept(TomlSyntaxVisitor) | |
| Accept<TResult>(TomlSyntaxVisitor<TResult>) | |
| AddProperties(TomlPropertySyntax[]) | Returns this inline table with items added at the end, laid out the way the table already is. |
| Update(SyntaxToken, SeparatedSyntaxList<TomlPropertySyntax>, SyntaxToken) | Returns this inline table with the given parts, or itself when nothing changed. |
| WithCloseBraceToken(SyntaxToken) | |
| WithOpenBraceToken(SyntaxToken) | |
| WithProperties(SeparatedSyntaxList<TomlPropertySyntax>) |
Accept overloads
Accept(TomlSyntaxVisitor)
TomlInlineTableSyntax.cspublic override void Accept(TomlSyntaxVisitor visitor)Parameters
visitorTomlSyntaxVisitor
No documentation is available.
Accept<TResult>(TomlSyntaxVisitor<TResult>)
TomlInlineTableSyntax.cspublic override TResult? Accept<TResult>(TomlSyntaxVisitor<TResult> visitor)No documentation is available.
AddProperties(TomlPropertySyntax[])
TomlInlineTableSyntax.csReturns this inline table with items added at the end, laid out the way the table already is.
public TomlInlineTableSyntax AddProperties(params TomlPropertySyntax[] items)Parameters
itemsTomlPropertySyntax[]
Returns
Exceptions
ArgumentNullExceptionitemsor one of its items isnull.
Remarks
In a table written on one line, each new key/value pair follows a comma and a space, and an empty table gets a space inside each brace. In one written a pair per line, each goes on a line of its own, indented as the last one is. A pair that ends with a comment gets a line break after it, or the comment would hide what follows it.
Update(SyntaxToken, SeparatedSyntaxList<TomlPropertySyntax>, SyntaxToken)
TomlInlineTableSyntax.csReturns this inline table with the given parts, or itself when nothing changed.
public TomlInlineTableSyntax Update(SyntaxToken openBraceToken, SeparatedSyntaxList<TomlPropertySyntax> properties, SyntaxToken closeBraceToken)Parameters
openBraceTokenSyntaxTokenpropertiesSeparatedSyntaxList<TomlPropertySyntax>closeBraceTokenSyntaxToken
Returns
WithCloseBraceToken(SyntaxToken)
TomlInlineTableSyntax.cspublic TomlInlineTableSyntax WithCloseBraceToken(SyntaxToken closeBraceToken)No documentation is available.
WithOpenBraceToken(SyntaxToken)
TomlInlineTableSyntax.cspublic TomlInlineTableSyntax WithOpenBraceToken(SyntaxToken openBraceToken)No documentation is available.
WithProperties(SeparatedSyntaxList<TomlPropertySyntax>)
TomlInlineTableSyntax.cspublic TomlInlineTableSyntax WithProperties(SeparatedSyntaxList<TomlPropertySyntax> properties)No documentation is available.