summaryrefslogtreecommitdiff
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.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/qml/parser/qqmljsast_p.h b/src/qml/parser/qqmljsast_p.h
index cdee4843b0..da8d0bcd8d 100644
--- a/src/qml/parser/qqmljsast_p.h
+++ b/src/qml/parser/qqmljsast_p.h
@@ -850,6 +850,11 @@ struct BoundNames : public QVector<BoundName>
return -1;
return found - constBegin();
}
+
+ bool contains(const QString &name) const
+ {
+ return indexOf(name) != -1;
+ }
};
class QML_PARSER_EXPORT PatternElement : public Node
@@ -2410,7 +2415,7 @@ public:
return false;
}
- QStringList formals() const;
+ BoundNames formals() const;
BoundNames boundNames() const;