1712 MethodSymbol meth = code.meth; |
1712 MethodSymbol meth = code.meth; |
1713 |
1713 |
1714 for (Attribute.TypeCompound ta : meth.typeAnnotations) { |
1714 for (Attribute.TypeCompound ta : meth.typeAnnotations) { |
1715 if (ta.position.pos == treePos) { |
1715 if (ta.position.pos == treePos) { |
1716 ta.position.offset = code.cp; |
1716 ta.position.offset = code.cp; |
1717 ta.position.lvarOffset[0] = code.cp; |
1717 ta.position.lvarOffset = new int[] { code.cp }; |
1718 ta.position.isValidOffset = true; |
1718 ta.position.isValidOffset = true; |
1719 } |
1719 } |
1720 } |
1720 } |
1721 |
1721 |
1722 if (code.meth.getKind() != ElementKind.CONSTRUCTOR |
1722 if (code.meth.getKind() != ElementKind.CONSTRUCTOR |
1724 return; |
1724 return; |
1725 |
1725 |
1726 for (Attribute.TypeCompound ta : meth.owner.typeAnnotations) { |
1726 for (Attribute.TypeCompound ta : meth.owner.typeAnnotations) { |
1727 if (ta.position.pos == treePos) { |
1727 if (ta.position.pos == treePos) { |
1728 ta.position.offset = code.cp; |
1728 ta.position.offset = code.cp; |
1729 ta.position.lvarOffset[0] = code.cp; |
1729 ta.position.lvarOffset = new int[] { code.cp }; |
1730 ta.position.isValidOffset = true; |
1730 ta.position.isValidOffset = true; |
1731 } |
1731 } |
1732 } |
1732 } |
1733 |
1733 |
1734 ClassSymbol clazz = meth.enclClass(); |
1734 ClassSymbol clazz = meth.enclClass(); |
1736 if (!s.getKind().isField()) |
1736 if (!s.getKind().isField()) |
1737 continue; |
1737 continue; |
1738 for (Attribute.TypeCompound ta : s.typeAnnotations) { |
1738 for (Attribute.TypeCompound ta : s.typeAnnotations) { |
1739 if (ta.position.pos == treePos) { |
1739 if (ta.position.pos == treePos) { |
1740 ta.position.offset = code.cp; |
1740 ta.position.offset = code.cp; |
1741 ta.position.lvarOffset[0] = code.cp; |
1741 ta.position.lvarOffset = new int[] { code.cp }; |
1742 ta.position.isValidOffset = true; |
1742 ta.position.isValidOffset = true; |
1743 } |
1743 } |
1744 } |
1744 } |
1745 } |
1745 } |
1746 } |
1746 } |