24
24
25
25
package net .fabricmc .loom .configuration .providers .mappings .parchment ;
26
26
27
+ import java .io .IOException ;
27
28
import java .util .Collections ;
28
29
import java .util .List ;
29
30
@@ -39,7 +40,7 @@ public record ParchmentTreeV1(
39
40
@ Nullable
40
41
List <Package > packages
41
42
) {
42
- public void visit (MappingVisitor visitor , String srcNamespace ) {
43
+ public void visit (MappingVisitor visitor , String srcNamespace ) throws IOException {
43
44
while (true ) {
44
45
if (visitor .visitHeader ()) {
45
46
visitor .visitNamespaces (srcNamespace , Collections .emptyList ());
@@ -68,7 +69,7 @@ public record Class(
68
69
@ Nullable
69
70
List <String > javadoc
70
71
) {
71
- public void visit (MappingVisitor visitor ) {
72
+ public void visit (MappingVisitor visitor ) throws IOException {
72
73
if (visitor .visitClass (name ())) {
73
74
if (!visitor .visitElementContent (MappedElementKind .CLASS )) {
74
75
return ;
@@ -99,7 +100,7 @@ public record Field(
99
100
@ Nullable
100
101
List <String > javadoc
101
102
) {
102
- public void visit (MappingVisitor visitor ) {
103
+ public void visit (MappingVisitor visitor ) throws IOException {
103
104
if (visitor .visitField (name , descriptor )) {
104
105
if (!visitor .visitElementContent (MappedElementKind .FIELD )) {
105
106
return ;
@@ -120,7 +121,7 @@ public record Method(
120
121
@ Nullable
121
122
List <String > javadoc
122
123
) {
123
- public void visit (MappingVisitor visitor ) {
124
+ public void visit (MappingVisitor visitor ) throws IOException {
124
125
if (visitor .visitMethod (name , descriptor )) {
125
126
if (!visitor .visitElementContent (MappedElementKind .METHOD )) {
126
127
return ;
@@ -145,7 +146,7 @@ public record Parameter(
145
146
@ Nullable
146
147
String javadoc
147
148
) {
148
- public void visit (MappingVisitor visitor ) {
149
+ public void visit (MappingVisitor visitor ) throws IOException {
149
150
if (visitor .visitMethodArg (index , index , name )) {
150
151
if (!visitor .visitElementContent (MappedElementKind .METHOD_ARG )) {
151
152
return ;
0 commit comments