mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Within a dump of a DeclRef (or, more likely, a larger entity that includes one), the full multiline details of a substitution map are likely to not be hugely relevant, and just get in the way of understanding the interesting parts of the dump. Thus, this is a variant that is a single line and just includes the substitutions; the conformances (or, at least, the protocols involved) can be inferred from the generic signature combined with those substitutions. The style is controlled via a enum rather than a boolean, to avoid problems with trying to pass an indent like `map->dump(out, indent)`, where the integer indent coerces to a bool, rather than error. Fixes rdar://problem/40074968.
2.1 KiB
2.1 KiB