• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wurstscript / WurstScript / 228

29 Nov 2023 05:00PM UTC coverage: 62.48% (-0.09%) from 62.574%
228

push

circleci

web-flow
Show dialog for choosing game path, cleanup (#1083)

* show dialog for choosing game path

* cleanup code

* remove logs and refactor

* remove confusing mpq error, make some mpq loads readonly

17295 of 27681 relevant lines covered (62.48%)

0.62 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

81.82
de.peeeq.wurstscript/src/main/java/de/peeeq/wurstscript/attributes/SubClasses.java
1
package de.peeeq.wurstscript.attributes;
2

3
import de.peeeq.wurstscript.ast.ClassDef;
4
import de.peeeq.wurstscript.ast.ConstructorDef;
5
import de.peeeq.wurstscript.ast.ConstructorDefs;
6
import de.peeeq.wurstscript.types.WurstTypeClass;
7
import org.eclipse.jdt.annotation.Nullable;
8

9
public class SubClasses {
×
10

11

12
    public static @Nullable ConstructorDef getSuperConstructor(ConstructorDef constr) {
13
        ClassDef c = constr.attrNearestClassDef();
1✔
14
        if (c == null) {
1✔
15
            return null;
×
16
        }
17
        WurstTypeClass ct = c.attrTypC();
1✔
18
        WurstTypeClass superClass = ct.extendedClass();
1✔
19
        if (superClass == null) {
1✔
20
            return null;
1✔
21
        }
22
        // call super constructor
23
        ClassDef superClassDef = superClass.getDef();
1✔
24
        ConstructorDefs constructors = superClassDef.getConstructors();
1✔
25
        return OverloadingResolver.resolveSuperCall(constructors, constr);
1✔
26
    }
27

28
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc