MCPcopy Create free account
hub / github.com/csyonghe/Spire / ToString

Method ToString

Source/SpireCore/IL.cpp:610–622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

608 return AllInstructionsIterator(node->end().Current);
609 }
610 String ImportInstruction::ToString()
611 {
612 StringBuilder rs;
613 rs << Name << " = import [" << ComponentName << "](";
614 for (auto & arg : Arguments)
615 {
616 rs << arg->ToString() << ", ";
617 }
618 rs << ")";
619 rs << "\n{";
620 rs << ImportOperator->ToString() << "}\n";
621 return rs.ProduceString();
622 }
623 String ImportInstruction::GetOperatorString()
624 {
625 return "import";

Callers 15

PrintILShaderFunction · 0.45
PrintTypeFunction · 0.45
CheckTypeRequirementMethod · 0.45
GenerateStructsMethod · 0.45
GenerateFunctionMethod · 0.45
PrintProjectInstrExprMethod · 0.45
PrintTypeNameMethod · 0.45

Calls 1

ProduceStringMethod · 0.80

Tested by

no test coverage detected