Simplify Scope.elm

This commit is contained in:
Jeroen Engels 2020-01-12 00:50:19 +01:00
parent dbf56e1e65
commit 21323cbdc3

View File

@ -122,17 +122,6 @@ addVisitors setterGetter schema =
|> setterGetter.get
|> unbox
|> popScope visitedElement direction
in
( [], setterGetter.set (Context innerContext) outerContext )
)
|> Rule.withExpressionVisitor
(\visitedElement direction outerContext ->
let
innerContext : InnerContext
innerContext =
outerContext
|> setterGetter.get
|> unbox
|> expressionVisitor visitedElement direction
in
( [], setterGetter.set (Context innerContext) outerContext )