| 796 | } |
| 797 | |
| 798 | string Function::getLocationExtra() const { |
| 799 | if ( !inferStack.size() ) { |
| 800 | return ""; |
| 801 | } |
| 802 | TextWriter ss; |
| 803 | ss << "\nwhile compiling " << describe() << "\n"; |
| 804 | for ( const auto & ih : inferStack ) { |
| 805 | ss << "instanced from " << ih.func->describe() << " at " << ih.at.describe() << "\n"; |
| 806 | } |
| 807 | return ss.str(); |
| 808 | } |
| 809 | |
| 810 | string Function::describeName(DescribeModule moduleName) const { |
| 811 | TextWriter ss; |