Skip to content

Commit

Permalink
Merge pull request #26 from AttilaMihaly/master
Browse files Browse the repository at this point in the history
Fix merge issue. #21
  • Loading branch information
AttilaMihaly committed Mar 19, 2020
2 parents f0a80dc + f41b1df commit 0cdd2d3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Morphir/Elm/Frontend.elm
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,19 @@ mapProcessedFile currentPackagePath processedFile modulesSoFar =
|> Node.value
|> ElmModule.exposingList

moduleDeclsSoFar =
modulesSoFar
|> Dict.map
(\path def ->
Module.definitionToDeclaration def
)

moduleResolver : ModuleResolver
moduleResolver =
Resolve.createModuleResolver
(Resolve.createPackageResolver Dict.empty currentPackagePath moduleDeclsSoFar)
(processedFile.file.imports |> List.map Node.value)

typesResult : Result Errors (Dict Name (AccessControlled (Type.Definition SourceLocation)))
typesResult =
mapDeclarationsToType processedFile.parsedFile.sourceFile moduleExpose (processedFile.file.declarations |> List.map Node.value)
Expand Down

0 comments on commit 0cdd2d3

Please sign in to comment.