30 #include "SamplingTool.h" 31 #include "Executable.h" 60 : sourceCode(src),
fileName(fn), firstLineNumber(ln),
61 engine(0), _executable(0), sourceId(-1), isCompiled(false)
91 WTF::PassRefPtr<QScript::UStringSourceProviderWithFeedback> provider
171 return d->sourceCode;
193 return d->firstLineNumber;
203 if (
d == other.d_func())
QExplicitlySharedDataPointer< QScriptProgramPrivate > d_ptr
bool operator==(const QScriptProgram &other) const
Returns true if this QScriptProgram is equal to other; otherwise returns false.
#define QT_END_NAMESPACE
This macro expands to.
WTF::RefPtr< JSC::EvalExecutable > _executable
static Expression::Ptr create(Expression *const expr, const YYLTYPE &sourceLocator, const ParserContext *const parseInfo)
~QScriptProgram()
Destroys this QScriptProgram.
JSC::EvalExecutable * executable(JSC::ExecState *exec, QScriptEnginePrivate *engine)
static PassRefPtr< UStringSourceProviderWithFeedback > create(const JSC::UString &source, const JSC::UString &url, int lineNumber, QScriptEnginePrivate *engine)
The QString class provides a Unicode character string.
QString sourceCode() const
Returns the source code of this program.
bool isNull() const
Returns true if this QScriptProgram is null; otherwise returns false.
#define QT_BEGIN_NAMESPACE
This macro expands to.
void registerScriptProgram(QScriptProgramPrivate *program)
void unregisterScriptProgram(QScriptProgramPrivate *program)
bool operator!=(const QScriptProgram &other) const
Returns true if this QScriptProgram is not equal to other; otherwise returns false.
QScriptEnginePrivate * engine
QString fileName() const
Returns the filename associated with this program.
The QScriptProgram class encapsulates a Qt Script program.
QScriptProgram()
Constructs a null QScriptProgram.
int firstLineNumber() const
Returns the line number associated with this program.
static QScriptProgramPrivate * get(const QScriptProgram &q)
QScriptProgram & operator=(const QScriptProgram &other)
Assigns the other value to this QScriptProgram.
static QString fileName(const QString &fileUrl)
QScriptProgramPrivate(const QString &sourceCode, const QString &fileName, int firstLineNumber)