public void test_CompilationUnitImpl_getSource_Clock() throws Exception { CompilationUnitImpl unit = getCompUnit("testsource/Clock.dart"); Type[] types = unit.getTypes(); assertEquals(7, types.length); Type type = unit.getType("Number"); assertNotNull(type); assertEquals(7, type.getFields().length); assertEquals(2, type.getMethods().length); assertEquals(9, type.getChildren().length); assertEquals(unit, type.getParent()); }