Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/parser/qqmljsengine_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | namespace QQmlJS { | - |
6 | - | |
7 | class Lexer; | - |
8 | class MemoryPool; | - |
9 | - | |
10 | class __attribute__((visibility("default"))) Directives { | - |
11 | public: | - |
12 | virtual ~Directives() {} | - |
13 | - | |
14 | virtual void pragmaLibrary() | - |
15 | { | - |
16 | } | - |
17 | - | |
18 | virtual void importFile(const QString &jsfile, const QString &module, int line, int column) | - |
19 | { | - |
20 | (void)jsfile;; | - |
21 | (void)module;; | - |
22 | (void)line;; | - |
23 | (void)column;; | - |
24 | } executed 218 times by 1 test: end of block Executed by:
| 218 |
25 | - | |
26 | virtual void importModule(const QString &uri, const QString &version, const QString &module, int line, int column) | - |
27 | { | - |
28 | (void)uri;; | - |
29 | (void)version;; | - |
30 | (void)module;; | - |
31 | (void)line;; | - |
32 | (void)column;; | - |
33 | } executed 80 times by 1 test: end of block Executed by:
| 80 |
34 | }; | - |
35 | - | |
36 | - | |
37 | class __attribute__((visibility("default"))) DiagnosticMessage | - |
38 | { | - |
39 | public: | - |
40 | enum Kind { Warning, Error }; | - |
41 | - | |
42 | DiagnosticMessage() {} | - |
43 | - | |
44 | DiagnosticMessage(Kind kind, const AST::SourceLocation &loc, const QString &message) | - |
45 | : kind(kind), loc(loc), message(message) {} executed 31475 times by 10 tests: end of block Executed by:
| 31475 |
46 | - | |
47 | bool isWarning() const | - |
48 | { return executed 26 times by 1 test: kind == Warning;return kind == Warning; Executed by:
executed 26 times by 1 test: }return kind == Warning; Executed by:
| 26 |
49 | - | |
50 | bool isError() const | - |
51 | { return executed 4834 times by 7 tests: kind == Error;return kind == Error; Executed by:
executed 4834 times by 7 tests: }return kind == Error; Executed by:
| 4834 |
52 | - | |
53 | Kind kind = Error; | - |
54 | AST::SourceLocation loc; | - |
55 | QString message; | - |
56 | }; | - |
57 | - | |
58 | class __attribute__((visibility("default"))) Engine | - |
59 | { | - |
60 | Lexer *_lexer; | - |
61 | Directives *_directives; | - |
62 | MemoryPool _pool; | - |
63 | QList<AST::SourceLocation> _comments; | - |
64 | QString _extraCode; | - |
65 | QString _code; | - |
66 | - | |
67 | public: | - |
68 | Engine(); | - |
69 | ~Engine(); | - |
70 | - | |
71 | void setCode(const QString &code); | - |
72 | const QString &code() const { return never executed: _code;return _code; never executed: }return _code; | 0 |
73 | - | |
74 | void addComment(int pos, int len, int line, int col); | - |
75 | QList<AST::SourceLocation> comments() const; | - |
76 | - | |
77 | Lexer *lexer() const; | - |
78 | void setLexer(Lexer *lexer); | - |
79 | - | |
80 | Directives *directives() const; | - |
81 | void setDirectives(Directives *directives); | - |
82 | - | |
83 | MemoryPool *pool(); | - |
84 | - | |
85 | inline QStringRef midRef(int position, int size) { return executed 33212337 times by 149 tests: _code.midRef(position, size);return _code.midRef(position, size); Executed by:
executed 33212337 times by 149 tests: }return _code.midRef(position, size); Executed by:
| 33212337 |
86 | - | |
87 | QStringRef newStringRef(const QString &s); | - |
88 | QStringRef newStringRef(const QChar *chars, int size); | - |
89 | }; | - |
90 | - | |
91 | double integerFromString(const char *buf, int size, int radix); | - |
92 | - | |
93 | } | - |
94 | - | |
95 | - | |
Switch to Source code | Preprocessed file |