Compare commits

..

3 Commits

Author SHA1 Message Date
Dan Korostelev
59d7407d1b haxe 4.2+ fix 2020-12-19 22:58:31 +01:00
Juraj Kirchheim
0680220a77 Release 0.21.1 2020-08-20 13:09:07 +02:00
Juraj Kirchheim
acaedc170a Fix issue with build field retrieval. 2020-08-20 13:08:28 +02:00
3 changed files with 7 additions and 4 deletions

View File

@@ -9,8 +9,8 @@
"contributors": [
"back2dos"
],
"version": "0.21.0",
"releasenote": "Expose autocompletion contents. Work around compiler metadata completion issues.",
"version": "0.21.1",
"releasenote": "Fix issue with build field retrieval.",
"tags": [
"tink",
"macro",

View File

@@ -23,9 +23,9 @@ class ClassBuilder {
target = Context.getLocalClass().get();
if (fields == null)
switch MacroApi.getBuildFields() {
fields = switch MacroApi.getBuildFields() {
case None: target.pos.error('Impossible to get builds fields now. Possible cause: https://github.com/HaxeFoundation/haxe/issues/9853');
case Some(_):
case Some(v): v;
}
this.initializeFrom = fields;

View File

@@ -172,6 +172,9 @@ class Types {
#if haxe4
isExtern: field.isExtern,
isFinal: field.isFinal,
#if (haxe >= version("4.2.0-rc.1"))
isAbstract: field.isAbstract,
#end
#end
}:ClassField)
]);