Changeset 3876
- Timestamp:
- 06/18/09 20:21:35 (8 months ago)
- Location:
- trunk/ProjectFortress
- Files:
-
- 4 added
- 2 modified
-
compiler_tests/XXX5a.twice.test (added)
-
src/com/sun/fortress/compiler/StaticChecker.java (modified) (2 diffs)
-
src/com/sun/fortress/compiler/index/CompilationUnitIndex.java (modified) (1 diff)
-
src/com/sun/fortress/scala_src/linker (added)
-
src/com/sun/fortress/scala_src/linker/ApiLinker.scala (added)
-
src/com/sun/fortress/scala_src/linker/CompoundApiChecker.scala (added)
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); -
trunk/ProjectFortress/src/com/sun/fortress/compiler/index/CompilationUnitIndex.java
r3760 r3876 82 82 } 83 83 84 public Set<APIName> comprises() { 85 final Set<APIName> result = new HashSet<APIName>(); 86 for (APIName _apiName : ast().getComprises()) { 87 result.add(_apiName); 88 } 89 return result; 90 } 91 84 92 public Map<Id, Variable> variables() { return _variables; } 85 93

