DottedKeyItemSyntax Class

A part of a TOML dotted key used by KeySyntax

public sealed class DottedKeyItemSyntax : ValueSyntax
Inheritance
ValueSyntax DottedKeyItemSyntax

Constructors

NameDescription
DottedKeyItemSyntax()Creates an instance of DottedKeyItemSyntax
DottedKeyItemSyntax(string)Creates an instance of DottedKeyItemSyntax

DottedKeyItemSyntax overloads

DottedKeyItemSyntax()

DottedKeyItemSyntax.cs

Creates an instance of DottedKeyItemSyntax

public DottedKeyItemSyntax()

DottedKeyItemSyntax(string)

DottedKeyItemSyntax.cs

Creates an instance of DottedKeyItemSyntax

public DottedKeyItemSyntax(string key)
Parameters
key string
The key used after the `.`

Properties

NameDescription
ChildrenCountGets the number of children.
DotThe token `.`
KeyThe following key or string node.

Gets the number of children.

public override int ChildrenCount { get; }

Property value

int

The token `.`

public SyntaxToken? Dot { get; set; }

Property value

SyntaxToken?

The following key or string node.

public BareKeyOrStringValueSyntax? Key { get; set; }

Methods

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

Accept(SyntaxVisitor)

DottedKeyItemSyntax.cs

Allow to visit this instance with the specified visitor.

public override void Accept(SyntaxVisitor visitor)

Parameters

visitor SyntaxVisitor
The visitor