コード例 #1
0
 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));
 }
コード例 #2
0
 public ActionInterpreter(CmdActionAttribute myActionAttribute, BaseInterpreter parent, int offset = 0) : base(parent,
                                                                                                               myActionAttribute.Name, offset) => _underlyingAction = myActionAttribute;