32 #ifndef _QORE_QOREASSIGNMENTOPERATORNODE_H
33 #define _QORE_QOREASSIGNMENTOPERATORNODE_H
35 class QoreAssignmentOperatorNode :
public QoreBinaryLValueOperatorNode {
38 DLLLOCAL QoreAssignmentOperatorNode(
const QoreProgramLocation* loc,
QoreValue left,
QoreValue right) : QoreBinaryLValueOperatorNode(loc, left, right) {
41 DLLLOCAL
virtual QoreOperatorNode* copyBackground(
ExceptionSink* xsink)
const {
42 return copyBackgroundExplicit<QoreAssignmentOperatorNode>(xsink);
47 bool broken_int =
false;
51 DLLLOCAL
int parseInitIntern(QoreParseContext& parse_context,
bool weak_assignment);
55 DLLLOCAL
virtual int parseInitImpl(
QoreValue& val, QoreParseContext& parse_context) {
56 return parseInitIntern(parse_context,
false);
60 return evalIntern(xsink, needs_deref,
false);
64 class QoreWeakAssignmentOperatorNode :
public QoreAssignmentOperatorNode {
67 DLLLOCAL QoreWeakAssignmentOperatorNode(
const QoreProgramLocation* loc,
QoreValue left,
QoreValue right)
68 : QoreAssignmentOperatorNode(loc, left, right) {
71 DLLLOCAL
virtual QoreOperatorNode* copyBackground(
ExceptionSink* xsink)
const {
72 return copyBackgroundExplicit<QoreWeakAssignmentOperatorNode>(xsink);
76 DLLLOCAL
int parseInitImpl(
QoreValue& val, QoreParseContext& parse_context) {
77 return parseInitIntern(parse_context,
true);
81 return evalIntern(xsink, needs_deref,
true);
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:48
The main value class in Qore, designed to be passed by value.
Definition: QoreValue.h:275