Construct a ParseResult from accumulated diagnostics.
success is derived from the absence of errors, so a warning never fails a
parse; errors is the error-severity view of diagnostics, element-identical
and in the same order; both arrays are frozen so neither can be desynchronised
from the other.
Construct a
ParseResultfrom accumulated diagnostics.successis derived from the absence of errors, so a warning never fails a parse;errorsis the error-severity view ofdiagnostics, element-identical and in the same order; both arrays are frozen so neither can be desynchronised from the other.