Compare commits

...

5 Commits
1.0.1 ... 1.0.3

Author SHA1 Message Date
Juraj Kirchheim
990096cfd5 Release 1.0.3 2023-11-09 07:34:56 +01:00
Juraj Kirchheim
1df0dd6d6c Make Member::hasMeta null safe. 2023-11-09 07:33:17 +01:00
Juraj Kirchheim
6b8be33832 Release 1.0.2 2023-11-09 06:35:53 +01:00
Juraj Kirchheim
8b769e5938 Add Member::hasMeta. 2023-11-09 06:32:57 +01:00
Juraj Kirchheim
0ca2e371d4 Remove 3.4.7 from CI. 2023-04-06 06:44:26 +00:00
3 changed files with 11 additions and 3 deletions

View File

@@ -13,7 +13,6 @@ jobs:
strategy:
matrix:
haxe-version:
- "3.4.7"
- stable
- nightly
target:

View File

@@ -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",

View File

@@ -98,6 +98,15 @@ abstract Member(Field) from Field to Field {
return
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()