Преглед изворни кода

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 implements/extends special classes when they are imported
 	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 __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
 	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
 	let has_vars = ref false in
 	let rec map term e =
+		let e = { e with epos = p } in
 		match e.eexpr with
 		| TLocal s ->
 			{ e with eexpr = TLocal (local s) }