@@ -139,32 +139,37 @@ struct ReferenceIcon: View {
139139 RoundedRectangle ( cornerRadius: 4 )
140140 . fill ( {
141141 switch kind {
142- case . class:
143- Color . purple
144- case . struct:
145- Color . purple
146- case . enum:
147- Color . purple
148- case . actor :
149- Color . purple
150- case . protocol:
151- Color . purple
152- case . extension:
153- Color . indigo
154- case . case:
155- Color . green
156- case . property:
157- Color . teal
158- case . typealias:
159- Color . orange
160- case . function:
161- Color . teal
162- case . method:
163- Color . blue
142+ case . symbol( let symbol, _, _, _) :
143+ switch symbol {
144+ case . class:
145+ Color . purple
146+ case . struct:
147+ Color . purple
148+ case . enum:
149+ Color . purple
150+ case . actor :
151+ Color . purple
152+ case . protocol:
153+ Color . purple
154+ case . extension:
155+ Color . indigo
156+ case . case:
157+ Color . green
158+ case . property:
159+ Color . teal
160+ case . typealias:
161+ Color . orange
162+ case . function:
163+ Color . teal
164+ case . method:
165+ Color . blue
166+ }
164167 case . text:
165168 Color . gray
166169 case . webpage:
167170 Color . blue
171+ case . textFile:
172+ Color . gray
168173 case . other:
169174 Color . gray
170175 }
@@ -173,34 +178,39 @@ struct ReferenceIcon: View {
173178 . overlay ( alignment: . center) {
174179 Group {
175180 switch kind {
176- case . class:
177- Text ( " C " )
178- case . struct:
179- Text ( " S " )
180- case . enum:
181- Text ( " E " )
182- case . actor :
183- Text ( " A " )
184- case . protocol:
185- Text ( " Pr " )
186- case . extension:
187- Text ( " Ex " )
188- case . case:
189- Text ( " K " )
190- case . property:
191- Text ( " P " )
192- case . typealias:
193- Text ( " T " )
194- case . function:
195- Text ( " 𝑓 " )
196- case . method:
197- Text ( " M " )
181+ case . symbol( let symbol, _, _, _) :
182+ switch symbol {
183+ case . class:
184+ Text ( " C " )
185+ case . struct:
186+ Text ( " S " )
187+ case . enum:
188+ Text ( " E " )
189+ case . actor :
190+ Text ( " A " )
191+ case . protocol:
192+ Text ( " Pr " )
193+ case . extension:
194+ Text ( " Ex " )
195+ case . case:
196+ Text ( " K " )
197+ case . property:
198+ Text ( " P " )
199+ case . typealias:
200+ Text ( " T " )
201+ case . function:
202+ Text ( " 𝑓 " )
203+ case . method:
204+ Text ( " M " )
205+ }
198206 case . text:
199207 Text ( " Tx " )
200208 case . webpage:
201209 Text ( " Wb " )
202210 case . other:
203211 Text ( " Ot " )
212+ case . textFile:
213+ Text ( " Tx " )
204214 }
205215 }
206216 . font ( . system( size: 12 ) . monospaced ( ) )
@@ -225,7 +235,7 @@ struct ReferenceIcon: View {
225235 subtitle: " /Core/Sources/ChatGPTChatTab/Views/BotMessage.swift:100 " ,
226236 uri: " https://google.com " ,
227237 startLine: nil ,
228- kind: . class
238+ kind: . symbol ( . class, uri : " https://google.com " , startLine : nil , endLine : nil )
229239 ) , count: 20 ) ,
230240 chat: . init( initialState: . init( ) , reducer: { Chat ( service: . init( ) ) } )
231241 )
@@ -240,43 +250,42 @@ struct ReferenceIcon: View {
240250 subtitle: " /Core/Sources/ChatGPTChatTab/Views/BotMessage.swift:100 " ,
241251 uri: " https://google.com " ,
242252 startLine: nil ,
243- kind: . class
253+ kind: . symbol ( . class, uri : " https://google.com " , startLine : nil , endLine : nil )
244254 ) ,
245255 . init(
246256 title: " BotMessage.swift:100-102 " ,
247257 subtitle: " /Core/Sources/ChatGPTChatTab/Views " ,
248258 uri: " https://google.com " ,
249259 startLine: nil ,
250- kind: . struct
260+ kind: . symbol ( . struct, uri : " https://google.com " , startLine : nil , endLine : nil )
251261 ) ,
252262 . init(
253263 title: " ReferenceList " ,
254264 subtitle: " /Core/Sources/ChatGPTChatTab/Views/BotMessage.swift:100 " ,
255265 uri: " https://google.com " ,
256266 startLine: nil ,
257- kind: . function
267+ kind: . symbol ( . function, uri : " https://google.com " , startLine : nil , endLine : nil )
258268 ) ,
259269 . init(
260270 title: " ReferenceList " ,
261271 subtitle: " /Core/Sources/ChatGPTChatTab/Views/BotMessage.swift:100 " ,
262272 uri: " https://google.com " ,
263273 startLine: nil ,
264- kind: . case
274+ kind: . symbol ( . case, uri : " https://google.com " , startLine : nil , endLine : nil )
265275 ) ,
266276 . init(
267277 title: " ReferenceList " ,
268278 subtitle: " /Core/Sources/ChatGPTChatTab/Views/BotMessage.swift:100 " ,
269279 uri: " https://google.com " ,
270280 startLine: nil ,
271- kind: . extension
281+ kind: . symbol ( . extension, uri : " https://google.com " , startLine : nil , endLine : nil )
272282 ) ,
273283 . init(
274284 title: " ReferenceList " ,
275285 subtitle: " /Core/Sources/ChatGPTChatTab/Views/BotMessage.swift:100 " ,
276286 uri: " https://google.com " ,
277287 startLine: nil ,
278- kind: . webpage
288+ kind: . webpage( uri : " https://google.com " )
279289 ) ,
280290 ] , chat: . init( initialState: . init( ) , reducer: { Chat ( service: . init( ) ) } ) )
281291}
282-
0 commit comments