[Refactoring] attribute declaration member semantics

Supply consistent `Scope` object for `addMember`, `importAll`, `semantic`, `semantic2`, and `semantic3` in the derived classes of `AttribDeclaration`.