File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
SwiftCompilerSources/Sources/SIL Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public struct StackList<Element> : Sequence, CustomReflectable {
44
44
var index : Int
45
45
let lastSlab : BridgedSlab
46
46
let endIndex : Int
47
-
47
+
48
48
public mutating func next( ) -> Element ? {
49
49
let end = ( slab. data == lastSlab. data ? endIndex : slabCapacity)
50
50
if index < end {
@@ -60,7 +60,7 @@ public struct StackList<Element> : Sequence, CustomReflectable {
60
60
return nil
61
61
}
62
62
}
63
-
63
+
64
64
public init ( context: BridgedPassContext ) { self . context = context }
65
65
66
66
public func makeIterator( ) -> Iterator {
@@ -102,15 +102,15 @@ public struct StackList<Element> : Sequence, CustomReflectable {
102
102
}
103
103
104
104
public var isEmpty : Bool { return endIndex == 0 }
105
-
105
+
106
106
public mutating func pop( ) -> Element ? {
107
107
if isEmpty {
108
108
return nil
109
109
}
110
110
assert ( endIndex > 0 )
111
111
endIndex -= 1
112
112
let elem = ( StackList . bind ( lastSlab) + endIndex) . move ( )
113
-
113
+
114
114
if endIndex == 0 {
115
115
if lastSlab. data == firstSlab. data {
116
116
_ = PassContext_freeSlab ( context, lastSlab)
@@ -125,11 +125,11 @@ public struct StackList<Element> : Sequence, CustomReflectable {
125
125
126
126
return elem
127
127
}
128
-
128
+
129
129
public mutating func removeAll( ) {
130
130
while pop ( ) != nil { }
131
131
}
132
-
132
+
133
133
public var customMirror : Mirror {
134
134
let c : [ Mirror . Child ] = map { ( label: nil , value: $0) }
135
135
return Mirror ( self , children: c)
You can’t perform that action at this time.
0 commit comments