Skip to content

Commit

Permalink
Remove Elm.Syntax.Port
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmengels committed Aug 3, 2024
1 parent eff82e1 commit dcd8713
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 36 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
- Changed `Elm.Syntax.Declaration.Declaration`:
- Removed `Destructuring` variant (it was not possible to get)
- `PortDeclaration` documentation's is now attached to the declaration
- `PortDeclaration Signature` -> `PortDeclaration Port` where `type alias Port = { documentation : Maybe (Node Documentation), signature : Signature }`
- `PortDeclaration Signature` -> `PortDeclaration { documentation : Maybe (Node Documentation), signature : Signature }`
- The comment for the port declaration is now removed from the `Elm.Syntax.File.File.comments` field.

- Add a new module `Elm.Syntax.DeconstructPattern` which mimics `Elm.Syntax.Pattern` but for patterns in functions and let declarations.
Expand Down
1 change: 0 additions & 1 deletion elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"Elm.Syntax.ModuleName",
"Elm.Syntax.Node",
"Elm.Syntax.Pattern",
"Elm.Syntax.Port",
"Elm.Syntax.Range",
"Elm.Syntax.Signature",
"Elm.Syntax.StringLiteralType",
Expand Down
6 changes: 4 additions & 2 deletions src/Elm/Syntax/Declaration.elm
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ These can be one of the following (all declared in `Declaration`):
-}

import Elm.Syntax.Documentation exposing (Documentation)
import Elm.Syntax.Expression exposing (Function)
import Elm.Syntax.Infix exposing (Infix)
import Elm.Syntax.Port exposing (Port)
import Elm.Syntax.Node exposing (Node)
import Elm.Syntax.Signature exposing (Signature)
import Elm.Syntax.Type exposing (Type)
import Elm.Syntax.TypeAlias exposing (TypeAlias)

Expand All @@ -29,5 +31,5 @@ type Declaration
= FunctionDeclaration Function
| AliasDeclaration TypeAlias
| CustomTypeDeclaration Type
| PortDeclaration Port
| PortDeclaration { documentation : Maybe (Node Documentation), signature : Node Signature }
| InfixDeclaration Infix
32 changes: 0 additions & 32 deletions src/Elm/Syntax/Port.elm

This file was deleted.

0 comments on commit dcd8713

Please sign in to comment.