Skip to content

Commit 12fc2d2

Browse files
committed
[Standard library] de-GYB string interpolation. NFC
1 parent fbb7dcf commit 12fc2d2

File tree

2 files changed

+2
-30
lines changed

2 files changed

+2
-30
lines changed

stdlib/public/core/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ set(SWIFTLIB_ESSENTIAL
119119
StringComparable.swift
120120
StringCore.swift
121121
StringHashable.swift
122-
StringInterpolation.swift.gyb
122+
StringInterpolation.swift
123123
StringLegacy.swift
124124
StringRangeReplaceableCollection.swift.gyb
125125
StringIndexConversions.swift

stdlib/public/core/StringInterpolation.swift.gyb renamed to stdlib/public/core/StringInterpolation.swift

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- StringInterpolation.swift.gyb - String Interpolation -*- swift -*-===//
1+
//===--- StringInterpolation.swift - String Interpolation -----*- swift -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//
@@ -10,30 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
%{
14-
15-
from SwiftIntTypes import all_integer_types
16-
17-
# Number of bits in the Builtin.Word type
18-
word_bits = int(CMAKE_SIZEOF_VOID_P) * 8
19-
20-
StreamableTypes = [
21-
'String',
22-
'Character',
23-
'UnicodeScalar',
24-
]
25-
26-
PrintableTypes = [
27-
'Bool',
28-
'Float32',
29-
'Float64'
30-
]
31-
32-
for int_ty in all_integer_types(word_bits):
33-
PrintableTypes.append(int_ty.stdlib_name)
34-
35-
}%
36-
3713
extension String : _ExpressibleByStringInterpolation {
3814
/// Creates a new string by concatenating the given interpolations.
3915
///
@@ -98,7 +74,3 @@ extension String : _ExpressibleByStringInterpolation {
9874
self = _toStringReadOnlyStreamable(expr)
9975
}
10076
}
101-
102-
// ${'Local Variables'}:
103-
// eval: (read-only-mode 1)
104-
// End:

0 commit comments

Comments
 (0)