@@ -321,9 +321,7 @@ def map_types(type, in_class=False):
321
321
continue
322
322
else :
323
323
scope_type = map_types (scope .get_type ())
324
- tmp_out = {}
325
- tmp_out ["name" ] = scope .name
326
- tmp_out ["kind" ] = scope_type
324
+ tmp_out = {"name" : scope .name , "kind" : scope_type }
327
325
sline = scope .sline - 1
328
326
eline = scope .eline - 1
329
327
tmp_out ["location" ] = {
@@ -341,17 +339,18 @@ def map_types(type, in_class=False):
341
339
# If class add members
342
340
if scope .get_type () == CLASS_TYPE_ID and not self .symbol_skip_mem :
343
341
for child in scope .children :
344
- tmp_out = {}
345
- tmp_out ["name" ] = child .name
346
- tmp_out ["kind" ] = map_types (child .get_type (), True )
347
- tmp_out ["location" ] = {
348
- "uri" : uri ,
349
- "range" : {
350
- "start" : {"line" : child .sline - 1 , "character" : 0 },
351
- "end" : {"line" : child .sline - 1 , "character" : 0 },
342
+ tmp_out = {
343
+ "name" : child .name ,
344
+ "kind" : map_types (child .get_type (), True ),
345
+ "location" : {
346
+ "uri" : uri ,
347
+ "range" : {
348
+ "start" : {"line" : child .sline - 1 , "character" : 0 },
349
+ "end" : {"line" : child .sline - 1 , "character" : 0 },
350
+ },
352
351
},
352
+ "containerName" : scope .name ,
353
353
}
354
- tmp_out ["containerName" ] = scope .name
355
354
test_output .append (tmp_out )
356
355
return test_output
357
356
0 commit comments