1 using Mercury.Interpreting;
4 using System.Collections.Generic;
7 using System.Threading.Tasks;
67 public class AnalyserResult<T, TResult>
79 if (ex != null)
FailReason = Mercury.FailReason.Exception;
85 internal AnalyserResult()
87 Status = AnalyserStatus.Undefined;
90 InterpreterResults = null;
92 ParserTime = TimeSpan.Zero;
93 InterpreterTime = TimeSpan.Zero;
94 TotalTime = TimeSpan.Zero;
112 public IReadOnlyList<InterpreterResult<T>> InterpreterResults {
get;
internal set; }
115 public IReadOnlyList<TResult> Interpretations {
get;
internal set; }
121 public TimeSpan ParserTime {
get;
internal set; }
124 public TimeSpan InterpreterTime {
get;
internal set; }
130 public TimeSpan TotalTime {
get;
internal set; }
There was no result in the stage where analysis failed
Represents the result returned by the parser.
An exception has been thrown
FailReason
Specifies the reason of analysis failure
AnalyserStatus
The status of analysis. If failed, see FailReason
The analysis was successful and there is at least one result