Just look to see whether it defines an attribute of the symbol on the left-hand side of the production of one of the symbols on the right-hand side.