Commit 4c56d910 authored by Johannes Mey's avatar Johannes Mey
Browse files

create a special constructor when both components and relations are not empty

parent dca69ff0
Pipeline #4917 passed with stage
in 1 minute and 35 seconds
......@@ -228,17 +228,7 @@ aspect Constructors {
}
//--- needsConstructor ---
syn boolean TypeDecl.needsConstructor() {
if (componentsTransitive().isEmpty()) {
return false;
}
if (!relationComponents().isEmpty()) {
return true;
}
return hasSuper()
&& getSuper().decl() != null
&& getSuper().decl().needsConstructor();
}
syn boolean TypeDecl.needsConstructor() = !componentsTransitive().isEmpty() && !relationComponentsTransitive().isEmpty();
//--- inConstructor ---
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment