| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -113,8 +113,8 @@ public static final class Builder implements NodeBuilder { | |||
| 113 | 113 | private List<Comment> comments = Collections.emptyList(); | |
| 114 | 114 | private Type type; | |
| 115 | 115 | private Description description; | |
| 116 | - private List<InputValueDefinition> inputValueDefinitions; | ||
| 117 | - private List<Directive> directives; | ||
| 116 | + private List<InputValueDefinition> inputValueDefinitions = new ArrayList<>(); | ||
| 117 | + private List<Directive> directives = new ArrayList<>(); | ||
| 118 | 118 | ||
| 119 | 119 | private Builder() { | |
| 120 | 120 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -107,9 +107,9 @@ public static final class Builder implements NodeBuilder { | |||
| 107 | 107 | private List<Comment> comments = Collections.emptyList(); | |
| 108 | 108 | private String name; | |
| 109 | 109 | private Description description; | |
| 110 | - private List<Type> implementz; | ||
| 111 | - private List<Directive> directives; | ||
| 112 | - private List<FieldDefinition> fieldDefinitions; | ||
| 110 | + private List<Type> implementz = new ArrayList<>(); | ||
| 111 | + private List<Directive> directives = new ArrayList<>(); | ||
| 112 | + private List<FieldDefinition> fieldDefinitions = new ArrayList<>(); | ||
| 113 | 113 | ||
| 114 | 114 | private Builder() { | |
| 115 | 115 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -372,6 +372,16 @@ public ObjectTypeDefinition createObjectTypeDefinition(GraphqlParser.ObjectTypeD | |||
| 372 | 372 | if (ctx.directives() != null) { | |
| 373 | 373 | def.directives(createDirectives(ctx.directives())); | |
| 374 | 374 | } | |
| 375 | + GraphqlParser.ImplementsInterfacesContext implementsInterfacesContext = ctx.implementsInterfaces(); | ||
| 376 | + List<Type> implementz = new ArrayList<>(); | ||
| 377 | + while (implementsInterfacesContext != null) { | ||
| 378 | + implementsInterfacesContext.typeName().stream().map(this::createTypeName).forEach(implementz::add); | ||
| 379 | + implementsInterfacesContext = implementsInterfacesContext.implementsInterfaces(); | ||
| 380 | + } | ||
| 381 | + def.implementz(implementz); | ||
| 382 | + if (ctx.fieldsDefinition() != null) { | ||
| 383 | + def.fieldDefinitions(createFieldDefinitions(ctx.fieldsDefinition())); | ||
| 384 | + } | ||
| 375 | 385 | return def.build(); | |
| 376 | 386 | } | |
| 377 | 387 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments