1097 // let the owner of the environment be a freshly |
1097 // let the owner of the environment be a freshly |
1098 // created BLOCK-method. |
1098 // created BLOCK-method. |
1099 Env<AttrContext> localEnv = |
1099 Env<AttrContext> localEnv = |
1100 env.dup(tree, env.info.dup(env.info.scope.dupUnshared())); |
1100 env.dup(tree, env.info.dup(env.info.scope.dupUnshared())); |
1101 localEnv.info.scope.owner = |
1101 localEnv.info.scope.owner = |
1102 new MethodSymbol(tree.flags | BLOCK, names.empty, null, |
1102 new MethodSymbol(tree.flags | BLOCK | |
1103 env.info.scope.owner); |
1103 env.info.scope.owner.flags() & STRICTFP, names.empty, null, |
|
1104 env.info.scope.owner); |
1104 if ((tree.flags & STATIC) != 0) localEnv.info.staticLevel++; |
1105 if ((tree.flags & STATIC) != 0) localEnv.info.staticLevel++; |
1105 |
1106 |
1106 // Attribute all type annotations in the block |
1107 // Attribute all type annotations in the block |
1107 memberEnter.typeAnnotate(tree, localEnv, localEnv.info.scope.owner); |
1108 memberEnter.typeAnnotate(tree, localEnv, localEnv.info.scope.owner); |
1108 annotate.flush(); |
1109 annotate.flush(); |