diff options
author | dan sinclair <dsinclair@chromium.org> | 2018-02-19 18:13:03 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-02-19 18:13:03 +0000 |
commit | 636259244a298b09aab0195258e76b51784766ff (patch) | |
tree | 26e0c1704f591d533839f19d701fa0c2dd30eaf2 /xfa/fxfa/fm2js/cxfa_fmsimpleexpression.h | |
parent | efb648866f9582845d4788c945e523d565464cb9 (diff) | |
download | pdfium-636259244a298b09aab0195258e76b51784766ff.tar.xz |
Inline FormCalc method names
This CL inlines the FormCalc method names instead of using a lookup
array. Many of the names were only referenced once and this makes the
code a lot simpler to read.
Change-Id: Ib80f5bfa0097e4f1bad232e7de452f067db2a758
Reviewed-on: https://pdfium-review.googlesource.com/27211
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/fm2js/cxfa_fmsimpleexpression.h')
-rw-r--r-- | xfa/fxfa/fm2js/cxfa_fmsimpleexpression.h | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/xfa/fxfa/fm2js/cxfa_fmsimpleexpression.h b/xfa/fxfa/fm2js/cxfa_fmsimpleexpression.h index 3196fa0273..57f4d2ed11 100644 --- a/xfa/fxfa/fm2js/cxfa_fmsimpleexpression.h +++ b/xfa/fxfa/fm2js/cxfa_fmsimpleexpression.h @@ -12,39 +12,6 @@ #include "xfa/fxfa/fm2js/cxfa_fmlexer.h" -enum XFA_FM_SimpleExpressionType { - ASSIGN, - LOGICALOR, - LOGICALAND, - EQUALITY, - NOTEQUALITY, - LESS, - LESSEQUAL, - GREATER, - GREATEREQUAL, - PLUS, - MINUS, - MULTIPLE, - DIVIDE, - POSITIVE, - NEGATIVE, - NOT, - CALL, - DOT, - DOTDOT, - CONCATFMOBJECT, - ISFMOBJECT, - ISFMARRAY, - GETFMVALUE, - GETFMJSOBJ, - VARFILTER -}; - -class CFX_WideTextBuf; - -WideStringView XFA_FM_EXPTypeToString( - XFA_FM_SimpleExpressionType simpleExpType); - enum XFA_FM_AccessorIndex { ACCESSOR_NO_INDEX, ACCESSOR_NO_RELATIVEINDEX, @@ -54,6 +21,8 @@ enum XFA_FM_AccessorIndex { enum class ReturnType { kImplied, kInfered }; +class CFX_WideTextBuf; + class CXFA_FMSimpleExpression { public: CXFA_FMSimpleExpression(uint32_t line, XFA_FM_TOKEN op); |