Add member variables and methods to class in AST.