File: UnderscoredProto.swiftinterface

package info (click to toggle)
swiftlang 6.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,856,264 kB
  • sloc: cpp: 9,995,718; ansic: 2,234,019; asm: 1,092,167; python: 313,940; objc: 82,726; f90: 80,126; lisp: 38,373; pascal: 25,580; sh: 20,378; ml: 5,058; perl: 4,751; makefile: 4,725; awk: 3,535; javascript: 3,018; xml: 918; fortran: 664; cs: 573; ruby: 396
file content (101 lines) | stat: -rw-r--r-- 2,405 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// swift-interface-format-version: 1.0
// swift-module-flags: -swift-version 5 -enable-library-evolution -module-name UnderscoredProto

public protocol _UnderscoredProto {}
public protocol _UnderscoredProto2 {
    associatedtype Elem
}

public extension _UnderscoredProto {
    func fromProtoExtension()
}

public extension _UnderscoredProto2 {
    func fromProto2Extension(takesElem: Elem)
}

@available(*, deprecated, message: "")
public extension _UnderscoredProto {
    func fromDeprecatedProtoExtension(){}
}

public extension _UnderscoredProto2 where Elem == String {
    func fromConditionalProto2Extension(takesElemIfString: Elem)
}

@available(*, deprecated, message: "")
public extension _UnderscoredProto2 where Elem == Int {
    func fromDeprecatedConditionalProto2Extension(takesElemInt: Elem)
}

public struct A<T> {
    public func fromA(takesT: T)
}

extension A {
    public func fromAExtension(takesT: T)
}

extension A : _UnderscoredProto {}

extension A : _UnderscoredProto2 where T == String {
    public typealias Elem = Int
    public func fromAConditionalExtension(takesTIfString: T)
}

public class B<T>: _UnderscoredProto {
    public func fromB(takesT: T)
}

extension B: _UnderscoredProto2 {
    public typealias Elem = String
}

public class C<U,V>: B<String> where U: Equatable {
    public func fromC(takesUIfEquatable: U)
}

public protocol _UnderscoredProto3 {
    associatedtype Elem1
    associatedtype Elem2
}
extension _UnderscoredProto3 {
    public func fromProto3Extension(takesElem1: Elem1)
    public func fromProto3Extension(takesElem2: Elem2)
}

public protocol _UnderscoredProto4: _UnderscoredProto3 where Elem2: Equatable {}
extension _UnderscoredProto4 {
    public func fromProto4Extension(takesElem2IfEquatable: Elem2)
}

extension _UnderscoredProto4 where Elem2: Hashable {
    public func fromProto4Extension(takesElem2IfHashable: Elem2)
}

extension C: _UnderscoredProto4 {
    public typealias Elem1 = V
    public typealias Elem2 = U
    public func fromCConditionlExtension(takesU: U)
}


public struct D<T, U> {
    public func fromD(takesT: T, takesU: U)
}

public protocol Other1 {}
public protocol _SomeProto {
    associatedtype Item
}

extension _SomeProto where Item: Other1 {
    public func fromSomeProtoExtensionSplitConditions(takesItemIfOther1: Item)
}

extension D: _SomeProto where T: Equatable {
    public typealias Item = T
    
}