示例#1
0
        public override int VisitMap <TOutput>(MapParser <TInput, TOutput> parser, int start)
        {
            var len = parser.Scan(_source, start);

            _prevWasMissing = len >= 0;
            return(len);
        }
            public override Parser <TInput> VisitMap <TOutput>(MapParser <TInput, TOutput> parser)
            {
                var length = parser.Scan(source, state.InputStart);

                state.InputLength   = length;
                this.prevWasMissing = length >= 0;
                return(null);
            }
示例#3
0
 public override Parser <TInput> VisitMap <TOutput>(MapParser <TInput, TOutput> parser)
 {
     state.InputLength = parser.Scan(source, state.InputStart);
     return(null);
 }
示例#4
0
 public override Parser <TInput> VisitMap <TOutput>(MapParser <TInput, TOutput> parser)
 {
     // safe to call scan here because map is limited.
     state.InputLength = parser.Scan(source, state.InputStart);
     return(null);
 }