aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/parser/qqmljsast_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/parser/qqmljsast_p.h')
-rw-r--r--src/qml/parser/qqmljsast_p.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/qml/parser/qqmljsast_p.h b/src/qml/parser/qqmljsast_p.h
index 4d161e9e51..0729c99931 100644
--- a/src/qml/parser/qqmljsast_p.h
+++ b/src/qml/parser/qqmljsast_p.h
@@ -2753,6 +2753,8 @@ public:
return head;
}
+ StatementList *buildStatementList() const;
+
void accept0(Visitor *visitor) override;
SourceLocation firstSourceLocation() const override
@@ -2773,7 +2775,11 @@ public:
ESModule(ModuleItemList *body)
: body(body)
- { kind = K; }
+ {
+ kind = K;
+ if (body)
+ statements = body->buildStatementList();
+ }
void accept0(Visitor *visitor) override;
@@ -2785,6 +2791,7 @@ public:
// attributes
ModuleItemList *body;
+ StatementList *statements = nullptr;
};
class QML_PARSER_EXPORT DebuggerStatement: public Statement