private static final Logger LOG = LoggerFactory.getLogger(RootStatementContext.class);
// These namespaces are well-known and not needed after the root is cleaned up
private static final Map<Class<?>, SweptNamespace> SWEPT_NAMESPACES = ImmutableMap.of(
+ // FIXME: YANGTOOLS-1197: sweep GroupingNamespace
+ // GroupingNamespace.class, new SweptNamespace(GroupingNamespace.class),
// FIXME: somehow these two end up being referenced post-sweep
// this probably means we have a cross-module reference we do not account for
-// GroupingNamespace.class, new SweptNamespace(GroupingNamespace.class),
-// TypeNamespace.class, new SweptNamespace(TypeNamespace.class),
+ // TypeNamespace.class, new SweptNamespace(TypeNamespace.class),
SchemaTreeNamespace.class, new SweptNamespace(SchemaTreeNamespace.class));
private final @NonNull SourceSpecificContext sourceContext;
}
private static GroupingDefinition getSourceGrouping(final Current<QName, ?> stmt) {
+ // FIXME: YANGTOOLS-1197: we have this lookup in inference action, just store a replica in local namespace
+ // during apply and pick it up when we build the statement
return (GroupingDefinition) stmt.getFromNamespace(GroupingNamespace.class, stmt.getArgument()).buildEffective();
}