add attribute getter/setter in ast node tree.