From c3ad706c6ff19a132bf78501430c850040e967fc Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 21 Mar 2018 12:25:51 +0100 Subject: Added support for generator functions and yield expressions to the AST Some smaller changes to the codegen are included as well to ensure that we catch all uses of generators and properly throw an unimplemented error on them for now. Change-Id: Ib915a0e862e128644ff00dfe989507783c912c66 Reviewed-by: Simon Hausmann --- src/qml/parser/qqmljslexer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/qml/parser/qqmljslexer.cpp') diff --git a/src/qml/parser/qqmljslexer.cpp b/src/qml/parser/qqmljslexer.cpp index 453c8ca474..3dbe535bcf 100644 --- a/src/qml/parser/qqmljslexer.cpp +++ b/src/qml/parser/qqmljslexer.cpp @@ -284,6 +284,7 @@ int Lexer::lex() case T_CONTINUE: case T_BREAK: case T_RETURN: + case T_YIELD: case T_THROW: _restrictedKeyword = true; break; -- cgit v1.2.3