Skip to content

Commit

Permalink
Documentation: describe convertToNewSyntax flags
Browse files Browse the repository at this point in the history
Also, add the entry describing type wildcards.
  • Loading branch information
kitbellew committed Aug 28, 2022
1 parent 466fe87 commit a9369b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -3304,8 +3304,14 @@ This section describes rules which are applied if the appropriate dialect (e.g.,
If this flag is enabled, the following new syntax will be applied:

- [control syntax](https://dotty.epfl.ch/docs/reference/other-new-features/control-syntax.html)
- if dialect sets `allowSignificantIndentation`
- [vararg splices](https://dotty.epfl.ch/docs/reference/changed-features/vararg-splices.html)
- vararg `: _*` or `@ _*` to `*` if dialect sets `allowPostfixStarVarargSplices`
- [imports](https://dotty.epfl.ch/docs/reference/changed-features/imports.html)
- import wildcard `_` to `*` if dialect sets `allowStarWildcardImport`
- import rename `=>` to `as` if dialect sets `allowAsForImportRename`
- [wildcards](https://docs.scala-lang.org/scala3/reference/changed-features/wildcards.html)
- type wildcard `_` to `?` if dialect sets `allowQuestionMarkPlaceholder`

### `rewrite.scala3.removeOptionalBraces`

Expand Down

0 comments on commit a9369b5

Please sign in to comment.