533 Commits

Author SHA1 Message Date
TomasVotruba
c5dd6cce0d fix cs 2017-12-27 13:52:43 +01:00
TomasVotruba
deaa5cc870 NodeType and CallerType resolver - use cache and make result unique 2017-12-27 13:50:18 +01:00
TomasVotruba
f29ca6a531 use dataProvider 2017-12-27 13:50:00 +01:00
TomasVotruba
77845110e9 use dataProvider 2017-12-27 13:44:45 +01:00
TomasVotruba
82f060a3a2 cleanup NodeCallerType test 2017-12-27 13:37:54 +01:00
TomasVotruba
1d435beffe cleanup dead code 2017-12-27 13:30:45 +01:00
TomasVotruba
b0641991ba more use of NodeTypeResolver 2017-12-27 13:30:45 +01:00
TomasVotruba
dc5780f175 more use of NodeTypeResolver 2017-12-27 13:30:45 +01:00
TomasVotruba
2cac0bb3bc improve cache call 2017-12-27 13:30:45 +01:00
TomasVotruba
889e6bc4d9 NodeTypeResolver - cache results 2017-12-27 13:30:45 +01:00
TomasVotruba
196f931897 update tests 2017-12-27 13:28:44 +01:00
TomasVotruba
a6fb9d91b2 update tests 2017-12-27 13:28:44 +01:00
TomasVotruba
3c784bccdb update tests 2017-12-27 13:28:44 +01:00
TomasVotruba
3c54e2d69b fix cs 2017-12-27 13:28:44 +01:00
TomasVotruba
6d0277f06f update tests 2017-12-27 13:28:44 +01:00
TomasVotruba
feedc83bad update tests 2017-12-27 13:28:44 +01:00
TomasVotruba
7c396dedfc misc 2017-12-27 13:28:44 +01:00
TomasVotruba
04da0ec577 use own Abstract Test for NodeCallerType tests 2017-12-27 13:28:44 +01:00
TomasVotruba
5d7997fd9e move Abstract Test to specific dir 2017-12-27 13:28:44 +01:00
TomasVotruba
3bbe5e89cf update tests 2017-12-27 13:28:44 +01:00
TomasVotruba
e7f84a3149 update tests 2017-12-27 13:28:44 +01:00
TomasVotruba
2656649ddf update tests 2017-12-27 13:28:44 +01:00
TomasVotruba
31030b7139 update tests 2017-12-27 13:28:44 +01:00
TomasVotruba
26c5979fa6 update tests 2017-12-27 13:28:44 +01:00
TomasVotruba
39e875423d drop unused lazy approach 2017-12-27 13:28:44 +01:00
TomasVotruba
cdee148930 [NodeTypeResolver] update README to prefer service 2017-12-27 13:28:44 +01:00
TomasVotruba
adda27b4aa fix cs 2017-12-27 13:28:44 +01:00
TomasVotruba
3eabf207d9 fix test class names 2017-12-27 13:28:44 +01:00
TomasVotruba
263415a826 rename tests to fqn 2017-12-27 13:28:44 +01:00
Tomáš Votruba
a411d3ec85
Merge pull request #225 from rectorphp/typeresolver-optimize
[NodeTypeResolver] performance optimization
2017-12-27 01:32:02 +01:00
TomasVotruba
5222227cb5 fix phpstan 2017-12-26 23:44:46 +01:00
TomasVotruba
5ef2c9c8d2 test var is callable 2017-12-26 23:03:45 +01:00
TomasVotruba
71cfcf4b24 lazy-wip 2017-12-26 23:02:54 +01:00
TomasVotruba
dd29979787 move tests to propper directory for NodeCallerTypeResolver 2017-12-26 22:50:09 +01:00
TomasVotruba
9df23a3c47 use class over string, performance is not different and its more strict 2017-12-26 22:33:38 +01:00
TomasVotruba
dbd6a26cd8 use class over string, as suggested by nikic 2017-12-26 22:11:05 +01:00
TomasVotruba
aaf42913f0 use same architecture for CallerTypes as for Types 2017-12-26 22:08:01 +01:00
Gabriel Caruso
545efa18c3 Add return type to anonymous function 2017-12-26 19:00:17 -02:00
TomasVotruba
62cbdd4fbf make NameTypeResolver match also FQN 2017-12-26 21:19:37 +01:00
TomasVotruba
8b69d0b6d2 clean 2017-12-26 20:14:17 +01:00
TomasVotruba
97251fba81 revert isPrimary() 2017-12-26 20:13:25 +01:00
TomasVotruba
afc2a27234 NodeTypeResolver - add polymorphic dispatching 2017-12-26 20:08:22 +01:00
TomasVotruba
d9c687d7bc complete rest of types 2017-12-26 20:02:10 +01:00
TomasVotruba
07725e2972 make use of getType() on Node 2017-12-26 20:02:06 +01:00
Gabriel Caruso
f4099b8d69 Add test for uppercade keywords 2017-12-26 16:52:26 -02:00
Gabriel Caruso
6e0b17c91e Support keyword in uppercase at ConstFetchResolver 2017-12-26 15:51:29 -02:00
TomasVotruba
87ffa39f40 remove test code 2017-12-26 16:51:26 +01:00
TomasVotruba
ae2d27c2e9 add isPrimary() 2017-12-26 16:51:00 +01:00
TomasVotruba
d6c5b08dc2 [NodeTypeResolver] drop ClassMethodTypeResolver - method cannot have type 2017-12-26 16:05:00 +01:00
TomasVotruba
8abcffdb80 PerNodeTypeResolverInterface - add isPrimary() method, to separate helper resolvers and actually type bearers 2017-12-26 16:05:00 +01:00