Skip to content

Commit

Permalink
StyleMacro: hide deprecation warnings for generated clear style methods
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed Nov 15, 2023
1 parent bf82b45 commit 6bebb90
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/feathers/macros/StyleMacro.hx
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,16 @@ class StyleMacro {
kind: FieldType.FFun(clearFunction),
pos: field.pos,
meta: [
{
name: ":haxe.warning",
params: [
{
expr: EConst(CString("-WDeprecated")),
pos: field.pos
}
],
pos: field.pos
},
{
name: ":noCompletion",
pos: field.pos
Expand Down

0 comments on commit 6bebb90

Please sign in to comment.