Permalink
Browse files

* lang_php/parsing/unparse_php.ml:

  • Loading branch information...
1 parent 963cc43 commit 23a78cac0c587bc43e959919d1e83bd6b93ec0ff Yoann Padioleau committed Dec 9, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lang_php/parsing/unparse_php.ml
@@ -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 ->

0 comments on commit 23a78ca

Please sign in to comment.