You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Move the tests to tall. The old short style formatter doesn't support
new syntax and doesn't need to be tested.
- Add support for passing experiment flags with tests. The old way of
doing this was to just hardcode experiments inside the formatter when
a new feature was supported. That made sense when the formatter didn't
know about language version, but now that it does, it should probably
require experiment flags explicitly and tests for new features should
enable them.
- Move the code to handle "? into visitMapLiteralEntry(). The AST node
does have tokens for "?" and that way there's less special-case code
getting threaded through PieceFactory.
- Add some tests for comments appearing around "?". (Comments tend to be
a tricky corner of the formatter, so we test them heavily.)
0 commit comments