protected BaseInterpreter([NotNull] BaseInterpreter parent, [NotNull] string name, int offset = 0) { if (parent == null) { throw new ArgumentNullException(nameof(parent)); } TopInterpreter = parent.TopInterpreter; Parent = parent; Offset = offset; Name = name ?? throw new ArgumentNullException(nameof(name)); }
public ActionInterpreter(CmdActionAttribute myActionAttribute, BaseInterpreter parent, int offset = 0) : base(parent, myActionAttribute.Name, offset) => _underlyingAction = myActionAttribute;