Re: [swift-dev] End location of the SourceRange of a NumberLiteralExpr?

2017-06-30 Thread Jordan Rose via swift-dev
Hi, David. From the docs for SourceRange: /// SourceRange in swift is a pair of locations. However, note that the end /// location is the start of the last token in the range, not the last character /// in the range. This is mainly an optimization for single-token expressions, like number liter

[swift-dev] Memory leak in swift_EnumCaseName() ?

2017-06-30 Thread Paul Menage via swift-dev
(Filed as https://bugs.swift.org/browse/SR-5344) The following fragment appears to cause memory usage to grow unboundedly: enum E { case A; case B(String) } while true { var output = ""; dump(E.A, to: &output) } I think that the issue is that when swift_EnumCaseName() is called with an enum type

[swift-dev] End location of the SourceRange of a NumberLiteralExpr?

2017-06-30 Thread David Rönnqvist via swift-dev
I’m trying to solve SR-4715, which is about improving the fixit for the diagnostic about out-of-order arguments. Currently I’m stuck with an issue where I can’t figure out the end of an argument expression in the TupleExpr that I have. It would seem that this should work: auto tuple = cast(Ar

Re: [swift-dev] Feature Proposal to improve Mixed Frameworks support

2017-06-30 Thread Daniel Dunbar via swift-dev
> On Jun 29, 2017, at 4:39 PM, Jordan Rose wrote: > > >> On Jun 29, 2017, at 16:35, Daniel Dunbar > > wrote: >> >> >>> On Jun 29, 2017, at 10:43 AM, Jordan Rose via swift-dev >>> mailto:swift-dev@swift.org>> wrote: >>> >>> Thanks for following through on this