DocumentSyntax Class
Root TOML syntax tree
public sealed class DocumentSyntax : SyntaxNode- Inheritance
SyntaxNodeDocumentSyntax
Constructors
| Name | Description |
|---|---|
| DocumentSyntax() | Creates an instance of a DocumentSyntax |
DocumentSyntax()
DocumentSyntax.csCreates an instance of a DocumentSyntax
public DocumentSyntax()Properties
| Name | Description |
|---|---|
| ChildrenCount | Gets the number of children. |
| Diagnostics | Gets the diagnostics attached to this document. |
| HasByteOrderMark | Gets or sets a value indicating whether the document starts with a byte order mark (U+FEFF). |
| HasErrors | Gets a boolean indicating if the DocumentSyntax.Diagnostics has any errors. |
| KeyValues | Gets the list of KeyValueSyntax |
| Tables | Gets the list of tables (either TableSyntax or TableArraySyntax) |
ChildrenCount
DocumentSyntax.csDiagnostics
DocumentSyntax.csGets the diagnostics attached to this document.
public DiagnosticsBag Diagnostics { get; }Property value
HasByteOrderMark
DocumentSyntax.csGets or sets a value indicating whether the document starts with a byte order mark (U+FEFF).
public bool HasByteOrderMark { get; set; }HasErrors
DocumentSyntax.csGets a boolean indicating if the DocumentSyntax.Diagnostics has any errors.
public bool HasErrors { get; }Property value
KeyValues
DocumentSyntax.csTables
DocumentSyntax.csGets the list of tables (either TableSyntax or TableArraySyntax)
public SyntaxList<TableSyntaxBase> Tables { get; }Property value
Methods
| Name | Description |
|---|---|
| Accept(SyntaxVisitor) | Allow to visit this instance with the specified visitor. |
Accept(SyntaxVisitor)
DocumentSyntax.csAllow to visit this instance with the specified visitor.
public override void Accept(SyntaxVisitor visitor)Parameters
visitorSyntaxVisitor- The visitor