ソースを参照

[macro] fix TVar resolution (#11339)

Rudy Ges 1 年間 前
コミット
613b0291c4
1 ファイル変更36 行追加36 行削除
  1. 36 36
      std/haxe/macro/Type.hx

+ 36 - 36
std/haxe/macro/Type.hx

@@ -736,42 +736,6 @@ enum TConstant {
 	TSuper;
 }
 
-/**
-	Represents a variable in the typed AST.
- */
-typedef TVar = {
-	/**
-		The unique ID of the variable.
-	**/
-	public var id(default, never):Int;
-
-	/**
-		The name of the variable.
-	**/
-	public var name(default, never):String;
-
-	/**
-		The type of the variable.
-	**/
-	public var t(default, never):Type;
-
-	/**
-		Whether or not the variable has been captured by a closure.
-	**/
-	public var capture(default, never):Bool;
-
-	/**
-		Special information which is internally used to keep track of closure.
-		information
-	**/
-	public var extra(default, never):Null<{params:Array<TypeParameter>, expr:Null<TypedExpr>}>;
-
-	/**
-		The metadata of the variable.
-	**/
-	public var meta(default, never):Null<MetaAccess>;
-}
-
 /**
 	Represents a module type. These are the types that can be declared in a Haxe
 	module and which are passed to the generators (except `TTypeDecl`).
@@ -1017,6 +981,42 @@ enum TypedExprDef {
 	TIdent(s:String);
 }
 
+/**
+	Represents a variable in the typed AST.
+ */
+typedef TVar = {
+	/**
+		The unique ID of the variable.
+	**/
+	public var id(default, never):Int;
+
+	/**
+		The name of the variable.
+	**/
+	public var name(default, never):String;
+
+	/**
+		The type of the variable.
+	**/
+	public var t(default, never):Type;
+
+	/**
+		Whether or not the variable has been captured by a closure.
+	**/
+	public var capture(default, never):Bool;
+
+	/**
+		Special information which is internally used to keep track of closure.
+		information
+	**/
+	public var extra(default, never):Null<{params:Array<TypeParameter>, expr:Null<TypedExpr>}>;
+
+	/**
+		The metadata of the variable.
+	**/
+	public var meta(default, never):Null<MetaAccess>;
+}
+
 /**
 	Represents a typed AST node.
  */