MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / genParameters

Method genParameters

src/dsql/StmtNodes.cpp:1795–1813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1793}
1794
1795void DeclareSubFuncNode::genParameters(DsqlCompilerScratch* dsqlScratch,
1796 Array<NestConst<ParameterClause> >& paramArray)
1797{
1798 dsqlScratch->appendUShort(USHORT(paramArray.getCount()));
1799
1800 for (NestConst<ParameterClause>* i = paramArray.begin(); i != paramArray.end(); ++i)
1801 {
1802 ParameterClause* param = *i;
1803 dsqlScratch->appendNullString(param->name.c_str());
1804
1805 if (param->defaultClause)
1806 {
1807 dsqlScratch->appendUChar(1);
1808 GEN_expr(dsqlScratch, param->defaultClause->value);
1809 }
1810 else
1811 dsqlScratch->appendUChar(0);
1812 }
1813}
1814
1815const StmtNode* DeclareSubFuncNode::execute(thread_db* /*tdbb*/, Request* request, ExeState* /*exeState*/) const
1816{

Callers 1

genBlrMethod · 0.45

Calls 9

GEN_exprFunction · 0.85
appendUShortMethod · 0.80
appendNullStringMethod · 0.80
appendUCharMethod · 0.80
USHORTEnum · 0.50
getCountMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected