OpenCoverage

qqmldirparser_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmldirparser_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4class QQmlError;-
5class QQmlEngine;-
6class __attribute__((visibility("default"))) QQmlDirParser-
7{-
8public:-
9 QQmlDirParser();-
10 ~QQmlDirParser();-
11-
12 bool parse(const QString &source);-
13-
14 bool hasError() const;-
15 void setError(const QQmlError &);-
16 QList<QQmlError> errors(const QString &uri) const;-
17-
18 QString typeNamespace() const;-
19 void setTypeNamespace(const QString &s);-
20-
21 struct Plugin-
22 {-
23 Plugin() {}-
24-
25 Plugin(const QString &name, const QString &path)-
26 : name(name), path(path) {}
executed 7633 times by 137 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmldirparser
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
7633
27-
28 QString name;-
29 QString path;-
30 };-
31-
32 struct Component-
33 {-
34 Component() {}-
35-
36 Component(const QString &typeName, const QString &fileName, int majorVersion, int minorVersion)-
37 : typeName(typeName), fileName(fileName), majorVersion(majorVersion), minorVersion(minorVersion),-
38 internal(false), singleton(false) {}
executed 440 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmldirparser
  • tst_qqmlimport
  • tst_qqmllistmodel
  • tst_qqmlmoduleplugin
  • tst_qqmltypeloader
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qrcqml
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
440
39-
40 QString typeName;-
41 QString fileName;-
42 int majorVersion = 0;-
43 int minorVersion = 0;-
44 bool internal = false;-
45 bool singleton = false;-
46 };-
47-
48 struct Script-
49 {-
50 Script() {}-
51-
52 Script(const QString &nameSpace, const QString &fileName, int majorVersion, int minorVersion)-
53 : nameSpace(nameSpace), fileName(fileName), majorVersion(majorVersion), minorVersion(minorVersion) {}
executed 10 times by 2 tests: end of block
Executed by:
  • tst_qqmldirparser
  • tst_qqmlecmascript
10
54-
55 QString nameSpace;-
56 QString fileName;-
57 int majorVersion = 0;-
58 int minorVersion = 0;-
59 };-
60-
61 QHash<QString,Component> components() const;-
62 QHash<QString,Component> dependencies() const;-
63 QList<Script> scripts() const;-
64 QList<Plugin> plugins() const;-
65 bool designerSupported() const;-
66 QString className() const;-
67-
68private:-
69 bool maybeAddComponent(const QString &typeName, const QString &fileName, const QString &version, QHash<QString,Component> &hash, int lineNumber = -1, bool multi = true);-
70 void reportError(quint16 line, quint16 column, const QString &message);-
71-
72private:-
73 QList<QQmlJS::DiagnosticMessage> _errors;-
74 QString _typeNamespace;-
75 QHash<QString,Component> _components;-
76 QHash<QString,Component> _dependencies;-
77 QList<Script> _scripts;-
78 QList<Plugin> _plugins;-
79 bool _designerSupported;-
80-
81-
82-
83 QString _className;-
84};-
85-
86typedef QHash<QString,QQmlDirParser::Component> QQmlDirComponents;-
87typedef QList<QQmlDirParser::Script> QQmlDirScripts;-
88typedef QList<QQmlDirParser::Plugin> QQmlDirPlugins;-
89-
90QDebug &operator<< (QDebug &, const QQmlDirParser::Component &);-
91QDebug &operator<< (QDebug &, const QQmlDirParser::Script &);-
92-
93-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0