InlineContentInjector::InlineContentInjector():
source_func(0),
- remap_names(false),
- deps_only(false)
+ remap_names(0)
{ }
const string &InlineContentInjector::apply(Stage &stage, FunctionDeclaration &target_func, Block &tgt_blk, const NodeList<Statement>::iterator &ins_pt, FunctionDeclaration &src)
}
else if(var.declaration)
{
- SetFlag set_deps(deps_only);
if(!variable_map.count(var.name))
{
dependencies.insert(var.declaration);
{
if(!remap_names && iface.declaration)
{
- SetFlag set_deps(deps_only);
dependencies.insert(iface.declaration);
referenced_names.insert(iface.name);
iface.declaration->visit(*this);
}
else if(var.type_declaration)
{
- SetFlag set_deps(deps_only);
dependencies.insert(var.type_declaration);
referenced_names.insert(var.type_declaration->name);
var.type_declaration->visit(*this);
std::map<std::string, VariableDeclaration *> variable_map;
std::string remap_prefix;
unsigned remap_names;
- bool deps_only;
RefPtr<Statement> r_inlined_statement;
std::set<Node *> dependencies;
std::set<std::string> referenced_names;