diff options
author | Jesper K. Pedersen <jesper.pedersen@kdab.com> | 2013-05-23 19:41:25 +0000 |
---|---|---|
committer | Jesper K. Pedersen <jesper.pedersen@kdab.com> | 2013-05-29 07:25:36 +0200 |
commit | d8c1bb5a0eb1cf1c149b85577f4f35ffe303e5bc (patch) | |
tree | 92fdc06897db081c8382789057266047b0b3d44e /scriptrunner.cpp | |
parent | 0b7e56aed100c5e0a70b0cadc11a44dcfd2abd5d (diff) |
use the AST to get arguments for a function call
Change-Id: Ie7ffbec02ad14a58f53924125ccc23e4e074a6e1
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
Diffstat (limited to 'scriptrunner.cpp')
-rw-r--r-- | scriptrunner.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scriptrunner.cpp b/scriptrunner.cpp index eed43f4..0a2e2cd 100644 --- a/scriptrunner.cpp +++ b/scriptrunner.cpp @@ -51,6 +51,7 @@ #include "utils/utils.h" #include "objects/cppclass.h" #include "objects/git.h" +#include "objects/ast.h" using namespace Scripting; using namespace Scripting::Internal; @@ -206,6 +207,7 @@ ScriptRunner::QScriptEnginePtr ScriptRunner::ensureEngineInitialized() registerGlobal(new Dialogs, QLatin1String("dialogs")); registerGlobal(new Utils, QLatin1String("utils")); registerGlobal(new Git, QLatin1String("git")); + registerGlobal(new Ast, QLatin1String("ast")); registerWrappers(m_engine.data()); registerEnums(m_engine.data()); |