markAsLinked(rewrite, node, true, KEY_NAME);
if (isInDifferentCU) { markAsLinked(rewrite, node, true, KEY_NAME); } markAsLinked(rewrite, fragment.getName(), false, KEY_NAME);
	private ASTRewrite doAddField(CompilationUnit astRoot) throws CoreException {		SimpleName node= fOriginalNode;				ASTNode newTypeDecl= astRoot.findDeclaringNode(fSenderBinding);		if (newTypeDecl == null) {			astRoot= AST.parseCompilationUnit(getCompilationUnit(), true);			newTypeDecl= astRoot.findDeclaringNode(fSenderBinding.getKey());		}				if (newTypeDecl != null) {			ASTRewrite rewrite= new ASTRewrite(newTypeDecl);						AST ast= newTypeDecl.getAST();			VariableDeclarationFragment fragment= ast.newVariableDeclarationFragment();			fragment.setName(ast.newSimpleName(node.getIdentifier()));						Type type= evaluateVariableType(ast);						FieldDeclaration newDecl= ast.newFieldDeclaration(fragment);			newDecl.setType(type);									newDecl.setModifiers(evaluateFieldModifiers(newTypeDecl));			if (fSenderBinding.isInterface()) {				fragment.setInitializer(ASTNodeFactory.newDefaultExpression(ast, type, 0));			}					boolean isAnonymous= newTypeDecl.getNodeType() == ASTNode.ANONYMOUS_CLASS_DECLARATION;			List decls= isAnonymous ?  ((AnonymousClassDeclaration) newTypeDecl).bodyDeclarations() :  ((TypeDeclaration) newTypeDecl).bodyDeclarations();										decls.add(findFieldInsertIndex(decls, node.getStartPosition()), newDecl);			rewrite.markAsInserted(newDecl);						markAsLinked(rewrite, node, true, KEY_NAME);				markAsLinked(rewrite, newDecl.getType(), false, KEY_TYPE);			markAsLinked(rewrite, fragment.getName(), false, KEY_NAME);						return rewrite;		}		return null;	}