Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmldirparser_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | class QQmlError; | - |
5 | class QQmlEngine; | - |
6 | class __attribute__((visibility("default"))) QQmlDirParser | - |
7 | { | - |
8 | public: | - |
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:
| 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:
| 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:
| 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 | - | |
68 | private: | - |
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 | - | |
72 | private: | - |
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 | - | |
86 | typedef QHash<QString,QQmlDirParser::Component> QQmlDirComponents; | - |
87 | typedef QList<QQmlDirParser::Script> QQmlDirScripts; | - |
88 | typedef QList<QQmlDirParser::Plugin> QQmlDirPlugins; | - |
89 | - | |
90 | QDebug &operator<< (QDebug &, const QQmlDirParser::Component &); | - |
91 | QDebug &operator<< (QDebug &, const QQmlDirParser::Script &); | - |
92 | - | |
93 | - | |
Switch to Source code | Preprocessed file |