Class HumlInlineMapping

Namespace
Huml.Net.Parser
Assembly
Huml.Net.dll

Represents an inline or empty mapping block in the HUML AST. Produced for { key: value, ... } inline notation and empty {} dicts only.

public sealed record HumlInlineMapping : HumlNode, IEquatable<HumlNode>, IEquatable<HumlInlineMapping>
Inheritance
HumlInlineMapping
Implements
Inherited Members

Remarks

Multiline mapping blocks — whether at document root or nested inside a :: vector block — produce a HumlDocument node, not a HumlInlineMapping.

Constructors

HumlInlineMapping(IReadOnlyList<HumlNode>)

Represents an inline or empty mapping block in the HUML AST. Produced for { key: value, ... } inline notation and empty {} dicts only.

public HumlInlineMapping(IReadOnlyList<HumlNode> Entries)

Parameters

Entries IReadOnlyList<HumlNode>

The key-value mapping entries in this inline block.

Remarks

Multiline mapping blocks — whether at document root or nested inside a :: vector block — produce a HumlDocument node, not a HumlInlineMapping.

Properties

Entries

The key-value mapping entries in this inline block.

public IReadOnlyList<HumlNode> Entries { get; init; }

Property Value

IReadOnlyList<HumlNode>

Methods

Equals(HumlInlineMapping?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(HumlInlineMapping? other)

Parameters

other HumlInlineMapping

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Returns a hash code based only on the runtime type, consistent with the overridden Equals(HumlNode?) that excludes Line and Column. Derived types override this further to incorporate their primary-constructor parameters.

public override int GetHashCode()

Returns

int