Skip to content

Commit

Permalink
[macro] fix TVar resolution (HaxeFoundation#11339)
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz authored and 0b1kn00b committed Jan 25, 2024
1 parent 5dc516f commit 485cbe3
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions std/haxe/macro/Type.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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`).
Expand Down Expand Up @@ -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.
*/
Expand Down

0 comments on commit 485cbe3

Please sign in to comment.