* reference
*/
@Override
public boolean visit(VariableDeclarationStatement node) {
for (Iterator iter = node.fragments().iterator(); iter.hasNext();) {
VariableDeclarationFragment fragment = (VariableDeclarationFragment) iter
.next();
// VariableDeclarationFragment: is the plain variable declaration
// part. Example:
// "int x=0, y=0;" contains two VariableDeclarationFragments, "x=0"
// and "y=0"
IVariableBinding binding = fragment.resolveBinding();
VariableBindingManager manager = new VariableBindingManager(
fragment); // create the manager fro the fragment
localVariableManagers.put(binding, manager);
manager.variableInitialized(fragment.getInitializer());
// first assignment is the initalizer
}
return false; // prevent that SimpleName is interpreted as
// reference
}