| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | namespace QQmlJS { | - |
| 6 | | - |
| 7 | class Engine; | - |
| 8 | class DiagnosticMessage; | - |
| 9 | class Directives; | - |
| 10 | | - |
| 11 | class Lexer: public QQmlJSGrammar | - |
| 12 | { | - |
| 13 | public: | - |
| 14 | enum { | - |
| 15 | T_ABSTRACT = T_RESERVED_WORD, | - |
| 16 | T_BOOLEAN = T_RESERVED_WORD, | - |
| 17 | T_BYTE = T_RESERVED_WORD, | - |
| 18 | T_CHAR = T_RESERVED_WORD, | - |
| 19 | T_DOUBLE = T_RESERVED_WORD, | - |
| 20 | T_FINAL = T_RESERVED_WORD, | - |
| 21 | T_FLOAT = T_RESERVED_WORD, | - |
| 22 | T_GOTO = T_RESERVED_WORD, | - |
| 23 | T_IMPLEMENTS = T_RESERVED_WORD, | - |
| 24 | T_INT = T_RESERVED_WORD, | - |
| 25 | T_INTERFACE = T_RESERVED_WORD, | - |
| 26 | T_LONG = T_RESERVED_WORD, | - |
| 27 | T_NATIVE = T_RESERVED_WORD, | - |
| 28 | T_PACKAGE = T_RESERVED_WORD, | - |
| 29 | T_PRIVATE = T_RESERVED_WORD, | - |
| 30 | T_PROTECTED = T_RESERVED_WORD, | - |
| 31 | T_SHORT = T_RESERVED_WORD, | - |
| 32 | T_SYNCHRONIZED = T_RESERVED_WORD, | - |
| 33 | T_THROWS = T_RESERVED_WORD, | - |
| 34 | T_TRANSIENT = T_RESERVED_WORD, | - |
| 35 | T_VOLATILE = T_RESERVED_WORD | - |
| 36 | }; | - |
| 37 | | - |
| 38 | enum Error { | - |
| 39 | NoError, | - |
| 40 | IllegalCharacter, | - |
| 41 | IllegalNumber, | - |
| 42 | UnclosedStringLiteral, | - |
| 43 | IllegalEscapeSequence, | - |
| 44 | IllegalUnicodeEscapeSequence, | - |
| 45 | UnclosedComment, | - |
| 46 | IllegalExponentIndicator, | - |
| 47 | IllegalIdentifier, | - |
| 48 | IllegalHexadecimalEscapeSequence | - |
| 49 | }; | - |
| 50 | | - |
| 51 | enum RegExpBodyPrefix { | - |
| 52 | NoPrefix, | - |
| 53 | EqualPrefix | - |
| 54 | }; | - |
| 55 | | - |
| 56 | enum RegExpFlag { | - |
| 57 | RegExp_Global = 0x01, | - |
| 58 | RegExp_IgnoreCase = 0x02, | - |
| 59 | RegExp_Multiline = 0x04 | - |
| 60 | }; | - |
| 61 | | - |
| 62 | enum ParseModeFlags { | - |
| 63 | QmlMode = 0x1, | - |
| 64 | YieldIsKeyword = 0x2, | - |
| 65 | StaticIsKeyword = 0x4 | - |
| 66 | }; | - |
| 67 | | - |
| 68 | public: | - |
| 69 | Lexer(Engine *engine); | - |
| 70 | | - |
| 71 | int parseModeFlags() const { | - |
| 72 | int flags = 0; | - |
| 73 | if (qmlMode()| TRUE | evaluated 4616183 times by 143 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- ...
| | FALSE | evaluated 24544091 times by 26 testsEvaluated by:- tst_ecmascripttests
- tst_examples
- tst_qjsengine
- tst_qjsonbinding
- tst_qjsvalue
- tst_qjsvalueiterator
- tst_qmlcachegen
- tst_qmlmin
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlincubator
- tst_qqmllistmodelworkerscript
- tst_qqmlparser
- tst_qqmlqt
- tst_qqmlsqldatabase
- tst_qqmltranslation
- tst_qqmlvaluetypes
- tst_qqmlxmlhttprequest
- tst_qquickanimationcontroller
- tst_qquicklayouts
- tst_qquickworkerscript
- tst_quicktestmainwithsetup
- tst_qv4assembler
- tst_qv4debugger
- ...
|
) | 4616183-24544091 |
| 74 | flags |= QmlMode|StaticIsKeyword;executed 4616183 times by 143 tests: flags |= QmlMode|StaticIsKeyword;Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- 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
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- ...
| 4616183 |
| 75 | if (yieldIsKeyWord()| TRUE | evaluated 116088 times by 2 testsEvaluated by:- tst_ecmascripttests
- tst_qqmlparser
| | FALSE | evaluated 29052789 times by 148 testsEvaluated 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
- ...
|
) | 116088-29052789 |
| 76 | flags |= YieldIsKeyword;executed 116092 times by 2 tests: flags |= YieldIsKeyword;Executed by:- tst_ecmascripttests
- tst_qqmlparser
| 116092 |
| 77 | if (_staticIsKeyword| TRUE | evaluated 84259 times by 2 testsEvaluated by:- tst_ecmascripttests
- tst_qqmlparser
| | FALSE | evaluated 29106226 times by 148 testsEvaluated 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
- ...
|
) | 84259-29106226 |
| 78 | flags |= StaticIsKeyword;executed 84260 times by 2 tests: flags |= StaticIsKeyword;Executed by:- tst_ecmascripttests
- tst_qqmlparser
| 84260 |
| 79 | returnexecuted 29190215 times by 148 tests: return flags;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
- ...
flags;executed 29190215 times by 148 tests: return flags;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
- ...
| 29190215 |
| 80 | } | - |
| 81 | | - |
| 82 | bool qmlMode() const; | - |
| 83 | bool yieldIsKeyWord() const { returnexecuted 29164647 times by 148 tests: return _generatorLevel != 0;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
- ...
_generatorLevel != 0;executed 29164647 times by 148 tests: return _generatorLevel != 0;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
- ...
} | 29164647 |
| 84 | void setStaticIsKeyword(bool b) { _staticIsKeyword = b; }executed 49114 times by 2 tests: end of blockExecuted by:- tst_ecmascripttests
- tst_qqmlparser
| 49114 |
| 85 | | - |
| 86 | QString code() const; | - |
| 87 | void setCode(const QString &code, int lineno, bool qmlMode = true); | - |
| 88 | | - |
| 89 | int lex(); | - |
| 90 | | - |
| 91 | bool scanRegExp(RegExpBodyPrefix prefix = NoPrefix); | - |
| 92 | bool scanDirectives(Directives *directives, DiagnosticMessage *error); | - |
| 93 | | - |
| 94 | int regExpFlags() const { returnexecuted 1077704 times by 10 tests: return _patternFlags;Executed by:- tst_ecmascripttests
- tst_examples
- tst_parserstress
- tst_qjsengine
- tst_qjsvalue
- tst_qmlmin
- tst_qqmlecmascript
- tst_qqmlparser
- tst_qqmlxmlhttprequest
- tst_qquicktextinput
_patternFlags;executed 1077704 times by 10 tests: return _patternFlags;Executed by:- tst_ecmascripttests
- tst_examples
- tst_parserstress
- tst_qjsengine
- tst_qjsvalue
- tst_qmlmin
- tst_qqmlecmascript
- tst_qqmlparser
- tst_qqmlxmlhttprequest
- tst_qquicktextinput
} | 1077704 |
| 95 | QString regExpPattern() const { returnexecuted 1070192 times by 10 tests: return _tokenText;Executed by:- tst_ecmascripttests
- tst_examples
- tst_parserstress
- tst_qjsengine
- tst_qjsvalue
- tst_qmlmin
- tst_qqmlecmascript
- tst_qqmlparser
- tst_qqmlxmlhttprequest
- tst_qquicktextinput
_tokenText;executed 1070192 times by 10 tests: return _tokenText;Executed by:- tst_ecmascripttests
- tst_examples
- tst_parserstress
- tst_qjsengine
- tst_qjsvalue
- tst_qmlmin
- tst_qqmlecmascript
- tst_qqmlparser
- tst_qqmlxmlhttprequest
- tst_qquicktextinput
} | 1070192 |
| 96 | | - |
| 97 | int tokenKind() const { returnexecuted 1778771 times by 27 tests: return _tokenKind;Executed by:- tst_ecmascripttests
- tst_examples
- tst_qjsengine
- tst_qjsonbinding
- tst_qjsvalue
- tst_qjsvalueiterator
- tst_qmlcachegen
- tst_qmlmin
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlincubator
- tst_qqmllistmodelworkerscript
- tst_qqmlmetatype
- tst_qqmlparser
- tst_qqmlqt
- tst_qqmlsqldatabase
- tst_qqmltranslation
- tst_qqmlvaluetypes
- tst_qqmlxmlhttprequest
- tst_qquickanimationcontroller
- tst_qquicklayouts
- tst_qquickworkerscript
- tst_quicktestmainwithsetup
- tst_qv4assembler
- ...
_tokenKind;executed 1778771 times by 27 tests: return _tokenKind;Executed by:- tst_ecmascripttests
- tst_examples
- tst_qjsengine
- tst_qjsonbinding
- tst_qjsvalue
- tst_qjsvalueiterator
- tst_qmlcachegen
- tst_qmlmin
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlincubator
- tst_qqmllistmodelworkerscript
- tst_qqmlmetatype
- tst_qqmlparser
- tst_qqmlqt
- tst_qqmlsqldatabase
- tst_qqmltranslation
- tst_qqmlvaluetypes
- tst_qqmlxmlhttprequest
- tst_qquickanimationcontroller
- tst_qquicklayouts
- tst_qquickworkerscript
- tst_quicktestmainwithsetup
- tst_qv4assembler
- ...
} | 1778771 |
| 98 | int tokenOffset() const { returnexecuted 76807374 times by 148 tests: return _tokenStartPtr - _code.unicode();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
- ...
_tokenStartPtr - _code.unicode();executed 76807374 times by 148 tests: return _tokenStartPtr - _code.unicode();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
- ...
} | 76807374 |
| 99 | int tokenLength() const { returnexecuted 75901609 times by 147 tests: return _tokenLength;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_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- ...
_tokenLength;executed 75901609 times by 147 tests: return _tokenLength;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_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- ...
} | 75901609 |
| 100 | | - |
| 101 | int tokenStartLine() const { returnexecuted 76991332 times by 148 tests: return _tokenLine;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
- ...
_tokenLine;executed 76991332 times by 148 tests: return _tokenLine;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
- ...
} | 76991332 |
| 102 | int tokenStartColumn() const { returnexecuted 77024699 times by 148 tests: return _tokenColumn;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
- ...
_tokenColumn;executed 77024699 times by 148 tests: return _tokenColumn;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
- ...
} | 77024699 |
| 103 | | - |
| 104 | inline QStringRef tokenSpell() const { returnexecuted 74819225 times by 147 tests: return _tokenSpell;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_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- ...
_tokenSpell;executed 74819225 times by 147 tests: return _tokenSpell;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_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- ...
} | 74819225 |
| 105 | double tokenValue() const { returnexecuted 74776242 times by 147 tests: return _tokenValue;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_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- ...
_tokenValue;executed 74776242 times by 147 tests: return _tokenValue;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_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- ...
} | 74776242 |
| 106 | QString tokenText() const; | - |
| 107 | | - |
| 108 | Error errorCode() const; | - |
| 109 | QString errorMessage() const; | - |
| 110 | | - |
| 111 | bool prevTerminator() const; | - |
| 112 | bool followsClosingBrace() const; | - |
| 113 | bool canInsertAutomaticSemicolon(int token) const; | - |
| 114 | | - |
| 115 | enum ParenthesesState { | - |
| 116 | IgnoreParentheses, | - |
| 117 | CountParentheses, | - |
| 118 | BalancedParentheses | - |
| 119 | }; | - |
| 120 | | - |
| 121 | void enterGeneratorBody() { ++_generatorLevel; }executed 18020 times by 2 tests: end of blockExecuted by:- tst_ecmascripttests
- tst_qqmlparser
| 18020 |
| 122 | void leaveGeneratorBody() { --_generatorLevel; }executed 17329 times by 2 tests: end of blockExecuted by:- tst_ecmascripttests
- tst_qqmlparser
| 17329 |
| 123 | | - |
| 124 | protected: | - |
| 125 | static int classify(const QChar *s, int n, int parseModeFlags); | - |
| 126 | | - |
| 127 | private: | - |
| 128 | inline void scanChar(); | - |
| 129 | int scanToken(); | - |
| 130 | int scanNumber(QChar ch); | - |
| 131 | enum ScanStringMode { | - |
| 132 | SingleQuote = '\'', | - |
| 133 | DoubleQuote = '"', | - |
| 134 | TemplateHead = '`', | - |
| 135 | TemplateContinuation = 0 | - |
| 136 | }; | - |
| 137 | int scanString(ScanStringMode mode); | - |
| 138 | | - |
| 139 | bool isLineTerminator() const; | - |
| 140 | unsigned isLineTerminatorSequence() const; | - |
| 141 | static bool isIdentLetter(QChar c); | - |
| 142 | static bool isDecimalDigit(ushort c); | - |
| 143 | static bool isHexDigit(QChar c); | - |
| 144 | static bool isOctalDigit(ushort c); | - |
| 145 | | - |
| 146 | void syncProhibitAutomaticSemicolon(); | - |
| 147 | uint decodeUnicodeEscapeCharacter(bool *ok); | - |
| 148 | QChar decodeHexEscapeCharacter(bool *ok); | - |
| 149 | | - |
| 150 | private: | - |
| 151 | Engine *_engine; | - |
| 152 | | - |
| 153 | QString _code; | - |
| 154 | QString _tokenText; | - |
| 155 | QString _errorMessage; | - |
| 156 | QStringRef _tokenSpell; | - |
| 157 | | - |
| 158 | const QChar *_codePtr; | - |
| 159 | const QChar *_endPtr; | - |
| 160 | const QChar *_tokenStartPtr; | - |
| 161 | | - |
| 162 | QChar _char; | - |
| 163 | Error _errorCode; | - |
| 164 | | - |
| 165 | int _currentLineNumber; | - |
| 166 | int _currentColumnNumber; | - |
| 167 | double _tokenValue; | - |
| 168 | | - |
| 169 | | - |
| 170 | ParenthesesState _parenthesesState; | - |
| 171 | int _parenthesesCount; | - |
| 172 | | - |
| 173 | | - |
| 174 | QStack<int> _outerTemplateBraceCount; | - |
| 175 | int _bracesCount = -1; | - |
| 176 | | - |
| 177 | int _stackToken; | - |
| 178 | | - |
| 179 | int _patternFlags; | - |
| 180 | int _tokenKind; | - |
| 181 | int _tokenLength; | - |
| 182 | int _tokenLine; | - |
| 183 | int _tokenColumn; | - |
| 184 | | - |
| 185 | bool _validTokenText; | - |
| 186 | bool _prohibitAutomaticSemicolon; | - |
| 187 | bool _restrictedKeyword; | - |
| 188 | bool _terminator; | - |
| 189 | bool _followsClosingBrace; | - |
| 190 | bool _delimited; | - |
| 191 | bool _qmlMode; | - |
| 192 | int _generatorLevel = 0; | - |
| 193 | bool _staticIsKeyword = false; | - |
| 194 | }; | - |
| 195 | | - |
| 196 | } | - |
| 197 | | - |
| 198 | | - |
| | |