BooleanValueSyntax Class

A boolean TOML value syntax node.

public sealed class BooleanValueSyntax : ValueSyntax
Inheritance
ValueSyntax BooleanValueSyntax

Constructors

NameDescription
BooleanValueSyntax()Creates an instance of a BooleanValueSyntax
BooleanValueSyntax(bool)Creates an instance of a BooleanValueSyntax

BooleanValueSyntax overloads

BooleanValueSyntax()

BooleanValueSyntax.cs

Creates an instance of a BooleanValueSyntax

public BooleanValueSyntax()

BooleanValueSyntax(bool)

BooleanValueSyntax.cs

Creates an instance of a BooleanValueSyntax

public BooleanValueSyntax(bool value)
Parameters
value bool
The boolean value

Properties

NameDescription
ChildrenCountGets the number of children.
TokenThe boolean token value (true or false)
ValueThe boolean parsed value.

Gets the number of children.

public override int ChildrenCount { get; }

Property value

int

The boolean token value (true or false)

public SyntaxToken? Token { get; set; }

Property value

SyntaxToken?

The boolean parsed value.

public bool Value { get; set; }

Property value

bool

Methods

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

Accept(SyntaxVisitor)

BooleanValueSyntax.cs

Allow to visit this instance with the specified visitor.

public override void Accept(SyntaxVisitor visitor)

Parameters

visitor SyntaxVisitor
The visitor