summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/parser/qmljs.g
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/parser/qmljs.g')
-rw-r--r--src/declarative/qml/parser/qmljs.g8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/declarative/qml/parser/qmljs.g b/src/declarative/qml/parser/qmljs.g
index ec9a956..0604457 100644
--- a/src/declarative/qml/parser/qmljs.g
+++ b/src/declarative/qml/parser/qmljs.g
@@ -296,6 +296,14 @@ public:
return program->uiObjectMemberCast();
}
+ AST::SourceElement *sourceElement() const
+ {
+ if (! program)
+ return 0;
+
+ return program->sourceElementCast();
+ }
+
QList<DiagnosticMessage> diagnosticMessages() const
{ return diagnostic_messages; }