Closed player-03 closed 2 years ago
In that case we should probably also mention why we have @:keep
there.
How does that wording look?
"anywhere else" sounds somewhat imprecise, but I don't want to make this too complicated here. Thank you!
Possible alternatives:
display
, @:keep
is used to prevent DCE from removing it.display
is only called using reflection, @:keep
is used to prevent DCE from removing it.@:keep
is used to prevent DCE from removing display
.@:keep
metadata lets DCE know that display
isn't unused.
Otherwise, DCE would clean it up and break the sample. Granted, you wouldn't typically run a sample with DCE, but if users were to copy the code into their own project, they could run into the issue there.
Resolves #475.