Closed kant2002 closed 6 months ago
This PR can be considered draft
in a sense that it has flaws and require discussion. Also tired.
TextReader
. Lexers need direct access to TextReader
, but SourceFile diagnostics machinery require buffered access where precalculated lines. Possble highligt issue in SourceFile implementationWould like to start talking about directions.
Also I did not attempt to make API without breaking changes. Have to know opinion on the matter, and is breaking changes possible
I come to conclusion that features of SourceFile which trigger inconsistent behaviour is overkill. Would be good if SourceFile would no longer be derived from TextWriter, and for backward compatibility there either other class with similar functionality, or make breaking change.
Will try to summon @LPeter1997 to discuss things
Sorry for the super-delayed reply. I'll try to get to this in a week or so. I'm sadly working on other things and I have many-many things left here to tidy up.
@fornever I manage to change PR to the state where it does not have source breaking changes, and only binary one. What do you think, should I go further and make it binary compatible (which ideally proper way)
I'd say that Yoakke shouldn't care about binary compatibility for now.
Related: https://github.com/LanguageDev/Yoakke/issues/34#issuecomment-1003509503