32 #ifndef _QORE_QOREUNARYMINUSOPERATORNODE_H
34 #define _QORE_QOREUNARYMINUSOPERATORNODE_H
36 class QoreUnaryMinusOperatorNode :
public QoreSingleExpressionOperatorNode<QoreOperatorNode> {
38 DLLLOCAL QoreUnaryMinusOperatorNode(
const QoreProgramLocation* loc,
QoreValue exp)
39 : QoreSingleExpressionOperatorNode<QoreOperatorNode>(loc, exp) {
47 DLLLOCAL
virtual const char* getTypeName()
const {
48 return unaryminus_str.c_str();
51 DLLLOCAL
virtual QoreOperatorNode* copyBackground(
ExceptionSink* xsink)
const {
52 return copyBackgroundExplicit<QoreUnaryMinusOperatorNode>(xsink);
56 const QoreTypeInfo* returnTypeInfo =
nullptr;
62 DLLLOCAL
virtual int parseInitImpl(
QoreValue& val, QoreParseContext& parse_context);
64 DLLLOCAL
virtual const QoreTypeInfo* getTypeInfo()
const {
65 return returnTypeInfo;
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:48
Qore's string type supported by the QoreEncoding class.
Definition: QoreString.h:93
The main value class in Qore, designed to be passed by value.
Definition: QoreValue.h:275