Bläddra i källkod

[neko] fix typing

Simon Krajewski 8 år sedan
förälder
incheckning
9b6d49b1ba
4 ändrade filer med 14 tillägg och 7 borttagningar
  1. 3 2
      std/neko/_std/sys/net/Socket.hx
  2. 3 1
      std/neko/vm/Loader.hx
  3. 5 3
      std/neko/vm/Module.hx
  4. 3 1
      std/neko/vm/Thread.hx

+ 3 - 2
std/neko/_std/sys/net/Socket.hx

@@ -22,8 +22,9 @@
 package sys.net;
 package sys.net;
 import haxe.io.Error;
 import haxe.io.Error;
 
 
-private enum SocketHandle {
-}
+@:callable
+@:coreType
+abstract SocketHandle { }
 
 
 private class SocketOutput extends haxe.io.Output {
 private class SocketOutput extends haxe.io.Output {
 
 

+ 3 - 1
std/neko/vm/Loader.hx

@@ -24,7 +24,9 @@ package neko.vm;
 /**
 /**
 	The Neko object that implements the loader.
 	The Neko object that implements the loader.
 **/
 **/
-enum LoaderHandle {
+@:callable
+@:coreType
+abstract LoaderHandle {
 }
 }
 
 
 /**
 /**

+ 5 - 3
std/neko/vm/Module.hx

@@ -24,7 +24,9 @@ package neko.vm;
 /**
 /**
 	The abstract Neko module handle.
 	The abstract Neko module handle.
 **/
 **/
-enum ModuleHandle {
+@:callable
+@:coreType
+abstract ModuleHandle {
 }
 }
 
 
 /**
 /**
@@ -211,12 +213,12 @@ class Module {
 	static var _module_exec = neko.Lib.load("std","module_exec",1);
 	static var _module_exec = neko.Lib.load("std","module_exec",1);
 	static var _module_name = neko.Lib.load("std","module_name",1);
 	static var _module_name = neko.Lib.load("std","module_name",1);
 	static var _module_exports = neko.Lib.load("std","module_exports",1);
 	static var _module_exports = neko.Lib.load("std","module_exports",1);
-	static var _module_loader : Dynamic = neko.Lib.load("std","module_loader",1);
+	static var _module_loader = neko.Lib.load("std","module_loader",1);
 	static var _module_code_size = neko.Lib.load("std","module_code_size",1);
 	static var _module_code_size = neko.Lib.load("std","module_code_size",1);
 	static var _module_nglobals = neko.Lib.load("std","module_nglobals",1);
 	static var _module_nglobals = neko.Lib.load("std","module_nglobals",1);
 	static var _module_global_get = neko.Lib.load("std","module_global_get",2);
 	static var _module_global_get = neko.Lib.load("std","module_global_get",2);
 	static var _module_global_set = neko.Lib.load("std","module_global_set",3);
 	static var _module_global_set = neko.Lib.load("std","module_global_set",3);
-	static var _module_read_string : Dynamic = neko.Lib.loadLazy("std","module_read_string",2);
+	static var _module_read_string = neko.Lib.loadLazy("std","module_read_string",2);
 	static var _module_set_name = neko.Lib.loadLazy("std","module_set_name",2);
 	static var _module_set_name = neko.Lib.loadLazy("std","module_set_name",2);
 
 
 }
 }

+ 3 - 1
std/neko/vm/Thread.hx

@@ -21,7 +21,9 @@
  */
  */
 package neko.vm;
 package neko.vm;
 
 
-enum ThreadHandle {
+@:callable
+@:coreType
+abstract ThreadHandle {
 }
 }
 
 
 class Thread {
 class Thread {