浏览代码

[cs/java] recurse into TMeta in ExpressionUnwrap filter (see #6267)

Dan Korostelev 8 年之前
父节点
当前提交
d420a0cec1
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/generators/gencommon/expressionUnwrap.ml

+ 2 - 0
src/generators/gencommon/expressionUnwrap.ml

@@ -628,6 +628,8 @@ let configure gen =
 			{ e with eexpr = TFor(v,it, traverse (mk_block block)) }
 		| TFunction (tfunc) ->
 			{ e with eexpr = TFunction({ tfunc with tf_expr = traverse (mk_block tfunc.tf_expr) }) }
+		| TMeta (m, e2) ->
+			{ e with eexpr = TMeta (m, traverse e2)}
 		| _ -> e (* if expression doesn't have a block, we will exit *)
 	in
 	gen.gsyntax_filters#add "expression_unwrap" (PCustom priority) traverse