Tern can now perform static analysis on the following QML constructs:
- QML Property Declarations
- QML Property Bindings
- QML Signals
- QML Signal Handlers
Added basic support for the 'id' property that can be assigned to any
QML Object. Fixed acorn-qml's member function parsing and added tests.
The 'demo' folder contains an html demo of the qml tern implementation
using codemirror as the editor.
Change-Id: I9e4d3837b194ff92a36a8d62bef288f61743e4ce
Signed-off-by: Matthew Bastien <mbastien@blackberry.com>
Fixed the AST elements so that they more closely match the format used
by acorn (i.e. using 'id' instead of 'identifier' and 'name' instead of
'raw' for the identifier name). Resolved one of the ambiguities dealing
with using 'signal', 'property', and 'readonly' as identifiers for
properties and QML Objects. Added a bunch of new tests and fixed the
old ones to match the new AST.
Change-Id: I5a8bbd14b3e6f8531268740dd9e57cb48a0e22b3
Signed-off-by: Matthew Bastien <mbastien@blackberry.com>
Add freemarker and antlr to category.xml so they end up mirrored in the
nightly repo.
Change-Id: I8c35f1c376f63b8fbe79c7d7b954a63686b129c9
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
* Remove useless instanceof check.
* Use collections interfaces to loose coupling.
* Remove useless overriding methods that simply call super.
* Unnecessary local before return.
* Stop useless coupling between wizards and pages.
Change-Id: I83c6240259a7805caeadda5503ea3ae2fa6adafb
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Moved the Tern.js work and acorn-qml into the Qt Core plugin rather than
in a separate plugin. Added walk.js in order to facilitate walking the
QML AST by acorn-qml. Changed a few things in index.js and inject.js
for acorn-qml in order to get it working in a browser environment.
Added a tern-qml webpage demo which doesn't do much for now.
Change-Id: I3c8a3d57c98a4936d0e038774b410bb2a68afb6c
Signed-off-by: Matthew Bastien <mbastien@blackberry.com>
* Do not check for null variables that are known to be non-null already.
* Stop using SubProgressMonitor in favor of SubMonitor.
* Non-javadoc removed.
* Commented code removed.
* Multi-catch.
Change-Id: Ib0aa433fbdfa8581c89161225f83a1f1640dd2dc
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Calling AutotoolsNewMakeGenerator.reconfigure in the wizard ensures that
autogen.sh/configure etc. will be called at import time to make build
work after that without further intervention.
Change-Id: I3f89f84e2f698ebe1c26cb4427de421b29225030
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
* Use try-with-resources.
* More efficient cycles.
* Use collections interfaces instead of concrete classes.
* Turn non-javadoc with actual comments into javadoc.
* Adapt to proper Java naming conventions.
* Modifiers order.
* Unused modifiers.
Change-Id: I5e4ca3e5f2900b72b53338a455dbaaa65273d812
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
The RCP stand-alone debugger does not have the multicore visualizer
plugins but does have the visualizer plugins. That means a user can
open the Visualizer view but nothing will display.
We could either add the multicore visualizer plugins or remove the
visualizer plugins. To follow what the stand-alone script does, this
patch removes the visualizer plugins.
Change-Id: I90075c7fc5c87f21c0b697f81c45abf1d0395218
Reducing sonar warnings is good strategy to keep new warnings easily
noticable.
Interface methods/fields have strict modifiers so no need to specify it.
Change-Id: I8c453b5dbdc3c7fcc37e4e0a4fdf1c600e23fb1a
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Acorn-qml can now parse a large subset of QML syntax. The only two
things left to do at this point are to allow QML Object Literals in
Property Bindings and to allow QML contextual keywords such as 'signal'
as property binding identifiers. Both of these require lookahead which
acorn does not ship with at the moment, so this may be a bit of an
undertaking. Also, added a whole bunch of tests to parse the new
syntax.
Change-Id: I0950fa29265c8337b5c9bfc0a1ec0c3ba8267426
Signed-off-by: Matthew Bastien <mbastien@blackberry.com>
This allows specifying the multiplier on the command line and pass
it along to the tests.
Change-Id: I35cb764a6494a0eb98e5e2205a47522935c2b206
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
The acorn parser is now able to parse QML import and pragma statements.
Change-Id: Iaeebaa21f8b013935f8cdf2c2a2ff511038e1069
Signed-off-by: Matthew Bastien <mbastien@blackberry.com>
managedbuilder.core was already calling getDebugOption with this key
but it was not exposed in the launch configutation.
Change-Id: Ib9e983ea9240bf6d911b2e2b94fc5929d91bcea1
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Recommended way is to use e.g. InstanceScope.INSTANCE instead of new
InstanceScope() which is deprecated now.
Change-Id: I9fa8e53e180a480805bd0a57903e65b5c2de5f75
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Added a new plugin 'org.eclipse.cdt.qt.core.acorn' which houses the new
acorn-qml parser.
Change-Id: I7b456ecec97d44e10ca7e259523b5262c67c538d
Signed-off-by: Matthew Bastien <mbastien@blackberry.com>
Migrate org.eclipse.cdt.autotools.core from deprecated
SubProgressMonitor to SubMonitor.
Change-Id: Icad7c666fc88852554c5d7dbc70b4ecf26b9bc88
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
* Bump BREE to Java 1.8.
* Enable more warnings and save actions.
* Use lambdas.
* Use try-with-resources.
Change-Id: I688dd1865353380a9791ff28779b4c98f21403f6
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
java.lang.NullPointerException
at
org.eclipse.cdt.utils.envvar.EnvVarOperationProcessor.convertToList(EnvVarOperationProcessor.java:158)
at
org.eclipse.cdt.managedbuilder.internal.envvar.EnvironmentVariableProvider$DefaultBuildPathResolver.resolveBuildPaths(EnvironmentVariableProvider.java:72)
Change-Id: I46e9e990685bf29d1ddd90496e277c049e358a02
I used a simple script:
for every file name of a given extension {
grep for the file name usage
if no result {
delete it!
}
}
I only deleted things under the documentation plugins, to be safe.
This results in about 8MB of deleted images.
Change-Id: I566b8b1ff396b67689d273fc6e827dd3a02ad991
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
-Add Refresh command to File menu.
-Enable 'Refresh on Access' by default, like Eclipse for C/C++ package
-Reorder the File menu a bit so that Exit is last
Change-Id: I3636cd20da1a2523ca1574674cf6ebc59a124860
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
* Bump BREE to Java 1.8.
* Start using lambdas.
* Removed unused helper methods/activator/etc.
* More JUnit 4 migration.
* Enable more warnings by default and fix them.
Change-Id: If2df6114fb18b66822849ce2e1b956dd0ce6b514
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-Update API baseline to 8.8
-Fix some missing things for Neon Targlet
-Default is now Neon
Change-Id: Ia2b07ba8438e7b2b853c77fae8ff7dbd9febf010
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>