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

Method fromList

src/dsql/make.cpp:82–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void DsqlDescMaker::fromList(DsqlCompilerScratch* scratch, dsc* desc,
83 ValueListNode* node, const char* expressionName,
84 bool nullable)
85{
86 NestConst<ValueExprNode>* p = node->items.begin();
87 NestConst<ValueExprNode>* end = node->items.end();
88
89 Array<const dsc*> args;
90
91 while (p != end)
92 {
93 DsqlDescMaker::fromNode(scratch, *p);
94 args.add(&(*p)->getDsqlDesc());
95 ++p;
96 }
97
98 DSqlDataTypeUtil(scratch).makeFromList(desc, expressionName, args.getCount(), args.begin());
99
100 desc->dsc_flags |= nullable ? DSC_nullable : 0;
101}
102
103void DsqlDescMaker::fromNode(DsqlCompilerScratch* scratch, dsc* desc,
104 ValueExprNode* node, bool nullable)

Callers

nothing calls this directly

Calls 6

DSqlDataTypeUtilClass · 0.85
makeFromListMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
addMethod · 0.45
getCountMethod · 0.45

Tested by

no test coverage detected