newDeclFrag.setName(name);
newDeclFrag.setName(ast.newSimpleName(varName));
	private ASTRewrite doAddField() throws CoreException {		ASTNode newTypeDecl= ASTResolving.findParentType(fExpressionStatement);		Expression expression= fExpressionStatement.getExpression();				boolean isAnonymous= newTypeDecl.getNodeType() == ASTNode.ANONYMOUS_CLASS_DECLARATION;		List decls= isAnonymous ?  ((AnonymousClassDeclaration) newTypeDecl).bodyDeclarations() :  ((TypeDeclaration) newTypeDecl).bodyDeclarations();				fSelectionDescription= new GroupDescription("sel"); //$NON-NLS-1$		GroupDescription link1= new GroupDescription("link1"); //$NON-NLS-1$		GroupDescription link2= new GroupDescription("link2"); //$NON-NLS-1$		fLinkedPositions.add(link1);		fLinkedPositions.add(link2);						ASTRewrite rewrite= new ASTRewrite(newTypeDecl);		AST ast= fExpressionStatement.getAST();				String varName= suggestFieldNames(fTypeBinding);		SimpleName name= ast.newSimpleName(varName);		rewrite.markAsTracked(name, link2); //$NON-NLS-1$				VariableDeclarationFragment newDeclFrag= ast.newVariableDeclarationFragment();		newDeclFrag.setName(name);						FieldDeclaration newDecl= ast.newFieldDeclaration(newDeclFrag);		String typeName= addImport(fTypeBinding);		newDecl.setType(ASTNodeFactory.newType(ast, typeName));		newDecl.setModifiers(Modifier.PRIVATE);				Assignment assignment= ast.newAssignment();		assignment.setRightHandSide((Expression) rewrite.createCopy(expression));		SimpleName accessName= ast.newSimpleName(varName);		rewrite.markAsTracked(accessName, link1); //$NON-NLS-1$				if (PreferenceConstants.getPreferenceStore().getBoolean(PreferenceConstants.CODEGEN_KEYWORD_THIS)) {			FieldAccess fieldAccess= ast.newFieldAccess();			fieldAccess.setName(accessName);			fieldAccess.setExpression(ast.newThisExpression());			assignment.setLeftHandSide(fieldAccess);		} else {			assignment.setLeftHandSide(accessName);		}		rewrite.markAsReplaced(expression, assignment);		rewrite.markAsTracked(fExpressionStatement, fSelectionDescription);				decls.add(findInsertIndex(decls, fExpressionStatement.getStartPosition()), newDecl);				rewrite.markAsInserted(newDecl);				return rewrite;			}