Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Bastien2015-12-14 16:12:50 +0000
committerMatthew Bastien2015-12-14 16:13:52 +0000
commit84b5f4bfd2ec9c1b7f317f8013360f20ccb0eee0 (patch)
tree9448c3d6375ced7a45892612ad45946b285568cd /qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/qt/core/qmljs/IQmlStatementBlock.java
parente62e2772fe26628dbdc0cf86675983f7c399e7aa (diff)
downloadorg.eclipse.cdt-84b5f4bfd2ec9c1b7f317f8013360f20ccb0eee0.tar.gz
org.eclipse.cdt-84b5f4bfd2ec9c1b7f317f8013360f20ccb0eee0.tar.xz
org.eclipse.cdt-84b5f4bfd2ec9c1b7f317f8013360f20ccb0eee0.zip
Bug 480238 - QML AST in Java
Created a set of Interfaces to represent the JavaScript and QML Ast in plain Java. Updated acorn-qml to be able to parse the entirety of QML syntax as specified by the QML grammar. Also modified the QML AST to represent the added syntax and modified tern-qml to handle the new AST elements. Changed the way that the QMLAnalyzer handles path resolution. Paths are now relative to the local file system. Note: the normal acorn-qml parser cannot parse the full range of QML syntax due to ambiguities. However, the loose parser can. We're still waiting on Acorn to bring lookahead to the normal parser in order to resolve this. Change-Id: I77c820ad46301975b2a91969a656d428ad9409c1 Signed-off-by: Matthew Bastien <mbastien@blackberry.com>
Diffstat (limited to 'qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/qt/core/qmljs/IQmlStatementBlock.java')
-rw-r--r--qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/qt/core/qmljs/IQmlStatementBlock.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/qt/core/qmljs/IQmlStatementBlock.java b/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/qt/core/qmljs/IQmlStatementBlock.java
new file mode 100644
index 00000000000..e575a115f14
--- /dev/null
+++ b/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/qt/core/qmljs/IQmlStatementBlock.java
@@ -0,0 +1,22 @@
+/*******************************************************************************
+ * Copyright (c) 2015 QNX Software Systems and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * QNX Software Systems - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.qt.core.qmljs;
+
+import java.util.List;
+
+public interface IQmlStatementBlock extends IQmlASTNode {
+ @Override
+ default public String getType() {
+ return "QMLStatementBlock"; //$NON-NLS-1$
+ };
+
+ public List<IJSStatement> getBody();
+}

Back to the top