Permalink
Browse files

Merge branch 'master' of github.com:facebook/pfff

  • Loading branch information...
2 parents 8efbbcf + 23a78ca commit 56534136ae7e10314d453dc19e408ae5f8a8ea9b @aryx aryx committed Dec 10, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lang_php/parsing/unparse_php.ml
View
5 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 5653413

Please sign in to comment.