dotnet / dotnet/fsharp

Add ast/tokenizer tests to FSharp.Compiler.ComponentTests

Open
#13,484 2 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.