}
manageSyntheticReadAccessIfNecessary(currentScope);
break;
- case LOCAL : // reading a local variable
- // check if assigning a final blank field
- LocalVariableBinding localBinding;
- if (!flowInfo.isDefinitelyAssigned(localBinding = (LocalVariableBinding) binding)) {
- currentScope.problemReporter().uninitializedLocalVariable(localBinding, this);
- // we could improve error msg here telling "cannot use compound assignment on final local variable"
- }
- if (flowInfo.isReachable()) {
- localBinding.useFlag = LocalVariableBinding.USED;
- } else if (localBinding.useFlag == LocalVariableBinding.UNUSED) {
- localBinding.useFlag = LocalVariableBinding.FAKE_USED;
- }
+// case LOCAL : // reading a local variable
+// // check if assigning a final blank field
+// LocalVariableBinding localBinding;
+// if (!flowInfo.isDefinitelyAssigned(localBinding = (LocalVariableBinding) binding)) {
+// currentScope.problemReporter().uninitializedLocalVariable(localBinding, this);
+// // we could improve error msg here telling "cannot use compound assignment on final local variable"
+// }
+// if (flowInfo.isReachable()) {
+// localBinding.useFlag = LocalVariableBinding.USED;
+// } else if (localBinding.useFlag == LocalVariableBinding.UNUSED) {
+// localBinding.useFlag = LocalVariableBinding.FAKE_USED;
+// }
}
}
if (assignment.expression != null) {
}
}
break;
- case LOCAL : // reading a local variable
- LocalVariableBinding localBinding;
- if (!flowInfo.isDefinitelyAssigned(localBinding = (LocalVariableBinding) binding)) {
- currentScope.problemReporter().uninitializedLocalVariable(localBinding, this);
- }
- if (flowInfo.isReachable()) {
- localBinding.useFlag = LocalVariableBinding.USED;
- } else if (localBinding.useFlag == LocalVariableBinding.UNUSED) {
- localBinding.useFlag = LocalVariableBinding.FAKE_USED;
- }
+// case LOCAL : // reading a local variable
+// LocalVariableBinding localBinding;
+// if (!flowInfo.isDefinitelyAssigned(localBinding = (LocalVariableBinding) binding)) {
+// currentScope.problemReporter().uninitializedLocalVariable(localBinding, this);
+// }
+// if (flowInfo.isReachable()) {
+// localBinding.useFlag = LocalVariableBinding.USED;
+// } else if (localBinding.useFlag == LocalVariableBinding.UNUSED) {
+// localBinding.useFlag = LocalVariableBinding.FAKE_USED;
+// }
}
if (valueRequired) {
manageEnclosingInstanceAccessIfNecessary(currentScope);