Esempio n. 1
0
            private INonCaptureGroup ParseNonCaptureGroup()
            {
                ++index; // swallow ':'
                var item = Parse();

                return(NonCaptureGroup.Of(item));
            }
Esempio n. 2
0
        /// <summary>
        /// Creates a group that is not captured.
        /// </summary>
        /// <returns>The non-capture group.</returns>
        public static INonCaptureGroup From(IEnumerable <IExpression> members)
        {
            if (members == null)
            {
                throw new ArgumentNullException(nameof(members));
            }
            var group = new NonCaptureGroup();

            foreach (var expression in members)
            {
                group.Add(expression);
            }
            return(group);
        }