Commit d64294c
Only visit types with parent ATs when inheriting
When inheriting method ATs, classes may need to be processed that are
not found in the source AT set as they inherit their ATs from their
parent.
The previous iteration would accomplish this by simply visiting the
entire source root.
The commit introduces a simplistic heuristic, filtering out any types
from processing that do not have a parent with an AT defined.
While this is not exact, e.g. a class will still be processed if its
parent type has a field changed via AT, the accesstransformer library
used does not expose the types of ATs defined on a class, making this a
best effort approximation.1 parent 50ffbbd commit d64294c
File tree
1 file changed
+19
-1
lines changed- accesstransformers/src/main/java/net/neoforged/jst/accesstransformers
1 file changed
+19
-1
lines changedLines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
72 | 90 | | |
73 | 91 | | |
74 | 92 | | |
| |||
0 commit comments