support local ClassDefine and ClassDeclare, i.e. vars in ClassDefine[] and ClassDeclare[] will be considered as local var