Lines Matching defs:trace
328 /// Emit a visual representation of a "type use trace".
330 /// The trace is vector of strings. Each string is the textual
337 /// @param the trace vector to emit.
339 /// @param out the output stream to emit the trace to.
341 emit_trace(const vector<string>& trace, ostream& out)
343 if (trace.empty())
346 if (!trace.empty())
347 // Make the beginning of the trace line of the usage of a given
351 for (auto element : trace)
354 if (!trace.empty())
355 // Make the end of the trace line of the usage of a given type be
363 /// trace.
368 /// sub-type. The function accumulates a trace made of the textual
369 /// representation of the visited nodes and then emits that trace on
374 /// @param trace the accumulated vector of the textual representations
377 /// @param out the output stream to emit the trace to.
380 vector<string>& trace, ostream& out)
387 trace.push_back(repr);
393 // emit the trace accumulated to this point.
412 // OK now, really emit the trace.
414 emit_trace(trace, out);
416 trace.pop_back();
421 emit_artifact_use_trace(*user, trace, out);
423 trace.pop_back();
427 /// trace.
432 /// sub-type. The function then emits a trace of how the root type is
437 /// @param out the output stream to emit the trace to.
442 vector<string> trace;
443 emit_artifact_use_trace(artifact_use_tree, trace, out);
466 // Now walk the use_tree to emit the type use trace