Lines Matching refs:expr
71 std::unique_ptr<CXFA_FMExpression> expr; in ParseTopExpression() local
80 expr = m_token->m_type == TOKfunc ? ParseFunction() : ParseExpression(); in ParseTopExpression()
81 if (!expr) { in ParseTopExpression()
85 expressions.push_back(std::move(expr)); in ParseTopExpression()
158 std::unique_ptr<CXFA_FMExpression> expr; in ParseExpression() local
162 expr = ParseVarExpression(); in ParseExpression()
172 expr = ParseExpExpression(); in ParseExpression()
175 expr = ParseIfExpression(); in ParseExpression()
178 expr = ParseWhileExpression(); in ParseExpression()
181 expr = ParseForExpression(); in ParseExpression()
184 expr = ParseForeachExpression(); in ParseExpression()
187 expr = ParseDoExpression(); in ParseExpression()
190 expr = pdfium::MakeUnique<CXFA_FMBreakExpression>(line); in ParseExpression()
195 expr = pdfium::MakeUnique<CXFA_FMContinueExpression>(line); in ParseExpression()
203 return expr; in ParseExpression()
224 std::unique_ptr<CXFA_FMExpression> expr; in ParseVarExpression() local
229 expr = ParseExpExpression(); in ParseVarExpression()
230 if (!expr) in ParseVarExpression()
234 return pdfium::MakeUnique<CXFA_FMVarExpression>(line, ident, std::move(expr)); in ParseVarExpression()
552 std::unique_ptr<CXFA_FMSimpleExpression> expr; in ParseUnaryExpression() local
559 expr = ParseUnaryExpression(); in ParseUnaryExpression()
560 if (!expr) in ParseUnaryExpression()
563 expr = pdfium::MakeUnique<CXFA_FMPosExpression>(line, std::move(expr)); in ParseUnaryExpression()
569 expr = ParseUnaryExpression(); in ParseUnaryExpression()
570 if (!expr) in ParseUnaryExpression()
573 expr = pdfium::MakeUnique<CXFA_FMNegExpression>(line, std::move(expr)); in ParseUnaryExpression()
579 expr = ParseUnaryExpression(); in ParseUnaryExpression()
580 if (!expr) in ParseUnaryExpression()
583 expr = pdfium::MakeUnique<CXFA_FMNotExpression>(line, std::move(expr)); in ParseUnaryExpression()
586 expr = ParsePrimaryExpression(); in ParseUnaryExpression()
587 if (!expr) in ParseUnaryExpression()
591 return expr; in ParseUnaryExpression()
600 std::unique_ptr<CXFA_FMSimpleExpression> expr; in ParsePrimaryExpression() local
604 expr = in ParsePrimaryExpression()
610 expr = in ParsePrimaryExpression()
624 expr = pdfium::MakeUnique<CXFA_FMDotAccessorExpression>( in ParsePrimaryExpression()
626 if (!expr) in ParsePrimaryExpression()
631 expr = in ParsePrimaryExpression()
637 expr = pdfium::MakeUnique<CXFA_FMIdentifierExpression>(line, in ParsePrimaryExpression()
639 if (!expr || !NextToken()) in ParsePrimaryExpression()
643 expr = pdfium::MakeUnique<CXFA_FMNullExpression>(line); in ParsePrimaryExpression()
644 if (!expr || !NextToken()) in ParsePrimaryExpression()
648 expr = ParseParenExpression(); in ParsePrimaryExpression()
649 if (!expr) in ParsePrimaryExpression()
656 expr = ParsePostExpression(std::move(expr)); in ParsePrimaryExpression()
657 if (!expr) in ParsePrimaryExpression()
659 return expr; in ParsePrimaryExpression()
663 std::unique_ptr<CXFA_FMSimpleExpression> expr) { in ParsePostExpression() argument
699 expr = pdfium::MakeUnique<CXFA_FMCallExpression>( in ParsePostExpression()
700 line, std::move(expr), std::move(expressions), false); in ParsePostExpression()
710 expr = pdfium::MakeUnique<CXFA_FMDotAccessorExpression>( in ParsePostExpression()
711 line, std::move(expr), TOKcall, L"", std::move(s)); in ParsePostExpression()
757 expr = pdfium::MakeUnique<CXFA_FMMethodCallExpression>( in ParsePostExpression()
758 line, std::move(expr), std::move(pExpCall)); in ParsePostExpression()
768 expr = pdfium::MakeUnique<CXFA_FMDotAccessorExpression>( in ParsePostExpression()
769 line, std::move(expr), TOKcall, L"", std::move(s)); in ParsePostExpression()
775 expr = pdfium::MakeUnique<CXFA_FMDotAccessorExpression>( in ParsePostExpression()
776 tempLine, std::move(expr), TOKdot, tempStr, std::move(s)); in ParsePostExpression()
781 expr = pdfium::MakeUnique<CXFA_FMDotAccessorExpression>( in ParsePostExpression()
782 line, std::move(expr), TOKdot, tempStr, std::move(s)); in ParsePostExpression()
802 expr = pdfium::MakeUnique<CXFA_FMDotDotAccessorExpression>( in ParsePostExpression()
803 tempLine, std::move(expr), TOKdotdot, tempStr, std::move(s)); in ParsePostExpression()
808 expr = pdfium::MakeUnique<CXFA_FMDotDotAccessorExpression>( in ParsePostExpression()
809 line, std::move(expr), TOKdotdot, tempStr, std::move(s)); in ParsePostExpression()
828 expr = pdfium::MakeUnique<CXFA_FMDotAccessorExpression>( in ParsePostExpression()
829 line, std::move(expr), TOKdotscream, tempStr, std::move(s)); in ParsePostExpression()
836 expr = pdfium::MakeUnique<CXFA_FMDotAccessorExpression>( in ParsePostExpression()
837 tempLine, std::move(expr), TOKdotscream, tempStr, std::move(s)); in ParsePostExpression()
844 expr = pdfium::MakeUnique<CXFA_FMDotAccessorExpression>( in ParsePostExpression()
845 line, std::move(expr), TOKdotstar, L"*", std::move(s)); in ParsePostExpression()
849 return expr; in ParsePostExpression()
854 return expr; in ParsePostExpression()
950 std::unique_ptr<CXFA_FMExpression> expr; in ParseBlockExpression() local
963 expr = ParseFunction(); in ParseBlockExpression()
964 if (!expr) in ParseBlockExpression()
967 expressions.push_back(std::move(expr)); in ParseBlockExpression()
970 expr = ParseExpression(); in ParseBlockExpression()
971 if (!expr) in ParseBlockExpression()
974 expressions.push_back(std::move(expr)); in ParseBlockExpression()
1087 std::unique_ptr<CXFA_FMSimpleExpression> expr = ParseSimpleExpression(); in ParseSubassignmentInForExpression() local
1088 if (!expr) in ParseSubassignmentInForExpression()
1090 return expr; in ParseSubassignmentInForExpression()
1154 std::unique_ptr<CXFA_FMExpression> expr; in ParseForExpression() local
1155 if (!expr) in ParseForExpression()
1170 std::unique_ptr<CXFA_FMExpression> expr; in ParseForeachExpression() local
1223 std::unique_ptr<CXFA_FMExpression> expr = ParseBlockExpression(); in ParseDoExpression() local
1224 if (!expr || !CheckThenNext(TOKend)) in ParseDoExpression()
1226 return pdfium::MakeUnique<CXFA_FMDoExpression>(line, std::move(expr)); in ParseDoExpression()