Slava Pestov
2e5aef9c8d
stdlib: Remove redundant @usableFromInline attributes
2018-04-06 00:02:30 -07:00
Slava Pestov
e1f50b2d36
SE-0193: Rename @_inlineable to @inlinable, @_versioned to @usableFromInline
2018-03-30 21:55:30 -07:00
Ben Cohen
9361a6b66f
[stdlib] Nest Iterator and Index types for various stdlib types ( #13489 )
...
* Nest various top-level Iterator and Index types, and flatten extensions.
* Fix tests from nesting iterator
* Nest Unsafe*BufferPointer.Iterator, extensionify UnsafeBufferPointer
* Degyb LazyCollection
* Nest Flatten iterator and index
2017-12-18 15:27:35 -08:00
ben-cohen
e7b668e705
Part the third
2017-12-01 12:40:19 -08:00
Max Moiseev
a24998a5b1
[stdlib] Add missing @_fixed_layout attributes to fix resilience build
2017-10-02 15:19:06 -07:00
Max Moiseev
53b8419279
[stdlib] Make all the stdlib APIs @_inlineable
...
This change in theory should allow us to remove a special stdlib-only
sil-serialize-all compilation mode.
<rdar://problem/34138683>
2017-09-29 11:26:56 -07:00
Maxim Moiseev
ee5fb33656
[stdlib] Remove the Grand Renaming artifacts of Swift 3 era
2017-08-28 15:54:11 -07:00
Nate Cook
b7af9bfe83
[stdlib] Remove SeeAlso tags
2017-06-13 11:23:51 -05:00
Doug Gregor
388f0c505e
[Stdlib] Eliminate explicit constraints made redundant by inferred ones.
2017-03-22 17:35:12 -07:00
Ben Cohen
800248406e
[stdlib] Deprecate aliases on Zip2Sequence
2017-02-15 16:09:18 -08:00
practicalswift
6d1ae2a39c
[gardening] 2016 → 2017
2017-01-06 16:41:22 +01:00
practicalswift
797b80765f
[gardening] Use the correct base URL ( https://swift.org ) in references to the Swift website
...
Remove all references to the old non-TLS enabled base URL (http://swift.org )
2016-11-20 17:36:03 +01:00
practicalswift
b19481f887
[gardening] Fix 67 recently introduced typos
2016-09-16 11:16:07 +02:00
Rintaro Ishizaki
4c2b49b225
stdlib: Add unavailable Zip2Sequence initializer
...
Without this, the compiler suggests to add `_sequence1:_sequnece2` label.
2016-08-09 23:15:23 +09:00
Nate Cook
559092bbf2
[stdlib] Revise stdlib documentation comments
...
- Expand pre-example explanations
- Update documentation for SE-0118
- Removing remaining 'iff' usage
- Revise Array discussion
- Fix formIndex(_:offsetBy) parameter formatting
- Improve index/formIndex(_:offsetBy:(limitedBy:)?) discussion
- Update Quick Look discussions
- Fixes grammar inconsistencies
- Adds parameter / return documentation
- Adds and expands on examples
- Revises AnyObject discussion for new `id` bridging rules
- Revise readLine, print, and assertion functions
- Add missing docs to String index-moving methods
2016-08-05 16:07:46 -05:00
Patrick Pijnappel
fe2c2d1494
[stdlib] Use double space after periods
...
This is a commit access test.
2016-07-14 08:55:45 +10:00
Chris Lattner
45f2cfaaa0
Implement SE-0099, but where the migration diagnostics are left as warnings
...
for now. I'll upgrade them to errors in a week or two to give downstream
projects a chance to update.
2016-07-02 15:44:57 -07:00
Patrick Pijnappel
4419614be4
Move post-nil guarantee to separate line for Iterators' next()
2016-05-08 21:36:39 +02:00
Patrick Pijnappel
ab9e74cba3
Resolve conflicts with upstream
2016-05-05 08:55:34 +02:00
Manav Gabhawala
7928140f79
[SE-0046] Implements consistent function parameter labels by discarding extraneous parameter names and adding _ where necessary
2016-04-06 20:21:58 -04:00
Patrick Pijnappel
07a8c39fcb
[stdlib] Use double space as sentence separator in IteratorType.next() docs.
2016-03-16 22:36:26 +11:00
Patrick Pijnappel
020841d4ba
[stdlib] Add post-nil guarantee for IteratorProtocol.next() to always return nil
2016-03-16 22:06:07 +11:00
Daniel Duan
276370b599
[stdlib] apply SE-0040 to stdlib
2016-03-11 16:01:41 -08:00
Max Moiseev
7fe6916bf6
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-03-07 12:10:47 -08:00
Hugh Bellamy
c1b25bb32f
[gardening] Remove double new lines from stdlib files
2016-03-05 15:44:54 +00:00
Dmitri Gribenko
f0633ce5a9
stdlib: Sequence.iterator() => .makeIterator()
2016-02-23 13:52:30 -08:00
Max Moiseev
78ba5d5f3f
[stdlib] Requires in comments changed to Precondition
2016-02-19 18:57:26 -08:00
Dmitri Gribenko
dd75aed67a
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-17 14:40:05 -08:00
Nate Cook
51251dc133
Convert imperative function summaries to present.
...
i.e., "Return ..." -> "Returns ..."
2016-02-12 04:20:39 -06:00
Nate Cook
f3c4e0ac74
Remove style on *generator* and friends.
2016-02-12 04:20:01 -06:00
Dmitri Gribenko
74ce1ca79c
Add unavailable declarations for Swift 2.2 -> 3 migration
2016-01-19 14:32:59 -08:00
Max Moiseev
f51e708a8f
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-01-04 12:25:25 -08:00
Zach Panzarino
e3a4147ac9
Update copyright date
2015-12-31 23:28:40 +00:00
Maxim Moiseev
9e50505970
internal or public // @testable initializers
2015-12-17 17:02:49 -08:00
Max Moiseev
806be29941
Merge remote-tracking branch 'origin' into swift-3-api-guidelines
2015-12-14 12:05:35 -08:00
Patrick Pijnappel
4db650d01f
De-joined property declarations
2015-12-13 20:08:29 +11:00
Patrick Pijnappel
c86e4a800b
Expand tuple properties in Zip2Sequence/Generator
...
The previous arrangement made the numbering inconsistent, e.g. `baseStreams.1` was of type `Generator2`.
2015-12-13 19:39:14 +11:00
Patrick Pijnappel
95622c435b
[stdlib] Replace .Some(x) and .None by x and nil, respectively
2015-12-13 12:10:43 +11:00
Dmitri Gribenko
1808766152
Merge pull request #366 from PatrickPijnappel/patch-2
...
Fix comment in Zip2
2015-12-12 15:04:33 -08:00
Patrick Pijnappel
92c8cdabe4
[stdlib] Unabbreviate local variable names
2015-12-13 08:43:24 +11:00
Patrick Pijnappel
431b8204c8
[stdlib] Reworded comment
2015-12-11 11:06:21 +11:00
Maxim Moiseev
844b81c46b
SequenceType => Sequence
2015-12-09 17:16:56 -08:00
Dmitri Gribenko
1c0047829a
Rename SequenceType.generate() to SequenceType.iterator()
2015-12-09 17:11:17 -08:00
Dmitri Gribenko
2cf172160c
Rename SequenceType.Generator associated type to SequenceType.Iterator
2015-12-09 17:11:05 -08:00
Patrick Pijnappel
230e4a39e6
Merge guards in Zip2Generator
...
Removes the duplication of the guard body code
2015-12-09 14:03:02 +11:00
Patrick Pijnappel
e7fabae50c
Fix comment
2015-12-09 13:56:18 +11:00
Dmitri Gribenko
31598d41bf
Rename GeneratorType to IteratorProtocol
2015-12-07 17:08:32 -08:00
Dmitri Gribenko
174d475833
stdlib: Remove unavavailable APIs that were left as migration aids
...
These APIs are from the Swift 1.2 => Swift 2.0 transition, and are not
relevant anymore.
Removing them reduces the surface area of the library that needs to be
reviewed.
2015-12-02 01:19:50 -08:00
Dmitri Hrybenko
82122f9362
stdlib: fixit-based migrations for generic parameter renames
...
rdar://21538940
Swift SVN r29756
2015-06-27 04:06:27 +00:00
Dmitri Hrybenko
ba208cd672
stdlib: rename zip generator and collection to a common naming convention
...
// Renamed from `ZipGenerator2`.
struct Zip2Generator<Generator1 : GeneratorType, Generator2 : GeneratorType> { ... }
// Renamed from `Zip2`.
struct Zip2Sequence<Sequence1 : SequenceType, Sequence2 : SequenceType> { ... }
Part of rdar://21429126
Swift SVN r29636
2015-06-24 20:42:03 +00:00