}
void linkAugmentationTarget(final GeneratorContext context) {
- // FIXME: we need two-step resolution here:
-
-// if (targetSchemaNode instanceof DataSchemaNode && ((DataSchemaNode) targetSchemaNode).isAddedByUses()) {
-// if (targetSchemaNode instanceof DerivableSchemaNode) {
-// targetSchemaNode = ((DerivableSchemaNode) targetSchemaNode).getOriginal().orElse(null);
-// }
-// if (targetSchemaNode == null) {
-// throw new IllegalStateException("Failed to find target node from grouping in augmentation " + augSchema
-// + " in module " + context.module().getName());
-// }
-// }
+ // FIXME: do we need two-step resolution here? we probably have solved this somehow, or it's part of...
+ // FIXME: MDSAL-696: this looks like the sort of check which should be involved in replacing getOriginal()
+ //
+ // if (targetSchemaNode instanceof DataSchemaNode && ((DataSchemaNode) targetSchemaNode).isAddedByUses()) {
+ // if (targetSchemaNode instanceof DerivableSchemaNode) {
+ // targetSchemaNode = ((DerivableSchemaNode) targetSchemaNode).getOriginal().orElse(null);
+ // }
+ // if (targetSchemaNode == null) {
+ // throw new IllegalStateException("Failed to find target node from grouping in augmentation "
+ // + augSchema + " in module " + context.module().getName());
+ // }
+ // }
setTargetGenerator(context.resolveSchemaNode(statement().argument()));
}