use of org.eclipse.xtext.generator.trace.ITrace in project xtext-xtend by eclipse.
the class XtendTraceTests method testNoEmptyTraces.
@Test
public void testNoEmptyTraces() throws Exception {
testHelper.createFile("test/Foo.java", "package test;\n" + "public class Foo {\n" + " public void foo(Object it) {}\n" + " public void _foo(Object it) {}\n" + "}");
IFile sourceFile = testHelper.createFile("test/Zar", "package test\n" + "class Bar extends Foo {\n" + " def dispatch foo(String it) {print(it)}\n" + "}");
waitForBuild();
ITrace trace = traceInformation.getTraceToTarget(sourceFile);
assertNotNull(trace);
trace.getBestAssociatedLocation(new TextRegion(65, 0));
}
Aggregations