Skip to content

Commit e228104

Browse files
authored
Partial Haxe 3.3.0 support (#287)
1 parent 56276be commit e228104

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

build.hxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-cp src
22
-cp test
3-
-lib haxeparser:3.2.0
3+
-lib haxeparser
44
-lib compiletime:2.6.0
55
-lib hxargs
66

src/checkstyle/utils/FieldUtils.hx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ class FieldUtils {
6060
var kind = d.flags.contains(HInterface) ? INTERFACE : CLASS;
6161
return {decl:decl, kind:kind};
6262
case EAbstract(a):
63-
var kind = a.meta.hasMeta(":kwdenum") ? ENUM_ABSTRACT : ABSTRACT;
63+
var metaName = #if (haxeparser > "3.2.0") ":enum" #else ":kwdenum" #end;
64+
var kind = a.meta.hasMeta(metaName) ? ENUM_ABSTRACT : ABSTRACT;
6465
return {decl:decl, kind:kind};
6566
case ETypedef(d):
6667
return return {decl:decl, kind:TYPEDEF};

0 commit comments

Comments
 (0)