if ((r instanceof CSSNumLiteral)) {
int _value_1 = ((CSSNumLiteral) r).getValue();
result.append(_value_1);
} else {
if ((r instanceof CSSRuleRef)) {
final CSSRuleRef ref = ((CSSRuleRef) r);
Definition _ref = ref.getRef();
EObject _findpackage = this.findpackage(_ref);
String _calcPackagename = this.calcPackagename(((PackageDefinition) _findpackage));
String _plus_2 = ("<<a class=\'bs-href\' href=\'#r_" + _calcPackagename);
String _plus_3 = (_plus_2 + ".");
Definition _ref_1 = ref.getRef();
String _name = _ref_1.getName();
String _plus_4 = (_plus_3 + _name);
String _plus_5 = (_plus_4 + "\'>");
Definition _ref_2 = ref.getRef();
String _name_1 = _ref_2.getName();
String _plus_6 = (_plus_5 + _name_1);
String _plus_7 = (_plus_6 + "</a>>");
result.append(_plus_7);
} else {