Skip to content
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

Add ast/tokenizer tests to FSharp.Compiler.ComponentTests #13484

Open
auduchinok opened this issue Jul 11, 2022 · 2 comments
Open

Add ast/tokenizer tests to FSharp.Compiler.ComponentTests #13484

auduchinok opened this issue Jul 11, 2022 · 2 comments

Comments

@auduchinok
Copy link
Member

Please add a set of helpers that would allow dumping F# syntax trees and tokens, i.e. results of running the compiler with --ast and --tokenize flags. That would significantly simplify adding more parser tests, as well as make existing ones cover much more things once they're migrated.

It would be great if the helpers could allow choosing between dumping the tree, dumping the tokens, or dumping both. It could be subsequent verifyTokens and verifyAst calls.

@auduchinok auduchinok added the Bug label Jul 11, 2022
@auduchinok auduchinok changed the title Add test/tokenizer tests to FSharp.Compiler.ComponentTests Add ast/tokenizer tests to FSharp.Compiler.ComponentTests Jul 11, 2022
@vzarytovskii vzarytovskii added this to the Backlog milestone Jul 11, 2022
@auduchinok
Copy link
Member Author

@vzarytovskii Is there a chance this could be planned for some near future? It'd simplify working on the parser a lot 🙂

@vzarytovskii
Copy link
Member

@vzarytovskii Is there a chance this could be planned for some near future? It'd simplify working on the parser a lot 🙂

Haven't planned it yet. Probably later next month.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New
Development

No branches or pull requests

3 participants