Search for usage in LXR

KJS::Completion Class Reference

#include <completion.h>

Public Member Functions

 Completion (ComplType c=Normal, JSValue *v=nullptr, Addr t=0)
ComplType complType () const
bool isValueCompletion () const
Addr target () const
JSValuevalue () const

Detailed Description

Completion objects are used to convey the return status and value from functions.

See FunctionImp::execute()

See also

Handle for a Completion type.

Definition at line 52 of file completion.h.

Member Function Documentation

◆ complType()

ComplType KJS::Completion::complType ( ) const

Returns the type of this completion.

Definition at line 61 of file completion.h.

◆ isValueCompletion()

bool KJS::Completion::isValueCompletion ( ) const

Returns true if this is a value completion, false otherwise.

Definition at line 86 of file completion.h.

◆ target()

Addr KJS::Completion::target ( ) const

Returns the address a break or a continue statement targets.

Definition at line 78 of file completion.h.

◆ value()

JSValue* KJS::Completion::value ( ) const

Returns the value of this completion if it is of type value-completion, 0 otherwise.

Definition at line 70 of file completion.h.

The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 03:51:19 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.