Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.

Commit

Permalink
* lang_php/parsing/unparse_php.ml:
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoann Padioleau authored and Yoann Padioleau committed Dec 9, 2012
1 parent 963cc43 commit 23a78ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lang_php/parsing/unparse_php.ml
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ let s_of_add = function
| AddStr s -> s
| AddNewlineAndIdent -> raise Todo

(* less:
* - use a AddedBefore where should use a AddedAfter on bar.spatch
* - put some newline in the Added of a spatch, add_statement.spatch
* too many places where we do ugly hack around newline
*)
let rec ast2_to_elts ast2 =
ast2 |> List.map (fun (_ast, (_s, toks)) ->
toks |> List.map (fun tok ->
Expand Down

0 comments on commit 23a78ca

Please sign in to comment.