createCodeTree