32 #ifndef _QORE_QORECHOMPOPERATORNODE_H
34 #define _QORE_QORECHOMPOPERATORNODE_H
36 class QoreChompOperatorNode :
public QoreSingleExpressionOperatorNode<LValueOperatorNode> {
38 const QoreTypeInfo* returnTypeInfo;
44 DLLLOCAL
virtual void parseInitImpl(
QoreValue& val, LocalVar* oflag,
int pflag,
int& lvids,
const QoreTypeInfo*& typeInfo);
46 DLLLOCAL
virtual const QoreTypeInfo* getTypeInfo()
const {
47 return returnTypeInfo;
51 DLLLOCAL QoreChompOperatorNode(
const QoreProgramLocation* loc,
QoreValue exp) : QoreSingleExpressionOperatorNode<LValueOperatorNode>(loc, exp), returnTypeInfo(0) {
57 DLLLOCAL
virtual const char* getTypeName()
const {
58 return chomp_str.getBuffer();
61 DLLLOCAL
virtual bool hasEffect()
const {
65 DLLLOCAL
virtual QoreOperatorNode* copyBackground(
ExceptionSink* xsink)
const {
66 return copyBackgroundExplicit<QoreChompOperatorNode>(xsink);