Note in docs that declaration list is source order

This commit is contained in:
SiriusStarr 2022-01-03 15:31:10 -08:00 committed by Jeroen Engels
parent a4816ddc11
commit 1ce2984340
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -2666,7 +2666,8 @@ withDeclarationExitVisitor visitor (ModuleRuleSchema schema) =
{-| Add a visitor to the [`ModuleRuleSchema`](#ModuleRuleSchema) which will visit the module's {-| Add a visitor to the [`ModuleRuleSchema`](#ModuleRuleSchema) which will visit the module's
[declaration statements](https://package.elm-lang.org/packages/stil4m/elm-syntax/7.2.1/Elm-Syntax-Declaration) [declaration statements](https://package.elm-lang.org/packages/stil4m/elm-syntax/7.2.1/Elm-Syntax-Declaration)
(`someVar = add 1 2`, `type Bool = True | False`, `port output : Json.Encode.Value -> Cmd msg`), (`someVar = add 1 2`, `type Bool = True | False`, `port output : Json.Encode.Value -> Cmd msg`),
collect data and/or report patterns. to collect data and/or report patterns. The declarations will be in the same
order that they appear in the source code.
It is similar to [withDeclarationVisitor](#withDeclarationVisitor), but the It is similar to [withDeclarationVisitor](#withDeclarationVisitor), but the
visitor used with this function is called before the visitor added with visitor used with this function is called before the visitor added with