@@ -5,6 +5,11 @@ public class MyClass {
55 public func pub_method()
66}
77
8+ public protocol MyProto<Assoc> {
9+
10+ associatedtype Assoc
11+ }
12+
813public func pub_function()
914
1015
@@ -57,11 +62,41 @@ public func pub_function()
5762 {
5863 key.kind: source.lang.swift.syntaxtype.keyword,
5964 key.offset: 89,
65+ key.length: 8
66+ },
67+ {
68+ key.kind: source.lang.swift.syntaxtype.identifier,
69+ key.offset: 98,
70+ key.length: 7
71+ },
72+ {
73+ key.kind: source.lang.swift.syntaxtype.identifier,
74+ key.offset: 106,
75+ key.length: 5
76+ },
77+ {
78+ key.kind: source.lang.swift.syntaxtype.keyword,
79+ key.offset: 120,
80+ key.length: 14
81+ },
82+ {
83+ key.kind: source.lang.swift.syntaxtype.identifier,
84+ key.offset: 135,
85+ key.length: 5
86+ },
87+ {
88+ key.kind: source.lang.swift.syntaxtype.attribute.builtin,
89+ key.offset: 144,
90+ key.length: 6
91+ },
92+ {
93+ key.kind: source.lang.swift.syntaxtype.keyword,
94+ key.offset: 151,
6095 key.length: 4
6196 },
6297 {
6398 key.kind: source.lang.swift.syntaxtype.identifier,
64- key.offset: 94 ,
99+ key.offset: 156 ,
65100 key.length: 12
66101 }
67102]
@@ -71,6 +106,11 @@ public func pub_function()
71106 key.offset: 7,
72107 key.length: 17,
73108 key.is_system: 1
109+ },
110+ {
111+ key.kind: source.lang.swift.ref.associatedtype,
112+ key.offset: 106,
113+ key.length: 5
74114 }
75115]
76116[
@@ -110,17 +150,46 @@ public func pub_function()
110150 }
111151 ]
112152 },
153+ {
154+ key.kind: source.lang.swift.decl.protocol,
155+ key.accessibility: source.lang.swift.accessibility.public,
156+ key.name: "MyProto",
157+ key.offset: 89,
158+ key.length: 53,
159+ key.nameoffset: 98,
160+ key.namelength: 7,
161+ key.bodyoffset: 114,
162+ key.bodylength: 27,
163+ key.attributes: [
164+ {
165+ key.offset: 82,
166+ key.length: 6,
167+ key.attribute: source.decl.attribute.public
168+ }
169+ ],
170+ key.substructure: [
171+ {
172+ key.kind: source.lang.swift.decl.associatedtype,
173+ key.accessibility: source.lang.swift.accessibility.public,
174+ key.name: "Assoc",
175+ key.offset: 120,
176+ key.length: 20,
177+ key.nameoffset: 135,
178+ key.namelength: 5
179+ }
180+ ]
181+ },
113182 {
114183 key.kind: source.lang.swift.decl.function.free,
115184 key.accessibility: source.lang.swift.accessibility.public,
116185 key.name: "pub_function()",
117- key.offset: 89 ,
186+ key.offset: 151 ,
118187 key.length: 19,
119- key.nameoffset: 94 ,
188+ key.nameoffset: 156 ,
120189 key.namelength: 14,
121190 key.attributes: [
122191 {
123- key.offset: 82 ,
192+ key.offset: 144 ,
124193 key.length: 6,
125194 key.attribute: source.decl.attribute.public
126195 }
0 commit comments