Source Code (Use browser search to find items of interest.)
Class Index
kdelibs'PropertyNode (./kdelibs/kjs/nodes.h:188)
class PropertyNode : public Node {
public:
PropertyNode(double d) : numeric(d) { }
PropertyNode(const UString *s) : str(*s) { }
KJSO *evaluate();
private:
double numeric;
UString str;
};
kdelibs'PropertyNode::evaluate() (./kdelibs/kjs/nodes.cpp:176)
KJSO *PropertyNode::evaluate()
{
Ptr s;
if (str.isNull()) {
s = KJSO::newString(UString::from(numeric));
} else
s = KJSO::newString(str);
return s->ref();
}
// ECMA 11.2.1a