• 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

93.75
de.peeeq.wurstscript/src/main/java/de/peeeq/wurstscript/translation/imtranslation/UsedFunctions.java
1
package de.peeeq.wurstscript.translation.imtranslation;
2

3
import com.google.common.collect.Sets;
4
import de.peeeq.wurstscript.jassIm.*;
5

6
import java.util.Set;
7

8
public class UsedFunctions {
×
9

10

11
    public static Set<ImFunction> calculate(ImFunction imFunction) {
12
        final Set<ImFunction> result = Sets.newLinkedHashSet();
1✔
13
        imFunction.accept(new ImFunction.DefaultVisitor() {
1✔
14
            @Override
15
            public void visit(ImFunctionCall e) {
16
                super.visit(e);
1✔
17
                result.add(e.getFunc());
1✔
18
            }
1✔
19

20
            @Override
21
            public void visit(ImFuncRef e) {
22
                super.visit(e);
1✔
23
                result.add(e.getFunc());
1✔
24
            }
1✔
25

26
            @Override
27
            public void visit(ImMethodCall e) {
28
                super.visit(e);
1✔
29
                for(ImMethod sub : e.getMethod().getSubMethods()) {
1✔
30
                    result.add(sub.getImplementation());
1✔
31
                }
1✔
32
                result.add(e.getMethod().getImplementation());
1✔
33
            }
1✔
34
        });
35
        return result;
1✔
36
    }
37

38
}
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