equal
deleted
inserted
replaced
1707 if (clazz.isSubClass(sym, types) || sym.isMemberOf(clazz, types)) { |
1707 if (clazz.isSubClass(sym, types) || sym.isMemberOf(clazz, types)) { |
1708 return currentDepth > depth ? null : block.tree; |
1708 return currentDepth > depth ? null : block.tree; |
1709 } |
1709 } |
1710 break; |
1710 break; |
1711 case VARDEF: |
1711 case VARDEF: |
1712 if (((JCVariableDecl)block.tree).sym == sym && |
1712 if ((((JCVariableDecl)block.tree).sym == sym && |
1713 sym.owner.kind == MTH) { //only locals are captured |
1713 sym.owner.kind == MTH) || //only locals are captured |
|
1714 (block.locals != null && block.locals.contains(sym))) { |
1714 return currentDepth > depth ? null : block.tree; |
1715 return currentDepth > depth ? null : block.tree; |
1715 } |
1716 } |
1716 break; |
1717 break; |
1717 case BLOCK: |
1718 case BLOCK: |
1718 case METHODDEF: |
1719 case METHODDEF: |