25 #ifndef _KJS_COMPLETION_H_
26 #define _KJS_COMPLETION_H_
28 #include "identifier.h"
36 enum ComplType { Normal, Break, Continue, ReturnValue, Throw };
55 : comp(c), val(v), tar(t) { }
57 ComplType complType()
const {
return comp; }
58 Value value()
const {
return val; }
60 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.