Skip to content

Commit

Permalink
Refactor ReferenceType handling in foldType2 function
Browse files Browse the repository at this point in the history
  • Loading branch information
usr3-1415 committed Jan 6, 2025
1 parent 90dfd2b commit 8b268f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FrontEndAst/Asn1Fold.fs
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,9 @@ let foldType2
let newChildren = ti.children |> foldMap (fun curState ch -> chChildFunc ch (loopType (Some {ParentInfo.parent = t ; name=Some ch.Name.Value; parentData=parentData}) ch.Type curState)) ns
choiceFunc pi t ti newChildren
| ReferenceType ti ->
//match CommonTypes.ProgrammingLanguage.ActiveLanguages.Head with
//| CommonTypes.ProgrammingLanguage.Scala -> refType pi t ti (loopType pi ti.resolvedType us)
//| _ ->
match CommonTypes.ProgrammingLanguage.ActiveLanguages.Head with
| CommonTypes.ProgrammingLanguage.Scala -> refType pi t ti (loopType pi ti.resolvedType us)
| _ ->
match ti.hasExtraConstrainsOrChildrenOrAcnArgs with
| true ->
refType pi t ti (loopType pi ti.resolvedType us)
Expand Down

0 comments on commit 8b268f9

Please sign in to comment.