Class ParseResults
Namespace: Void.Minecraft.Commands.Brigadier
Assembly: Void.Minecraft.dll
Contains the best command parse branch, its final reader state, and rejected sibling exceptions.
public record ParseResults : IEquatable<ParseResults>Inheritance
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
ParseResults(CommandContextBuilder, IImmutableStringReader, Dictionary<CommandNode, CommandSyntaxException>)
Contains the best command parse branch, its final reader state, and rejected sibling exceptions.
public ParseResults(CommandContextBuilder Context, IImmutableStringReader Reader, Dictionary<CommandNode, CommandSyntaxException> Exceptions)Parameters
Context CommandContextBuilder
The accumulated parse context.
Reader IImmutableStringReader
The final reader state.
Exceptions Dictionary<CommandNode, CommandSyntaxException>
Recoverable parse failures keyed by candidate node.
ParseResults(CommandContextBuilder)
Creates an empty-input result around a context builder.
public ParseResults(CommandContextBuilder context)Parameters
context CommandContextBuilder
The parse context.
Properties
Context
The accumulated parse context.
public CommandContextBuilder Context { get; init; }Property Value
Exceptions
Recoverable parse failures keyed by candidate node.
public Dictionary<CommandNode, CommandSyntaxException> Exceptions { get; init; }Property Value
Dictionary<CommandNode, CommandSyntaxException>
Reader
The final reader state.
public IImmutableStringReader Reader { get; init; }