Closed steve21124 closed 8 years ago
$ rexdep --pattern '^(?:final\s+)?(?:class|extension)\s+([[:alnum:]]+)' --module 'UITableView' --reverse --recursive .
UITableView MessageContentType
UITableView TSChatBaseCell
UITableView TSChatSystemCell
UITableView TSChatTimeCell
UITableView TSChatViewController
UITableView TSContactTableViewCell
UITableView TSContactsViewController
UITableView TSDiscoverViewController
UITableView TSImageTextTableViewCell
UITableView TSMeAvatarTableViewCell
UITableView TSMeViewController
UITableView TSMessageTableViewCell
UITableView TSMessageViewController
UITableView UITableView
Thank you. This definitely a great starting point to start exploring it with swift
sorry one more favor to ask. UITableViewCell is hardcode. how to get all the subclass and use that to loop through the pattern.
I did see from the readme => --module '^module +([[:alnum:].]+Pandoc[[:alnum:].]*)'
====> ====== class AudioPlayManager: NSObject { class TSChatSystemCell: UITableViewCell class TSChatVoiceCell: TSChatBaseCell { @objc class ContactModel: NSObject, TSModelProtocol { class TSContactsViewController: UIViewController { class TSMessageActionFloatView: UIView {
I'm not sure what you mean but how about this?
$ rexdep --module 'class\s+([[:alnum:]]+)\s*:\s*(?:[[:alnum:]]+)' --pattern 'class\s+(?:[[:alnum:]]+)\s*:\s*([[:alnum:]]+)(?:\s*,\s*([[:alnum:]]+))?' --recursive --format dot . | dot -Tpng -o tswechat.png; open tswechat.png
yes, you got it right. great to know be able to get the module name
let say for swift language and need to search for all classes that use UITableview. what will be the right regular expression?
https://github.com/hilen/TSWeChat