}
/** Generate runtime metamodel info for an attribute declaration or definition. */
void generateAttributeMetamodel(final Tree.TypedDeclaration that, final boolean addGetter, final boolean addSetter) {
//No need to define all this for local values
Scope _scope = that.getScope();
while (_scope != null) {
//TODO this is bound to change for local decl metamodel
if (_scope instanceof Declaration) {
if (_scope instanceof Method)return;
else break;
}
_scope = _scope.getContainer();
}
Declaration d = that.getDeclarationModel();
if (d instanceof Setter) d = ((Setter)d).getGetter();
final String pname = names.getter(d);
if (!generatedAttributes.contains(d)) {