summaryrefslogtreecommitdiff
path: root/src/libs/qmljs/qmljsinterpreter.cpp
Commit message (Collapse)AuthorAgeFilesLines
* It's 2011 now.con2011-01-121-1/+1
|
* License headers.con2010-12-171-7/+11
|
* QmlJS: Fix completion for 'anchors.' and similar properties.Christian Kamm2010-10-271-1/+2
| | | | | | | The detection of whether a type or one of its children is exported was broken when we fixed the type information for the QtQuick module. Reviewed-by: Erik Verbruggen
* QmlJS: Fix completion for enums on the global Qt object.Christian Kamm2010-10-191-0/+5
| | | | Reviewed-by: Erik Verbruggen
* QmlJS: Always register C++ based components with their C++ name.Christian Kamm2010-10-081-3/+1
| | | | | | | | This is the name that other components will refer to it by. For instance, MouseArea has a 'drag' property with type 'QDeclarativeDrag', since QDeclarativeDrag was only exported as Qt.Drag and QtQuick.Drag, the type lookup didn't manage to resolve the name. (cherry picked from commit b53ba61248ac398c98cf5849d050f99de92ff6a9)
* QmlJS: Prepare qmldump for multiply exported C++ objects.Christian Kamm2010-10-011-69/+135
| | | | | | | In the future, builtin objects are going to be exported in Qt 4.7 and QtQuick 1.0. Reviewed-by: Roberto Raggi
* QmlJS: Add initial 'Find Usages' support.Christian Kamm2010-09-241-1/+5
|
* QmlJS: Cache some commonly used QML specific objects.Christian Kamm2010-09-241-42/+74
|
* QmlJS: Synchronize Engine::registerValue.Christian Kamm2010-09-241-0/+1
| | | | | | When multiple threads share the Bind instance in a Document and do lookup on the objects contained inside, that may trigger a new object creation in some situations - which needs to be synchronized.
* QmlJS: Speed up Link significantly, provide more info on imports.Christian Kamm2010-09-161-3/+133
| | | | | | | | | | | | Link now caches imports. That means importing the same library (say, Qt) from more than one file no longer creates an importing namespace for each one. Instead, a single one is created for the instance of Link. To make this work, the type environment in ScopeChain has been given its own type: Interpreter::TypeEnvironment. That has the added benefit of being able to carry meta-information about imports. You can use TypeEnvironment::importInfo(qmlComponentName) to get information about the import node that caused the import of the component.
* QmlJS: Make ScopeChain more const-correct.Christian Kamm2010-08-301-5/+5
| | | | | We don't want people modifying the shared component chain on a const Context *.
* QmlJS: Fix crash when opening JS files.Christian Kamm2010-08-271-5/+7
| | | | | | | | | | | | Now that Contexts are cached, it needs to be copyable. However, the ScopeChain has a QmlComponentChain member that owns resources and didn't have a correct copy constructor or copy assignment operator. I've made QmlComponentChain non-copyable and store a shared pointer to an instance instead, as it will generally not change for a given context. Reviewed-by: Lasse Holmstedt
* QmlJS: Fix possible segfaults with null documents.Christian Kamm2010-08-261-0/+4
|
* QmlJS: Refactor LookupContext creation for speed.Christian Kamm2010-08-261-14/+5
| | | | | | | | * If possible, create LookupContexts through SemanticInfo; it caches the linked Context and will be faster. * Contexts now own their Engine. Reviewed-by: Lasse Holmstedt
* QmlJS: Allow lookups on const Contexts. Pass const Contexts where ok.Christian Kamm2010-08-251-13/+13
| | | | | | In preparation for caching Contexts. Reviewed-by: Erik Verbruggen
* QmlJS: Don't detect type from expression if the type is given explicitly.Leandro Melo2010-07-271-1/+2
| | | | | | | | To make sure property color foo: "white" is of type color, not string. Done-with: ckamm
* QmlJS: Set type correctly for color properties.Leandro Melo2010-07-271-0/+2
| | | | Done-with: ckamm
* QmlJS: Fix compilation warningKai Koehne2010-07-231-1/+1
|
* Compilation fix (MSVC)Kai Koehne2010-07-161-1/+1
|
* QmlJS: Make 'follow symbol' work on JS functions.Christian Kamm2010-07-161-2/+10
| | | | Task-number: QTCREATORBUG-1757
* Merge remote branch 'origin/2.0'con2010-06-301-14/+1
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: doc/qtcreator.qdoc share/qtcreator/gdbmacros/dumper.py src/libs/qmljs/qmljs-lib.pri src/plugins/debugger/breakhandler.cpp src/plugins/projectexplorer/projectexplorer.h src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationstep.cpp src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationstep.h
| * QmlJS: Make variables in imported JS documents show up in completion.Christian Kamm2010-06-251-14/+1
| | | | | | | | | | | | | | | | | | Filtering them out has long since become unnecessary. It was used back when JS files were sourced from Script elements - there they'd only make the functions available. Now functions and variables are imported. Task-number: QTCREATORBUG-1735 Reviewed-by: Erik Verbruggen
* | QmlJS: Set the return value of the JS type constructors.Christian Kamm2010-06-281-0/+8
| | | | | | | | | | Task-number: QTCREATORBUG-1737 Reviewed-by: Erik Verbruggen
* | QmlJS: Fix completion for slots.Christian Kamm2010-06-281-0/+1
| | | | | | | | | | | | | | | | | | When reading the xml file describing the Qml types, we incorrectly classified all functions as methods. They should be slots, since otherwise qmldump couldn't have dumped them in the first place. Task-number: QTCREATORBUG-1755 Reviewed-by: Erik Verbruggen
* | QmlJS: Make the qml instantiating component chain more useful.Christian Kamm2010-06-251-10/+19
| | | | | | | | | | By actually storing the documents instead of only the root and id environments.
* | Merge remote branch 'origin/2.0'con2010-06-101-1/+13
|\ \ | |/ | | | | | | | | Conflicts: src/plugins/projectexplorer/taskwindow.cpp src/shared/proparser/profileevaluator.cpp
| * QmlJS: Avoid infinite recursion when encountering property loops.Christian Kamm2010-06-081-1/+13
| | | | | | | | | | | | | | | | | | Such as property int foo: bar property int bar: foo. Task-number: QTCREATORBUG-1389 Reviewed-by: Roberto Raggi
* | QmlJS: Get rid of xml file describing qml builtin types.Christian Kamm2010-06-101-3/+3
| | | | | | | | The type information is now generated at runtime.
* | Compile fix for MSVCRobert Loehning2010-06-091-1/+1
| |
* | QmlJS: Store plugin metatypes in LibraryInfo. Rework type loading.Christian Kamm2010-06-091-75/+53
| |
* | QmlJS: Fix windows namespace issue with ComponentVersion.Christian Kamm2010-06-091-1/+1
| | | | | | | | Done-with: owolff
* | QmlJS: Check for existance of qmldump binary before using it.Christian Kamm2010-06-091-2/+22
| |
* | QmlJS: Use ComponentVersion everywhere.Christian Kamm2010-06-091-34/+24
| |
* | QmlJS: Get at types defined in plugins by running qmldump on them.Christian Kamm2010-06-091-25/+73
| | | | | | | | | | Task-number: QTCREATORBUG-1021 Reviewed-by: Roberto Raggi
* | QmlJS: Autocomplete dot and colon for properties.Christian Kamm2010-06-071-0/+17
| | | | | | | | Reviewed-by: Roberto Raggi
* | Fixed uninitialized members.Erik Verbruggen2010-06-041-0/+1
| |
* | Fixed a couple of null-checks/-returns.Erik Verbruggen2010-06-041-2/+3
|/
* Fixed default property discovery for custom QML components.Erik Verbruggen2010-05-311-1/+27
| | | | Reviewed-by: Christian Kamm
* QmlJS: Potentially fix hard-to-reproduce crash in JS completion.Christian Kamm2010-05-191-7/+0
| | | | | | | | * Context::build was potentially dangerous. Link and ScopeBuilder went out of scope before their results stopped being used. * ScopeBuilder: If no function scope object was found, don't add it. Reviewed-by: Erik Verbruggen
* QmlJS: Move Q_DECLARE_TR_FUNCTIONS to the start of class declarations.Christian Kamm2010-05-191-2/+2
| | | | The documentation requires having it there.
* Fix the build.Christian Kamm2010-05-191-2/+2
| | | | 50cc55af80710c8620449a88b79c542bc98aeb3b broke it.
* QmlJS: Change to a nicer way of marking strings for translation.Christian Kamm2010-05-191-6/+8
| | | | Reviewed-by: ossi
* QmlJS: Generalize EasingCurve name check to all enums.Christian Kamm2010-05-191-89/+0
| | | | Reviewed-by: Erik Verbruggen
* QmlJS: Fix potential crash when a document doesn't have a type env yet.Christian Kamm2010-05-111-0/+4
| | | | Reviewed-by: Roberto Raggi
* QmlJS: Completion for enums.Christian Kamm2010-04-291-0/+32
| | | | Done-with: Erik Verbruggen
* QmlJS: Add a check to disallow recursive type definitions in xml file.Christian Kamm2010-04-291-1/+10
| | | | | | | At least direct recursion with name="Foo" extends="Foo" is detected and rejected. Done-with: Erik Verbruggen
* QmlJS: Improve property and Type completion in Qml object members.Christian Kamm2010-04-291-0/+15
| | | | Done-with: Erik Verbruggen
* QmlJS: Remove unused function environment from binder.Christian Kamm2010-04-281-3/+0
| | | | | This used to contain all functions declared in Script blocks. With them gone, there's no reason to keep it.
* QmlJS: Remove Link::scopeChainAt, initialize scope chain in constructor.Christian Kamm2010-04-221-3/+7
| | | | | | Use ScopeBuilder.push(...) for the same functionality. Reviewed-by: Erik Verbruggen
* QmlJS: Fix code model for QSize and QSizeF.Christian Kamm2010-04-151-0/+8
| | | | | | | Means their members are now completed correctly. Task-number: QTCREATORBUG-1132 Reviewed-by: Erik Verbruggen