Skip to content

Commit

Permalink
Merge pull request #179 from ZenCodeLang/feature/dont-prepare-classes…
Browse files Browse the repository at this point in the history
…-from-dependency-modules

Don't prepare classes from dependency modules
  • Loading branch information
stanhebben authored Oct 11, 2024
2 parents 7e3a6da + f31278d commit b7fc683
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,12 @@ public JavaClass visitVariant(VariantDefinition variant) {
}

private JavaClass visitClassCompiled(HighLevelDefinition definition, boolean startsEmpty, JavaClass.Kind kind) {
if (definition.getSuperType() != null)
prepare(definition.getSuperType());
if (definition.getSuperType() != null) {
// don't perform this step on definitions from other modules - it should already have been performed there
definition.getSuperType().asDefinition()
.filter(superDefinition -> module.module.module.equals(superDefinition.definition.getModule()))
.ifPresent(this::prepare);
}

NativeTag nativeTag = definition.getTag(NativeTag.class);
JavaNativeClass nativeClass = nativeTag == null ? null : nativeClasses.get(nativeTag.value);
Expand Down

0 comments on commit b7fc683

Please sign in to comment.