markAsLinked(rewrite, newDecl.getType(), false, KEY_TYPE); markAsLinked(rewrite, node, true, KEY_NAME); markAsLinked(rewrite, newDecl.getName(), false, KEY_NAME);
addLinkedPosition(rewrite.track(newDecl.getType()), false, KEY_TYPE); addLinkedPosition(rewrite.track(node), true, KEY_NAME); addLinkedPosition(rewrite.track(newDecl.getName()), false, KEY_NAME);
	private ASTRewrite doAddParam(CompilationUnit cu) throws CoreException {		AST ast= cu.getAST();		SimpleName node= fOriginalNode;		BodyDeclaration decl= ASTResolving.findParentBodyDeclaration(node);		if (decl instanceof MethodDeclaration) {			ASTRewrite rewrite= new ASTRewrite(ast);						SingleVariableDeclaration newDecl= ast.newSingleVariableDeclaration();			newDecl.setType(evaluateVariableType(ast));			newDecl.setName(ast.newSimpleName(node.getIdentifier()));						ListRewrite listRewriter= rewrite.getListRewrite(decl, MethodDeclaration.PARAMETERS_PROPERTY);			listRewriter.insertLast(newDecl, null);						markAsLinked(rewrite, newDecl.getType(), false, KEY_TYPE);			markAsLinked(rewrite, node, true, KEY_NAME);			markAsLinked(rewrite, newDecl.getName(), false, KEY_NAME);						return rewrite;		}		return null;	}