1
Vote

Use ReadAheadEnumerator for TemplateTokenizer

description

The TemplateTokenizer implements its own version of reading ahead by one character. This should be implemented using the ReadAheadEnumerator as used by the TemplateToVbConverter.
A problem is that there is a class constraint on the element type, why the current implementation won't work on string (== IEnumerable<char>). At worst, there has to be a version with a struct constraint, internally working with a Nullable<T>.

comments