Skip to content

Commit

Permalink
[fix] compiler, parser: fragment should be always coerce
Browse files Browse the repository at this point in the history
  • Loading branch information
BourgerieQuentin committed Feb 23, 2012
1 parent 6f09c57 commit 1b39c01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opalang/classic_syntax/parser_utils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1143,9 +1143,10 @@ let arg_default (o,label) =
| Some o -> o

let create_fragment l label =
coerce_name_expr (
match l with
| [h] -> h
| l -> coerce_name_expr (record [("fragment", list_expr_of_expr_list l label)]) (xml_typename ())
| l -> (record [("fragment", list_expr_of_expr_list l label)])) (xml_typename ())

let create_textnode str =
coerce_name_expr (record [("text", string2 str)]) (xml_typename ())
Expand Down

0 comments on commit 1b39c01

Please sign in to comment.