Skip to content

Commit

Permalink
Add a CLEANUP comment + minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
OceanOak committed Sep 3, 2024
1 parent 268456a commit 3ede8fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion backend/src/LibExecution/ProgramTypesToDarkTypes.fs
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,6 @@ module Const =
| DEnum(_, _, [], "CUInt128", [ DUInt128 i ]) -> PT.Const.CUInt128 i
| DEnum(_, _, [], "CBool", [ DBool b ]) -> PT.Const.CBool b
| DEnum(_, _, [], "CString", [ DString s ]) -> PT.Const.CString s
| DEnum(_, _, [], "CChar", [ DChar c ]) -> PT.Const.CChar c
| DEnum(_, _, [], "CChar", [ DString c ]) -> PT.Const.CChar c
| DEnum(_, _, [], "CFloat", [ sign; DString w; DString f ]) ->
PT.Const.CFloat(Sign.fromDT sign, w, f)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,8 @@ module Darklang =
| Ok(Const c) -> ProgramTypes.Expr.EConstant(gid (), c)
| Ok(Fn f) -> ProgramTypes.Expr.EFnName(gid (), f)
| Error _ ->
ProgramTypes.Expr.EVariable (gid ()) constantOrFn.constantOrFn.name
// CLEANUP: Rethink this solution. It was added to allow failure during the first pass of parsing, where names aren't yet resolved
ProgramTypes.Expr.EVariable (gid ()) id.constantOrFn.name

| EFieldAccess(_, expr, (_, fieldName), _) ->
ProgramTypes.Expr.EFieldAccess(
Expand Down

0 comments on commit 3ede8fc

Please sign in to comment.