Skip to content

Commit

Permalink
don't use Loc_None in typed_parse_in_context
Browse files Browse the repository at this point in the history
  • Loading branch information
digama0 authored and mn200 committed Nov 17, 2024
1 parent 9666317 commit e568888
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/parse/Parse.sml
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,9 @@ fun grammar_typed_parse_in_context gs ty ctxt q =

fun typed_parse_in_context ty ctxt q =
let
fun mkA q = Absyn.TYPED(locn.Loc_None, Absyn q, Pretype.fromType ty)
fun mkA q = let
val a = Absyn q
in Absyn.TYPED(Absyn.locn_of_absyn a, a, Pretype.fromType ty) end
in
case seq.cases (TermParse.prim_ctxt_termS mkA (term_grammar()) ctxt q) of
SOME (tm, _) => tm
Expand Down

0 comments on commit e568888

Please sign in to comment.