-
Notifications
You must be signed in to change notification settings - Fork 805
Commit
* Add unit tests for interp strings with string expr Sanity check that lowering to concat does not break these simple cases * Add IL test for lowering to concat * Add optimization in CheckExpressions Initial attempt with many TODOs, also not sure whether it should be done in checking, but it seems that later we would have to again parse the string (since CheckExpressions is going from AST version of an interpolated string to a sprintf call basically) * Do not optimize when format specifiers are there Cannot really optimize this way if width and other flags are specified. Typed interpolated expressions should be possible to support, but skipping them for now (TODO). * Adjust expected length of codegen * Filter out empty string parts E.g. $"{x}{y}" has 5 string parts, including 3 empty strings * Detect format specifiers better There were false positives before * Refactor, improve regex * Unrelated indentation fix in parser * Use language feature flag * FSComp.txt auto-update * Add release notes * Add langversion flag to some unit tests * Fix typo in src/Compiler/FSComp.txt Co-authored-by: Petr <[email protected]> * Update .xlf and undo change to CheckFormatStrings * Add a test, undo change in CheckFormatString * Refactor based on review suggestions * Add more IL tests * Add comments lost in refactoring * Automated command ran: fantomas Co-authored-by: psfinaki <[email protected]> --------- Co-authored-by: Adam Boniecki <[email protected]> Co-authored-by: Petr <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.