@@ -336,7 +336,6 @@ function vm.getClassFields(suri, object, key, ref, pushResult)
336336 -- check local field and global field
337337 if not hasFounded [key ] and set .bindSources then
338338 for _ , src in ipairs (set .bindSources ) do
339- local skipSetLocal
340339 if src .value and src .value .type == ' table' then
341340 searchFieldSwitch (' table' , suri , src .value , key , ref , function (field )
342341 local fieldKey = guide .getKeyName (field )
@@ -345,25 +344,20 @@ function vm.getClassFields(suri, object, key, ref, pushResult)
345344 and guide .isSet (field ) then
346345 hasFounded [fieldKey ] = true
347346 pushResult (field , true )
348- if src .type == ' local' then
349- skipSetLocal = true
350- end
351347 end
352348 end
353349 end )
354350 end
355- if not skipSetLocal then
356- searchFieldSwitch (src .type , suri , src , key , ref , function (field )
357- local fieldKey = guide .getKeyName (field )
358- if fieldKey then
359- if not searchedFields [fieldKey ]
360- and guide .isSet (field ) then
361- hasFounded [fieldKey ] = true
362- pushResult (field , true )
363- end
351+ searchFieldSwitch (src .type , suri , src , key , ref , function (field )
352+ local fieldKey = guide .getKeyName (field )
353+ if fieldKey and not hasFounded [fieldKey ] then
354+ if not searchedFields [fieldKey ]
355+ and guide .isSet (field ) then
356+ hasFounded [fieldKey ] = true
357+ pushResult (field , true )
364358 end
365- end )
366- end
359+ end
360+ end )
367361 end
368362 end
369363 -- look into extends(if field not found)
0 commit comments