فهرست منبع

Do not rewrite path for abstracts when applying @:native (closes #5993)

We don't need to do this, because it's already done for their implementation class as a result of forwarding @:native to them on creation,
and only classes can be restored, not abstracts, as far as I understood.
Dan Korostelev 8 سال پیش
والد
کامیت
091dd271a0
1فایلهای تغییر یافته به همراه0 افزوده شده و 4 حذف شده
  1. 0 4
      src/optimization/filters.ml

+ 0 - 4
src/optimization/filters.ml

@@ -776,10 +776,6 @@ let apply_native_paths ctx t =
 			let meta,path = get_real_path e.e_meta e.e_path in
 			e.e_meta <- meta :: e.e_meta;
 			e.e_path <- path;
-		| TAbstractDecl a ->
-			let meta,path = get_real_path a.a_meta a.a_path in
-			a.a_meta <- meta :: a.a_meta;
-			a.a_path <- path;
 		| _ ->
 			())
 	with Not_found ->