24 #ifndef _KJS_COMPLETION_H_
25 #define _KJS_COMPLETION_H_
27 #include "identifier.h"
35 enum ComplType { Normal, Break, Continue, ReturnValue, Throw };
54 : comp(c), val(v), tar(t) { }
56 ComplType complType()
const {
return comp; }
57 Value value()
const {
return val; }
59 bool isValueCompletion()
const {
return val.isValid(); }
Completion objects are used to convey the return status and value from functions.
Represents an Identifier for a Javascript object.
static const Identifier & null()
Creates an empty Identifier.
Value objects are act as wrappers ("smart pointers") around ValueImp objects and their descendents.