Lines Matching defs:bounds
44 // upper bounds - evaluated lazily
45 private Type[] bounds;
47 // The ASTs for the bounds. We are required to evaluate the bounds
49 // for the bounds. This also neatly solves the
50 // problem with F-bounds - you can't reify them before the formal
65 // accessor for ASTs for bounds. Must not be called after
66 // bounds have been evaluated, because we might throw the ASTs
69 // check that bounds were not evaluated yet
70 assert(bounds == null);
79 * @param bs - an array of ASTs representing the bounds for the type
82 * objects that represent the bounds of this type variable
83 * @return A type variable with name, bounds, declaration and factory
108 * bounds refers to a non-existent type declaration
110 * bounds refer to a parameterized type that cannot be instantiated
116 // lazily initialize bounds if necessary
117 if (bounds == null) {
120 // keeping ts and bounds separate helps with threads
129 bounds = ts;
132 return bounds.clone(); // return cached bounds