use of abs.frontend.ast.Model in project abstools by abstools.
the class RecoverTest method intfTest3.
@Test
public void intfTest3() {
Model m = assertParseError(" interface I extends J,K class C { }");
assertContainsDeclWithName(m, "I");
}
use of abs.frontend.ast.Model in project abstools by abstools.
the class RecoverTest method classDeclTest.
@Test
public void classDeclTest() {
Model m = assertParseError(" class C { class D { }");
assertContainsDeclWithName(m, "C");
}
use of abs.frontend.ast.Model in project abstools by abstools.
the class RecoverTest method classDeclTest3.
@Test
public void classDeclTest3() {
Model m = assertParseError(" class C implements I { XXX asd statasd asdasd }");
assertContainsDeclWithName(m, "C");
}
use of abs.frontend.ast.Model in project abstools by abstools.
the class RecoverTest method caseExp.
// FIXME: recovery fails:
// @Test
public void caseExp() {
Model m = assertParseError("interface K {} { Maybe<[Somewhere] K> m = Nothing; " + "[Far] K k = case m { Nothing => null; Just(x) => x; _ => null }; }");
assertContainsDeclWithName(m, "K");
}
use of abs.frontend.ast.Model in project abstools by abstools.
the class RecoverTest method intfTest.
@Test
public void intfTest() {
Model m = assertParseError(" interface I { class C { }");
assertContainsDeclWithName(m, "I");
}
Aggregations