stil4m/elm-syntax

Let functions can't have documentation

jfmengels opened this issue · 0 comments

Currently a let function is represented by Expression.LetFunction Function, where Function is

type alias Function =
    { documentation : Maybe (Node Documentation)
    , signature : Maybe (Node Signature)
    , declaration : Node FunctionImplementation
    }

This makes it possible to represent a let function with a documentation attached to it, but this is forbidden by the parser and the Elm compiler. We should change the type here to not include a documentation.