Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
990096cfd5 | ||
![]() |
1df0dd6d6c | ||
![]() |
6b8be33832 | ||
![]() |
8b769e5938 | ||
![]() |
0ca2e371d4 |
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -13,7 +13,6 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
haxe-version:
|
||||
- "3.4.7"
|
||||
- stable
|
||||
- nightly
|
||||
target:
|
||||
|
@@ -9,8 +9,8 @@
|
||||
"contributors": [
|
||||
"back2dos"
|
||||
],
|
||||
"version": "1.0.1",
|
||||
"releasenote": "Haxe 4.3 support.",
|
||||
"version": "1.0.3",
|
||||
"releasenote": "Make Member::hasMeta null safe.",
|
||||
"tags": [
|
||||
"tink",
|
||||
"macro",
|
||||
|
@@ -99,6 +99,15 @@ abstract Member(Field) from Field to Field {
|
||||
if (this.meta == null) [];
|
||||
else [for (tag in this.meta) if (tag.name == name) tag];
|
||||
|
||||
public function hasMeta(name)
|
||||
return switch this.meta {
|
||||
case null | []: false;
|
||||
case meta:
|
||||
for (m in meta)
|
||||
if (m.name == name) return true;
|
||||
false;
|
||||
}
|
||||
|
||||
public inline function asField():Field return this;
|
||||
public function publish()
|
||||
if (this.access == null) this.access = [APublic];
|
||||
|
Reference in New Issue
Block a user