DateTimeValueSyntax Class

A datetime TOML value syntax node.

public sealed class DateTimeValueSyntax : ValueSyntax
Inheritance
ValueSyntax DateTimeValueSyntax

Constructors

NameDescription
DateTimeValueSyntax(SyntaxKind)Creates an instance of DateTimeValueSyntax

DateTimeValueSyntax(SyntaxKind)

DateTimeValueSyntax.cs

Creates an instance of DateTimeValueSyntax

public DateTimeValueSyntax(SyntaxKind kind)

Parameters

kind SyntaxKind
The kind of datetime

Properties

NameDescription
ChildrenCountGets the number of children.
TokenGets or sets the datetime token.
ValueGets or sets the parsed datetime value.

Gets the number of children.

public override int ChildrenCount { get; }

Property value

int

Gets or sets the datetime token.

public SyntaxToken? Token { get; set; }

Property value

SyntaxToken?

Gets or sets the parsed datetime value.

public TomlDateTime Value { get; set; }

Property value

TomlDateTime

Methods

NameDescription
Accept(SyntaxVisitor)Allow to visit this instance with the specified visitor.

Accept(SyntaxVisitor)

DateTimeValueSyntax.cs

Allow to visit this instance with the specified visitor.

public override void Accept(SyntaxVisitor visitor)

Parameters

visitor SyntaxVisitor
The visitor