示例#1
0
        public IfOrUnlessStatement(IfOrUnlessKind kind, IAstElement condition, IEnumerable<IAstElement> body)
        {
            var bodyList = body.ToList();
            Argument.RequireNotNullNotEmptyAndNotContainsNull("body", bodyList);

            this.Kind = kind;
            this.Condition = condition;
            this.Body = bodyList;
        }
示例#2
0
        public IfOrUnlessStatement(IfOrUnlessKind kind, IAstElement condition, IEnumerable <IAstElement> body)
        {
            var bodyList = body.ToList();

            Argument.RequireNotNullNotEmptyAndNotContainsNull("body", bodyList);

            this.Kind      = kind;
            this.Condition = condition;
            this.Body      = bodyList;
        }