فهرست منبع

inline position is now the inserted position and not the original one

Nicolas Cannasse 16 سال پیش
والد
کامیت
eb2230d41b
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 2 1
      doc/CHANGES.txt
  2. 1 0
      optimizer.ml

+ 2 - 1
doc/CHANGES.txt

@@ -13,9 +13,10 @@ TODO :
 	fixed bug in haxe.io.BytesInput.readBytes in Flash9 (was throwing Eof if full buffer can't be readed)
 	fixed bug in haxe.io.BytesInput.readBytes in Flash9 (was throwing Eof if full buffer can't be readed)
 	fixed implements/extends special classes when they are imported
 	fixed implements/extends special classes when they are imported
 	StringBuf now uses an array for JS implementation (around same on FF, faster on IE)
 	StringBuf now uses an array for JS implementation (around same on FF, faster on IE)
-	fixed assignament of field length in anonym objects (haXe/PHP)
+	fixed assignment of field length in anonym objects (haXe/PHP)
 	fixed addEventListener typing for flash9
 	fixed addEventListener typing for flash9
 	fixed __vector__ generation for AS3 target
 	fixed __vector__ generation for AS3 target
+	fix with inline functions : position is now the inserted position and not the original one (better error reporting)
 
 
 2008-11-23: 2.02
 2008-11-23: 2.02
 	Std.is(MyInterface, Class) now returns true (haXe/PHP)
 	Std.is(MyInterface, Class) now returns true (haXe/PHP)

+ 1 - 0
optimizer.ml

@@ -46,6 +46,7 @@ let type_inline ctx cf f ethis params tret p =
 	in
 	in
 	let has_vars = ref false in
 	let has_vars = ref false in
 	let rec map term e =
 	let rec map term e =
+		let e = { e with epos = p } in
 		match e.eexpr with
 		match e.eexpr with
 		| TLocal s ->
 		| TLocal s ->
 			{ e with eexpr = TLocal (local s) }
 			{ e with eexpr = TLocal (local s) }