int makeRef ( DiagnosticPosition pos , Type type ) { checkDimension ( pos , type ) ; if ( type . isAnnotated ( ) ) { return pool . put ( ( Object ) type ) ; } else { return pool . put ( type . hasTag ( CLASS ) ? ( Object ) type . tsym : ( Object ) type ) ; } }
Insert a reference to given type in the constant pool checking for an array with too many dimensions ; return the reference s index .