equal
deleted
inserted
replaced
1996 case BYTE: case SHORT: case CHAR: case INT: case LONG: case FLOAT: |
1996 case BYTE: case SHORT: case CHAR: case INT: case LONG: case FLOAT: |
1997 case DOUBLE: case BOOLEAN: case VOID: |
1997 case DOUBLE: case BOOLEAN: case VOID: |
1998 // replace with <BoxedClass>.TYPE |
1998 // replace with <BoxedClass>.TYPE |
1999 ClassSymbol c = types.boxedClass(type); |
1999 ClassSymbol c = types.boxedClass(type); |
2000 Symbol typeSym = |
2000 Symbol typeSym = |
2001 rs.access( |
2001 rs.accessBase( |
2002 rs.findIdentInType(attrEnv, c.type, names.TYPE, VAR), |
2002 rs.findIdentInType(attrEnv, c.type, names.TYPE, VAR), |
2003 pos, c.type, names.TYPE, true); |
2003 pos, c.type, names.TYPE, true); |
2004 if (typeSym.kind == VAR) |
2004 if (typeSym.kind == VAR) |
2005 ((VarSymbol)typeSym).getConstValue(); // ensure initializer is evaluated |
2005 ((VarSymbol)typeSym).getConstValue(); // ensure initializer is evaluated |
2006 return make.QualIdent(typeSym); |
2006 return make.QualIdent(typeSym); |