Commits

Doug Gregor committed 423abc5038a
Codify the default argument hack for __FILE__/__LINE__/__COLUMN__. Teach TuplePatternElt to keep track of the kind of the default argument: none, normal (provided by calling into the appropriate callee generator), __FILE__, __LINE__, or __COLUMN__. For the latter three cases, the type checker forms the appropriate argument as part of the call. The actual default argument expression will only be held in the tuple pattern element when we've parsed it; it won't be serialized or deserialized, because only the defining module cares. This is a step toward eliminate the initialization expression from tuple types. The extension to TupleShuffleExpr is a hack, which will also be replicated in ScalarToTupleExpr, until we finally rework the representation of TupleShuffleExpr (<rdar://problem/12340004>). Swift SVN r6299