forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoc_internal_closure_label.swift.response
80 lines (77 loc) · 2.17 KB
/
doc_internal_closure_label.swift.response
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
import SwiftOnoneSupport
func foo(_ callback: (_ myInternalParam: Int) -> Void)
[
{
key.kind: source.lang.swift.syntaxtype.keyword,
key.offset: 0,
key.length: 6
},
{
key.kind: source.lang.swift.syntaxtype.identifier,
key.offset: 7,
key.length: 17
},
{
key.kind: source.lang.swift.syntaxtype.keyword,
key.offset: 26,
key.length: 4
},
{
key.kind: source.lang.swift.syntaxtype.identifier,
key.offset: 31,
key.length: 3
},
{
key.kind: source.lang.swift.syntaxtype.argument,
key.offset: 35,
key.length: 1
},
{
key.kind: source.lang.swift.syntaxtype.parameter,
key.offset: 37,
key.length: 8
},
{
key.kind: source.lang.swift.syntaxtype.keyword,
key.offset: 48,
key.length: 1
},
{
key.kind: source.lang.swift.syntaxtype.identifier,
key.offset: 50,
key.length: 15
},
{
key.kind: source.lang.swift.ref.struct,
key.name: "Int",
key.usr: "s:Si",
key.offset: 67,
key.length: 3
},
{
key.kind: source.lang.swift.ref.typealias,
key.name: "Void",
key.usr: "s:s4Voida",
key.offset: 75,
key.length: 4
}
]
[
{
key.kind: source.lang.swift.decl.function.free,
key.name: "foo(_:)",
key.usr: "s:5label3fooyyySiXEF",
key.offset: 26,
key.length: 54,
key.fully_annotated_decl: "<decl.function.free><syntaxtype.keyword>func</syntaxtype.keyword> <decl.name>foo</decl.name>(<decl.var.parameter><decl.var.parameter.argument_label>_</decl.var.parameter.argument_label> <decl.var.parameter.name>callback</decl.var.parameter.name>: <decl.var.parameter.type>(<decl.var.parameter>_ <decl.var.parameter.name>myInternalParam</decl.var.parameter.name>: <decl.var.parameter.type><ref.struct usr=\"s:Si\">Int</ref.struct></decl.var.parameter.type></decl.var.parameter>) -> <decl.function.returntype><ref.typealias usr=\"s:s4Voida\">Void</ref.typealias></decl.function.returntype></decl.var.parameter.type></decl.var.parameter>)</decl.function.free>",
key.entities: [
{
key.kind: source.lang.swift.decl.var.local,
key.keyword: "_",
key.name: "callback",
key.offset: 47,
key.length: 32
}
]
}
]