- Timestamp:
- 06/18/09 20:21:35 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/ProjectFortress/src/com/sun/fortress/compiler/StaticChecker.java
r3865 r3876 45 45 import com.sun.fortress.nodes.Type; 46 46 import com.sun.fortress.repository.FortressRepository; 47 import com.sun.fortress.scala_src.linker.ApiLinker; 48 import com.sun.fortress.scala_src.linker.CompoundApiChecker; 47 49 import com.sun.fortress.scala_src.typechecker.CoercionTest; 48 50 import com.sun.fortress.scala_src.typechecker.ExportChecker; … … 290 292 GlobalEnvironment env, 291 293 FortressRepository repository) { 294 295 // Check if this is a compound API, and, if so, link it into a single API. 296 List<StaticError> errors = new CompoundApiChecker(env, repository).check(api); 297 if (! errors.isEmpty()) { 298 return new TypeCheckerResult(api.ast(), errors); 299 } 300 api = new ApiLinker(env, repository).link(api); 301 292 302 // Check type hierarchy to ensure acyclicity. 293 List<StaticError>errors = new TypeHierarchyChecker(api, env, repository).checkHierarchy();303 errors = new TypeHierarchyChecker(api, env, repository).checkHierarchy(); 294 304 if (! errors.isEmpty()) { 295 305 return new TypeCheckerResult(api.ast(), errors);

