add a function to get annotations based on bitmask ceylon/ceylon-js#373