/ swift Public
refactor-check-compiles should generate both
dump-rewritten from a single
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
good first issue
Good for newcomers
Additional Detail from JIRA
At the moment
swift-refactortwice, once to generate the output for
-dump-textand once to generate the output for
-dump-rewritten. This is duplicated effort. We should instead add an option to
-dump-textto stdout and the contents of
-dump-rewrittento a file. That way we could be generating both representations at the same time.
If anyone wants to tackle this as a starter bug:
You would need to add a new flag like
-rewritten-output-filein swift-refactor.cpp that dumps the rewritten text to the specified output file, just like the
DumpType::REWRITTENcase does today here
Afterwards, you’d need to update refactory-check-compiles.py to use that new argument to
swift-refactorto retrieve the rewritten code together with the invocation that has
-dump-rewritten, getting rid of the path that calls
-dump-textand writes its stdout to the temp file.
The text was updated successfully, but these errors were encountered: