OpenCoverage

qqmljsengine_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/parser/qqmljsengine_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5namespace QQmlJS {-
6-
7class Lexer;-
8class MemoryPool;-
9-
10class __attribute__((visibility("default"))) Directives {-
11public:-
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:
  • tst_qqmlparser
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:
  • tst_qqmlparser
80
34};-
35-
36-
37class __attribute__((visibility("default"))) DiagnosticMessage-
38{-
39public:-
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:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qqmlparser
  • tst_qquickloader
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
  • tst_qtqmlmodules
31475
46-
47 bool isWarning() const-
48 { return
executed 26 times by 1 test: return kind == Warning;
Executed by:
  • tst_qqmlecmascript
kind == Warning;
executed 26 times by 1 test: return kind == Warning;
Executed by:
  • tst_qqmlecmascript
}
26
49-
50 bool isError() const-
51 { return
executed 4834 times by 7 tests: return kind == Error;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
kind == Error;
executed 4834 times by 7 tests: return kind == Error;
Executed by:
  • tst_ecmascripttests
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmlexpression
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
}
4834
52-
53 Kind kind = Error;-
54 AST::SourceLocation loc;-
55 QString message;-
56};-
57-
58class __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-
67public:-
68 Engine();-
69 ~Engine();-
70-
71 void setCode(const QString &code);-
72 const QString &code() const { return
never executed: return _code;
_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: return _code.midRef(position, size);
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qmlmin
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • ...
_code.midRef(position, size);
executed 33212337 times by 149 tests: return _code.midRef(position, size);
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qmlmin
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • ...
}
33212337
86-
87 QStringRef newStringRef(const QString &s);-
88 QStringRef newStringRef(const QChar *chars, int size);-
89};-
90-
91double integerFromString(const char *buf, int size, int radix);-
92-
93}-
94-
95-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0