ソースを参照

fix regression in Compiler.include (closes #5847)

Simon Krajewski 8 年 前
コミット
ac92c1ddc8
3 ファイル変更3 行追加2 行削除
  1. 1 0
      extra/CHANGES.txt
  2. 1 1
      extra/ImportAll.hx
  3. 1 1
      std/haxe/macro/Compiler.hx

+ 1 - 0
extra/CHANGES.txt

@@ -3,6 +3,7 @@
 	Bugfixes:
 
 	all : fixed top-down inference infinite recursion issue (#5848)
+	all : fixed regression in Compiler.include (#5847)
 
 2016-11-29: 3.4.0-RC1
 

+ 1 - 1
extra/ImportAll.hx

@@ -71,7 +71,7 @@ class ImportAll {
 				if( file == ".svn" || file == "_std" )
 					continue;
 				var full = (pack == "") ? file : pack + "." + file;
-				if( StringTools.endsWith(file, ".hx") && file.indexOf(".") < 0 ) {
+				if( StringTools.endsWith(file, ".hx") && file.substr(0, file.length - 3).indexOf(".") < 0 ) {
 					var cl = full.substr(0, full.length - 3);
 					switch( cl ) {
 					case "ImportAll", "neko.db.MacroManager": continue;

+ 1 - 1
std/haxe/macro/Compiler.hx

@@ -213,7 +213,7 @@ class Compiler {
 				continue;
 			found = true;
 			for( file in sys.FileSystem.readDirectory(path) ) {
-				if( StringTools.endsWith(file, ".hx") && file.indexOf(".") < 0 ) {
+				if( StringTools.endsWith(file, ".hx") && file.substr(0, file.length - 3).indexOf(".") < 0 ) {
 					var cl = prefix + file.substr(0, file.length - 3);
 					if( skip(cl) )
 						continue;