File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ //
2+ // TreeElement.swift
3+ // OpenGraph
4+
5+ public import OpenGraphCxx
6+
7+ extension TreeElement {
8+ public var value : AnyAttribute ? {
9+ let result = __OGTreeElementGetValue ( self )
10+ return result == . nil ? nil : result
11+ }
12+ }
13+
14+ extension Nodes : @retroactive IteratorProtocol {
15+ public typealias Element = AnyAttribute
16+ public mutating func next( ) -> AnyAttribute ? {
17+ let result = __OGTreeElementGetNextNode ( & self )
18+ return result == . nil ? nil : result
19+ }
20+ }
21+
22+ extension Children : @retroactive IteratorProtocol {
23+ public typealias Element = TreeElement
24+ }
25+
26+ extension Values : @retroactive IteratorProtocol {
27+ public typealias Element = TreeValue
28+ }
29+
30+ extension TreeElement {
31+ public struct LocalChildren {
32+ public var base : Children
33+ }
34+ }
You can’t perform that action at this time.
0 commit comments