Skip to content
This repository has been archived by the owner on Sep 17, 2022. It is now read-only.

Adding ValueModuleSpec #61

Merged
merged 24 commits into from
Mar 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ object ValueModule {
Definition(Chunk.empty, valueType, value)
}
}

final case class InputParameter[+Annotations](
name: Name,
tpe: Type[Annotations],
Expand Down Expand Up @@ -337,6 +338,7 @@ object ValueModule {
case _ @ValueCase.LiteralCase(_) => Set.empty
case c @ ValueCase.PatternMatchCase(_, _) => c.cases.flatMap(_._2).toSet ++ c.branchOutOn
case c @ ValueCase.RecordCase(_) => c.fields.flatMap(_._2).toSet
case c @ ValueCase.ReferenceCase(_) => Set(c.name)
case c @ ValueCase.TupleCase(_) => c.elements.flatten.toSet
case _ @ValueCase.UnitCase => Set.empty
case c @ ValueCase.UpdateRecordCase(_, _) => c.fieldsToUpdate.flatMap(_._2).toSet ++ c.valueToUpdate
Expand Down
Loading