Name width = new Name("width");
classITraitsInit.addInstruction(ABCConstants.OP_getlocal0);
classITraitsInit.addInstruction(ABCConstants.OP_getlocal0);
classITraitsInit.addInstruction(ABCConstants.OP_getproperty, width);
_measuredWidth = new Name(ABCConstants.CONSTANT_Qname, new Nsset(privateNs), "_measuredWidth");
classITraitsInit.addInstruction(ABCConstants.OP_initproperty, _measuredWidth);
}
// generate:
// _measuredHeight = height;
Name _measuredHeight = null;
if (skinClassInfo.needsMeasuredHeight)
{
Name height = new Name("height");
classITraitsInit.addInstruction(ABCConstants.OP_getlocal0);
classITraitsInit.addInstruction(ABCConstants.OP_getlocal0);
classITraitsInit.addInstruction(ABCConstants.OP_getproperty, height);
_measuredHeight = new Name(ABCConstants.CONSTANT_Qname, new Nsset(privateNs), "_measuredHeight");
classITraitsInit.addInstruction(ABCConstants.OP_initproperty, _measuredHeight);
}
// generate: TODO: currently we don't wrap this call in a try/catch, as it
// seems unnecessary. Change if need be.