summaryrefslogtreecommitdiff
path: root/src/libs/qmljs/qmljscheck.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* QmlJS: Completion for attached properties.Christian Kamm2011-02-101-1/+1
|
* QmlJS: Fix local-file url property check.Christian Kamm2011-02-091-1/+1
|
* It's 2011 now.con2011-01-121-1/+1
| | | | Reviewed-by: hjk
* Merge branch '2.1'con2010-12-171-7/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/coreplugin/basemode.cpp src/plugins/coreplugin/basemode.h src/plugins/coreplugin/scriptmanager/qworkbench_wrapper.cpp src/plugins/coreplugin/scriptmanager/qworkbench_wrapper.h src/plugins/debugger/cdb/cdbsymbolpathlisteditor.cpp src/plugins/debugger/debuggeragents.cpp src/plugins/debugger/debuggeruiswitcher.cpp src/plugins/debugger/debuggeruiswitcher.h src/plugins/projectexplorer/buildconfigdialog.cpp src/plugins/qmldesigner/components/propertyeditor/colorwidget.cpp src/plugins/qmldesigner/components/propertyeditor/colorwidget.h src/plugins/qmldesigner/designercore/include/enumeratormetainfo.h src/plugins/qmldesigner/designercore/include/modelutilities.h src/plugins/qmldesigner/designercore/include/nodeinstance.h src/plugins/qmldesigner/designercore/include/propertymetainfo.h src/plugins/qmldesigner/designercore/instances/graphicsscenenodeinstance.cpp src/plugins/qmldesigner/designercore/instances/graphicsscenenodeinstance.h src/plugins/qmldesigner/designercore/instances/graphicsviewnodeinstance.cpp src/plugins/qmldesigner/designercore/instances/graphicswidgetnodeinstance.cpp src/plugins/qmldesigner/designercore/instances/graphicswidgetnodeinstance.h src/plugins/qmldesigner/designercore/instances/nodeinstance.cpp src/plugins/qmldesigner/designercore/instances/qmlviewnodeinstance.cpp src/plugins/qmldesigner/designercore/instances/widgetnodeinstance.cpp src/plugins/qmldesigner/designercore/instances/widgetnodeinstance.h src/plugins/qmldesigner/designercore/metainfo/enumeratormetainfo.cpp src/plugins/qmldesigner/designercore/metainfo/propertymetainfo.cpp src/plugins/qmldesigner/designercore/model/modelutilities.cpp src/plugins/snippets/inputwidget.cpp src/plugins/snippets/snippetscompletion.cpp src/plugins/snippets/snippetscompletion.h src/plugins/snippets/snippetspec.cpp src/plugins/snippets/snippetsplugin.cpp src/plugins/snippets/snippetswindow.cpp src/plugins/snippets/snippetswindow.h src/plugins/texteditor/snippetsparser.cpp src/tools/qml/qmldom/main.cpp tests/manual/trk/runner.cpp tests/manual/trk/trkolddevice.cpp tests/manual/trk/trkolddevice.h tests/manual/trk/trkserver.cpp
| * License headers.con2010-12-171-7/+11
| |
* | QMlJSCheck: Components have their own scope for idsThomas Hartmann2010-12-131-4/+18
| | | | | | | | | | Each Components starts a new scope for ids. Using a stack to check this properly.
* | QmlJsCheck: check for Behaivours and exclude them from duplicate checkThomas Hartmann2010-12-131-1/+2
| |
* | QmlJSCheck: adding more checksThomas Hartmann2010-12-071-2/+49
| | | | | | | | We are checking for duplicate ids and duplicate property definitions now.
* | JS checks: Check code block script bindings for common errors.Christian Kamm2010-12-061-7/+24
| | | | | | | | Reviewed-by: Erik Verbruggen
* | JS checks: Allow blocks after for(var ...).Christian Kamm2010-12-061-1/+13
| | | | | | | | | | | | | | | | Also * check the condition of the 'for(var' statement for assignment * allow comma expressions in 'for(var' Reviewed-by: Erik Verbruggen
* | QmlJS: Don't warn about expression statements in script bindings.Christian Kamm2010-11-291-2/+11
| | | | | | | | Reviewed-by: Roberto Raggi
* | QmlJS: Don't warn for "string == ''" and "boolean == true".Christian Kamm2010-11-291-2/+4
| | | | | | | | Reviewed-by: Roberto Raggi
* | QmlJS: Don't warn on 'numbervalue == 0'.Christian Kamm2010-11-291-6/+11
| | | | | | | | Reviewed-by: Roberto Raggi
* | QmlJS: Remove overzealous 'undefined' check for enums.Christian Kamm2010-11-291-4/+2
| | | | | | | | | | | | | | | | | | | | The "value might be 'undefined'" warning triggered whenever the static expression evaluator failed to produce a value. At the moment, it does so for almost all non-trivial expressions. The warning is now disabled. Task-number: QTCREATORBUG-3208
* | QmlJS: Add JSLint-style warnings for common JS traps.Christian Kamm2010-11-251-0/+350
| | | | | | | | | | Task-number: QTCREATORBUG-3071 Reviewed-by: Erik Verbruggen
* | QmlJS: Enhance check pass to do lookup... and disable it.Christian Kamm2010-11-251-0/+58
| | | | | | | | | | | | | | It still generates too many false-negatives for now. Will be enabled once the remaining lookup failures have been fixed. Reviewed-by: Erik Verbruggen
* | QmlJS: Mark invalid urls and files in url properties as an error.Christian Kamm2010-11-251-2/+25
|/ | | | Reviewed-by: Erik Verbruggen
* QmlJS: Add initial 'Find Usages' support.Christian Kamm2010-09-241-1/+1
|
* QmlJS: Speed up Link significantly, provide more info on imports.Christian Kamm2010-09-161-9/+14
| | | | | | | | | | | | 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: Improve performance by avoiding two links in SemanticHighlighter.Christian Kamm2010-08-311-3/+2
| | | | Reviewed-by: Roberto Raggi
* QmlJS: Add missing null checks before using scopeChain().qmlTypes.Christian Kamm2010-08-301-1/+2
|
* QmlJS: Refactor LookupContext creation for speed.Christian Kamm2010-08-261-2/+1
| | | | | | | | * If possible, create LookupContexts through SemanticInfo; it caches the linked Context and will be faster. * Contexts now own their Engine. Reviewed-by: Lasse Holmstedt
* Make QML color validation code reusable.Leandro Melo2010-08-021-18/+21
| | | | Reviewed-by: ckamm
* QmlJS: Change to a nicer way of marking strings for translation.Christian Kamm2010-05-191-17/+16
| | | | Reviewed-by: ossi
* QmlJS: Generalize EasingCurve name check to all enums.Christian Kamm2010-05-191-21/+19
| | | | Reviewed-by: Erik Verbruggen
* QmlJS: Allow numbers to be assigned to easing.type.Christian Kamm2010-05-191-2/+2
| | | | Task-number: QTCREATORBUG-1439
* QmlJS: Change way to translate strings to nicer one.Christian Kamm2010-04-281-24/+9
| | | | Done-with: Erik Verbruggen
* QmlJS: Remove Link::scopeChainAt, initialize scope chain in constructor.Christian Kamm2010-04-221-3/+0
| | | | | | Use ScopeBuilder.push(...) for the same functionality. Reviewed-by: Erik Verbruggen
* QmlJS: Don't produce Qml type errors if plugins are imported.Christian Kamm2010-04-071-1/+3
| | | | | Task-number: QTCREATORBUG-1021 Reviewed-by: Erik Verbruggen
* Changed QML reading in QML designer to use the interpreter for property types.Erik Verbruggen2010-04-061-0/+6
|
* QmlJS: Only collect linker errors for the current file being checked.Christian Kamm2010-03-291-1/+1
| | | | | | Avoids bug where import errors would show up in all files. Reviewed-by: Roberto Raggi
* Add errors for incorrect imports in Qml.Christian Kamm2010-03-251-0/+1
| | | | | Task-number: QTCREATORBUG-874 Reviewed-by: Erik Verbruggen
* Improve Qml code model import handling.Christian Kamm2010-03-181-2/+2
| | | | | | | | | * Fill the snapshot with files that could be imported. * Implement package imports. * The qmldir file is not parsed yet. Reviewed-by: Erik Verbruggen
* Long live the king!hjk2010-03-051-1/+1
|
* Changed error to warning when using a string literal for an ID.Erik Verbruggen2010-03-041-3/+8
|
* Silence silly gcc warning.ck2010-03-021-3/+3
| | | | Reviewed-by: Erik Verbruggen
* Changed color name checks to use new QColor::isValidColor method.Erik Verbruggen2010-03-021-1/+1
|
* Removed private header dependencies and introduced loading QML types from ↵Erik Verbruggen2010-03-011-9/+15
| | | | XML file.
* QmlJS: Fix compilation with latest changes of QDeclarativeKai Koehne2010-02-261-2/+2
| | | | All files have been renamed from Qml to QDeclarative
* Fixed possible crash when error recovery yielded a partially correct AST.Erik Verbruggen2010-02-241-0/+6
|
* Add check for anchor line, changed value assignment checks into visitor.Christian Kamm2010-02-231-68/+106
| | | | Done-with: Erik Verbruggen
* Check that the id property is a plain lowercase identifier.Christian Kamm2010-02-231-0/+26
|
* Add check for correct color string in Qml.Christian Kamm2010-02-231-37/+53
|
* Add Qml type checks for assigning literals to properties.Christian Kamm2010-02-231-5/+37
| | | | Done-with: Erik Verbruggen
* Move the scope building logic into QmlJS::ScopeBuilder.Christian Kamm2010-02-221-62/+10
|
* Pass in the whole AST path for scope creation.Christian Kamm2010-02-221-3/+2
| | | | Just the declaring member isn't enough.
* Make QmlJS scope building more flexible.Christian Kamm2010-02-221-13/+16
| | | | | | Instead of only maintaining a flat list of scopes, actually store the global, component chain, root object, scope object, function, id and js scopes separately.
* Semantic checking for easing curve names.Erik Verbruggen2010-02-191-9/+62
| | | | Done-with: Christian Kamm
* Made the warnings/errors translatable.Erik Verbruggen2010-02-191-6/+9
|
* Suppress 'unknown property' warning after finding an unknown type.Erik Verbruggen2010-02-191-6/+17
| | | | And made the warnings/errors translatable.