summaryrefslogtreecommitdiff
path: root/xfa/fxfa/fm2js/cxfa_fmparser.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-02-21 14:35:22 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-21 14:35:22 +0000
commitee1db60fc0e20706cc987b2b0cc5c03dc2222f6a (patch)
treef1e6c8378d6149a75ed0c29628685be49d0c7407 /xfa/fxfa/fm2js/cxfa_fmparser.h
parent9b746fdef766c2cfbd7a54fb43406cf72f9685bf (diff)
downloadpdfium-ee1db60fc0e20706cc987b2b0cc5c03dc2222f6a.tar.xz
[formcalc] Remove the ParseBlockExpression method
In all the places we call ParseBlockExpression we really mean to parse an ExpressionList. Using ParseBlockExpression is confusing because the formcalc grammar has a BlockExpression defined which corresponds to our ParseDoExpression. This CL converts the use of ParseBlockExpression into calls to ParseExpressionList and then builds the BlockExpression class as needed. Change-Id: Iab9b6e783f01d35df905539d4dbc20ba18a7b0f9 Reviewed-on: https://pdfium-review.googlesource.com/27470 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/fm2js/cxfa_fmparser.h')
-rw-r--r--xfa/fxfa/fm2js/cxfa_fmparser.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/xfa/fxfa/fm2js/cxfa_fmparser.h b/xfa/fxfa/fm2js/cxfa_fmparser.h
index e78495309e..9aff8d7bd6 100644
--- a/xfa/fxfa/fm2js/cxfa_fmparser.h
+++ b/xfa/fxfa/fm2js/cxfa_fmparser.h
@@ -35,7 +35,6 @@ class CXFA_FMParser {
std::unique_ptr<CXFA_FMExpression> ParseExpression();
std::unique_ptr<CXFA_FMExpression> ParseDeclarationExpression();
std::unique_ptr<CXFA_FMExpression> ParseExpExpression();
- std::unique_ptr<CXFA_FMExpression> ParseBlockExpression();
std::unique_ptr<CXFA_FMExpression> ParseIfExpression();
std::unique_ptr<CXFA_FMExpression> ParseWhileExpression();
std::unique_ptr<CXFA_FMExpression> ParseForExpression();