mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Fix compilation of IDEA plugin
This commit is contained in:
parent
3acf1f9538
commit
f08faba3d2
|
@ -9,14 +9,15 @@
|
|||
</content>
|
||||
<orderEntry type="jdk" jdkName="IntelliJ IDEA" jdkType="IDEA JDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.teavm.idea:openapi:2017.3.5" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.teavm.idea:annotations:2017.3.5" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.teavm.idea:jdom:2017.3.5" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.teavm.idea:util:2017.3.5" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.teavm.idea:jps-model:2017.3.5" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.teavm.idea:jps-builders:2017.3.5" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.teavm.idea:jps-builders-6:2017.3.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.teavm.idea:teavm:0.6.0-SNAPSHOT" level="project" />
|
||||
<orderEntry type="module-library">
|
||||
<library>
|
||||
<CLASSES>
|
||||
<root url="jar://$MODULE_DIR$/../idea-artifacts/dependencies/teavm.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</orderEntry>
|
||||
</component>
|
||||
<component name="teavm">
|
||||
<option name="mainClass" value="" />
|
||||
|
|
|
@ -26,6 +26,7 @@ import java.nio.charset.StandardCharsets;
|
|||
import java.util.ArrayDeque;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
|
@ -267,9 +268,11 @@ class TeaVMBuild {
|
|||
problemsToReport.add(result);
|
||||
} else {
|
||||
for (CallSite callSite : node.getCallerCallSites()) {
|
||||
CallLocation nextLocation = new CallLocation(callSite.getCaller().getMethod(),
|
||||
callSite.getLocation());
|
||||
workList.add(new Step(new CallLocationList(step.location, step.locationList), nextLocation));
|
||||
for (CallGraphNode caller : callSite.getCallers()) {
|
||||
CallLocation nextLocation = new CallLocation(caller.getMethod(),
|
||||
getLocation(callSite.getLocations(caller)));
|
||||
workList.add(new Step(new CallLocationList(step.location, step.locationList), nextLocation));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -277,6 +280,10 @@ class TeaVMBuild {
|
|||
return problemsToReport;
|
||||
}
|
||||
|
||||
private TextLocation getLocation(Collection<? extends TextLocation> location) {
|
||||
return location.isEmpty() ? null : location.iterator().next();
|
||||
}
|
||||
|
||||
private boolean isValid(ProblemToReport problemToReport) {
|
||||
return problemToReport.path != null && (problemToReport.line >= 0 || problemToReport.startOffset >= 0);
|
||||
}
|
||||
|
|
|
@ -10,14 +10,15 @@
|
|||
</content>
|
||||
<orderEntry type="jdk" jdkName="IntelliJ IDEA" jdkType="IDEA JDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.teavm.idea:openapi:2017.3.5" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.teavm.idea:annotations:2017.3.5" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.teavm.idea:util:2017.3.5" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.teavm.idea:jdom:2017.3.5" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.teavm.idea:jps-model:2017.3.5" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.teavm.idea:jps-builders:2017.3.5" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.teavm.idea:jps-builders-6:2017.3.5" level="project" />
|
||||
<orderEntry type="module" module-name="teavm-jps-common" />
|
||||
<orderEntry type="library" name="Maven: org.teavm.idea:teavm:0.6.0-SNAPSHOT" level="project" />
|
||||
<orderEntry type="module-library">
|
||||
<library>
|
||||
<CLASSES>
|
||||
<root url="jar://$MODULE_DIR$/../idea-artifacts/dependencies/teavm.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</orderEntry>
|
||||
</component>
|
||||
</module>
|
Loading…
Reference in New Issue
Block a user