Skip to content

Commit f4431fd

Browse files
committed
AddFlashPropertyMeta: update
1 parent 7f99573 commit f4431fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build_macros/flash/AddFlashPropertyMeta.hx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Feathers UI
3-
Copyright 2022 Bowler Hat LLC. All Rights Reserved.
3+
Copyright 2026 Bowler Hat LLC. All Rights Reserved.
44
55
This program is free software. You can redistribute and/or modify it in
66
accordance with the terms of the accompanying license agreement.
@@ -22,6 +22,7 @@ class AddFlashPropertyMeta {
2222
var classPack = classType.pack.join(".");
2323
if (packStart == null || (classPack != null && StringTools.startsWith(classType.pack.join("."), packStart))) {
2424
checkFields(classType, classType.fields.get());
25+
checkFields(classType, classType.statics.get());
2526
}
2627
default: // skip
2728
};
@@ -32,7 +33,7 @@ class AddFlashPropertyMeta {
3233
private static function checkField(classType:ClassType, field:ClassField):Void {
3334
switch (field.kind) {
3435
case FVar(read, write):
35-
if ((read.equals(AccCall) || write.match(AccCall)) && !field.meta.has(":flash.property")) {
36+
if ((read.equals(AccCall) || write.equals(AccCall)) && !field.meta.has(":flash.property")) {
3637
field.meta.add(":flash.property", [], field.pos);
3738
}
3839
default:

0 commit comments

Comments
 (0)