Example #1
0
 protected virtual void ResetState(ICollection <string> errors, Parsing.Command model)
 {
     Errors = errors;
     supportedParamIds.Clear();
     commandModel = model;
     command      = null;
     commandType  = null;
 }
Example #2
0
 public virtual Command Parse(Parsing.Command model, string scriptName,
                              int lineIndex, int inlineIndex, ICollection <string> errors = null)
 {
     ResetState(errors, model);
     if (!TryGetCommandType(out commandType))
     {
         return(null);
     }
     if (!TryCreateCommand(out command))
     {
         return(null);
     }
     AssignPlaybackSpot(scriptName, lineIndex, inlineIndex);
     AssignParameters();
     return(command);
 }