summaryrefslogtreecommitdiff
path: root/xfa/fxfa/fm2js/cxfa_fmparse.h
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/fm2js/cxfa_fmparse.h')
-rw-r--r--xfa/fxfa/fm2js/cxfa_fmparse.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxfa/fm2js/cxfa_fmparse.h b/xfa/fxfa/fm2js/cxfa_fmparse.h
index 625145e7a2..0f7109135d 100644
--- a/xfa/fxfa/fm2js/cxfa_fmparse.h
+++ b/xfa/fxfa/fm2js/cxfa_fmparse.h
@@ -15,16 +15,16 @@
class CXFA_FMParse {
public:
- CXFA_FMParse(const CFX_WideStringC& wsFormcalc, CXFA_FMErrorInfo* pErrorInfo);
+ explicit CXFA_FMParse(const CFX_WideStringC& wsFormcalc);
~CXFA_FMParse();
std::unique_ptr<CXFA_FMFunctionDefinition> Parse();
+ bool HasError() const;
private:
void NextToken();
void Check(XFA_FM_TOKEN op);
- void Error(const wchar_t* msg, ...);
- bool HasError() const;
+
std::vector<std::unique_ptr<CXFA_FMExpression>> ParseTopExpression();
std::unique_ptr<CXFA_FMExpression> ParseFunction();
std::unique_ptr<CXFA_FMExpression> ParseExpression();
@@ -53,7 +53,7 @@ class CXFA_FMParse {
std::unique_ptr<CXFA_FMLexer> m_lexer;
CXFA_FMToken* m_pToken;
- CXFA_FMErrorInfo* const m_pErrorInfo;
+ bool m_ParserError;
};
#endif // XFA_FXFA_FM2JS_CXFA_FMPARSE_H_