/// <summary> /// Consumes comments till EOL or EOF. /// </summary> public static bool ConsumeComments(this ICharStream stream, IPairFactory pairFactory, Pair parent) { if (stream.ConsumeSlComment(pairFactory, parent)) { return(true); } if (stream.ConsumeMlComment(pairFactory, parent)) { return(true); } return(false); }