gwt /
gwt /
e672bc0d3a946b93e851fcd53da615cd9d992999 Refactored JReferenceType hierarchy in compiler.
- JDeclaredType is a common supertype for JClassType & JInterfaceType. It represents real, declared types that have source code, like Object, String, ArrayList, or Comparable.
- JDeclaredType is now used at many call sites instead of JReferenceType; significantly JProgram.getDeclaredTypes() and HasEnclosingType.getEnclosingType() now return a JDeclaredType.
- JArrayType is no long a subtype of JClassType; instead it's a direct subtype of JReferenceType.
- Much of the JReferenceType interface and almost of of its implementation was pushed down into JDeclaredType. Combined the moving JArrayType, this should save memory since array types no longer need any collections.
- The former direct field accesses in JReferenceType are now encapsulated.
- Memory-light collections used to hold the list of fields and methods in a type.
Review by: spoon
Suggestions by: spoon
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@5264 8db76d5a-ed1c-0410-87a9-c151d255dfc7
36 files changed