Add ast/tokenizer tests to FSharp.Compiler.ComponentTests
Open
Area-Testing
Engineering
- Dominant language
- F#
- Stars
- 4.3k
- Forks
- 876
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 131
Description
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.
Contributor guide
Assessment
This issue has not been assessed yet.