File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -4790,18 +4790,14 @@ bool Parser::parseQ_ENUM(DeclarationAST *&node)
47904790
47914791bool Parser::parseQ_PROPERTY (DeclarationAST *&node)
47924792{
4793- if (token_stream.lookAhead () != Token_Q_PROPERTY)
4793+ if (token_stream.lookAhead () != Token_Q_PROPERTY || token_stream. lookAhead ( 1 ) != ' ( ' )
47944794 return false ;
47954795
4796- if (token_stream.lookAhead (1 ) != ' (' )
4797- return false ;
4798-
4799- nextToken ();
48004796 nextToken ();
48014797
4802- size_t firstToken = token_stream.cursor ();
4803- while (token_stream. lookAhead () != ' )' ) {
4804- nextToken () ;
4798+ size_t firstToken = token_stream.cursor ()+ 1 ;
4799+ if (! skip ( ' ( ' , ' )' ) ) {
4800+ return false ;
48054801 }
48064802 QPropertyAST *ast = CreateNode<QPropertyAST>(_M_pool);
48074803 UPDATE_POS (ast, firstToken, token_stream.cursor ());
You can’t perform that action at this time.
0 commit comments