-
-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any reason for the 2000 character limit? #81
Comments
it’s more or less arbitrary, the limit is needed because the resulting program becomes too large and generating and validating it takes too long |
You could also build locally and use as a console app without the limit. Normally I thought quoter is most useful to show small samples of how to deal with a particular language construct. If you have a larger program, perhaps think of another way to simplify it or generalize somehow? |
Thanks for the quick reply. I mostly run into the limit when I want to get the roslyn code for my source gens and I have comments in my sample class. To work around the limit I currently pulled the repo and upped the limit in the |
This, for sure. Once that seemingly obvious point hit me, I face-palmed and then started using it exactly like that, because it usually is just one little snippet I need to figure out (since intellisense is essentially useless for those libraries - WTF is |
You can read about red and green trees here: and here for deeper technical info: |
Thanks for that! I hadn't bothered to dive into that, yet, once I realized "the way" it's done, using all the SyntaxFactory and all the appropriate I just wish that things in that API were mutable, because I tend to end up writing my own extension methods to allow a more fluent and much more concise use of it for the most common cases. |
I really love that you published
RoslynQuoter
on the web for easy access. What I often stumble over is the fact that "only" 2000 chars are supported.Is there a reason to not allow larger texts?
The text was updated successfully, but these errors were encountered: