OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #include "xfa/fxfa/fm2js/xfa_expression.h" | 7 #include "xfa/fxfa/fm2js/xfa_expression.h" |
8 | 8 |
9 #include "core/fxcrt/fx_basic.h" | 9 #include "core/fxcrt/fx_basic.h" |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 CXFA_FMExpression::CXFA_FMExpression(uint32_t line, XFA_FM_EXPTYPE type) | 24 CXFA_FMExpression::CXFA_FMExpression(uint32_t line, XFA_FM_EXPTYPE type) |
25 : m_type(type), m_line(line) {} | 25 : m_type(type), m_line(line) {} |
26 | 26 |
27 void CXFA_FMExpression::ToJavaScript(CFX_WideTextBuf& javascript) {} | 27 void CXFA_FMExpression::ToJavaScript(CFX_WideTextBuf& javascript) {} |
28 | 28 |
29 void CXFA_FMExpression::ToImpliedReturnJS(CFX_WideTextBuf& javascript) {} | 29 void CXFA_FMExpression::ToImpliedReturnJS(CFX_WideTextBuf& javascript) {} |
30 | 30 |
31 CXFA_FMFunctionDefinition::CXFA_FMFunctionDefinition( | 31 CXFA_FMFunctionDefinition::CXFA_FMFunctionDefinition( |
32 uint32_t line, | 32 uint32_t line, |
33 FX_BOOL isGlobal, | 33 bool isGlobal, |
34 const CFX_WideStringC& wsName, | 34 const CFX_WideStringC& wsName, |
35 std::unique_ptr<CFX_WideStringCArray> pArguments, | 35 std::unique_ptr<CFX_WideStringCArray> pArguments, |
36 CFX_ArrayTemplate<CXFA_FMExpression*>* pExpressions) | 36 CFX_ArrayTemplate<CXFA_FMExpression*>* pExpressions) |
37 : CXFA_FMExpression(line, XFA_FM_EXPTYPE_FUNC), | 37 : CXFA_FMExpression(line, XFA_FM_EXPTYPE_FUNC), |
38 m_wsName(wsName), | 38 m_wsName(wsName), |
39 m_pArguments(std::move(pArguments)), | 39 m_pArguments(std::move(pArguments)), |
40 m_pExpressions(pExpressions), | 40 m_pExpressions(pExpressions), |
41 m_isGlobal(isGlobal) {} | 41 m_isGlobal(isGlobal) {} |
42 | 42 |
43 CXFA_FMFunctionDefinition::~CXFA_FMFunctionDefinition() { | 43 CXFA_FMFunctionDefinition::~CXFA_FMFunctionDefinition() { |
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 } | 617 } |
618 javascript << FX_WSTRC(L" = "); | 618 javascript << FX_WSTRC(L" = "); |
619 javascript << RUNTIMEBLOCKTEMPARRAY; | 619 javascript << RUNTIMEBLOCKTEMPARRAY; |
620 javascript << FX_WSTRC(L"["); | 620 javascript << FX_WSTRC(L"["); |
621 javascript << RUNTIMEBLOCKTEMPARRAYINDEX; | 621 javascript << RUNTIMEBLOCKTEMPARRAYINDEX; |
622 javascript << FX_WSTRC(L"++];\n"); | 622 javascript << FX_WSTRC(L"++];\n"); |
623 m_pList->ToImpliedReturnJS(javascript); | 623 m_pList->ToImpliedReturnJS(javascript); |
624 javascript << FX_WSTRC(L"}\n"); | 624 javascript << FX_WSTRC(L"}\n"); |
625 javascript << FX_WSTRC(L"}\n"); | 625 javascript << FX_WSTRC(L"}\n"); |
626 } | 626 } |
OLD | NEW |