Class HumlInlineMapping
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
EntriesIReadOnlyList<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
Methods
Equals(HumlInlineMapping?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(HumlInlineMapping? other)
Parameters
otherHumlInlineMappingAn object to compare with this object.
Returns
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()