Compare commits
3 Commits
0.21.0
...
isAbstract
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
59d7407d1b | ||
|
|
0680220a77 | ||
|
|
acaedc170a |
@@ -9,8 +9,8 @@
|
|||||||
"contributors": [
|
"contributors": [
|
||||||
"back2dos"
|
"back2dos"
|
||||||
],
|
],
|
||||||
"version": "0.21.0",
|
"version": "0.21.1",
|
||||||
"releasenote": "Expose autocompletion contents. Work around compiler metadata completion issues.",
|
"releasenote": "Fix issue with build field retrieval.",
|
||||||
"tags": [
|
"tags": [
|
||||||
"tink",
|
"tink",
|
||||||
"macro",
|
"macro",
|
||||||
|
|||||||
@@ -23,9 +23,9 @@ class ClassBuilder {
|
|||||||
target = Context.getLocalClass().get();
|
target = Context.getLocalClass().get();
|
||||||
|
|
||||||
if (fields == null)
|
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 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;
|
this.initializeFrom = fields;
|
||||||
|
|||||||
@@ -172,6 +172,9 @@ class Types {
|
|||||||
#if haxe4
|
#if haxe4
|
||||||
isExtern: field.isExtern,
|
isExtern: field.isExtern,
|
||||||
isFinal: field.isFinal,
|
isFinal: field.isFinal,
|
||||||
|
#if (haxe >= version("4.2.0-rc.1"))
|
||||||
|
isAbstract: field.isAbstract,
|
||||||
|
#end
|
||||||
#end
|
#end
|
||||||
}:ClassField)
|
}:ClassField)
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user