rajatnagda45
4300054291
fix(swift): extract method requirements declared in a protocol body
...
tree-sitter-swift gives a protocol's body-less method requirement its own
node type, protocol_function_declaration, instead of reusing the
function_declaration used inside a class or struct. The Swift config's
function_types only listed function_declaration, so a protocol like
protocol Drawable {
func draw()
func area() -> Double
}
became an empty node - the method contract every conformer must implement
never entered the graph.
Add protocol_function_declaration to function_types and
function_boundary_types. Requirements now surface as .method() nodes hung
off the protocol, their signature type references (return/param types) are
captured, and they stay distinct from a conformer's implementation of the
same name. Stored property requirements are left alone, matching how
stored properties on a class are already handled.
Adds regression coverage for all three.
2026-09-19 19:42:39 +05:30
..
2026-09-10 22:44:38 +01:00
2026-09-10 23:04:40 +01:00
2026-09-05 01:18:59 +01:00
2026-09-05 01:18:59 +01:00
2026-09-12 17:36:09 +01:00
2026-09-10 23:04:40 +01:00
2026-09-12 22:23:00 +01:00
2026-09-11 22:46:15 +01:00
2026-09-12 21:33:43 +01:00
2026-09-10 14:03:22 +01:00
2026-09-12 17:36:09 +01:00
2026-09-11 22:51:35 +01:00
2026-09-05 21:55:34 +01:00
2026-09-17 11:01:38 +01:00
2026-08-29 19:32:51 +01:00
2026-09-14 18:55:31 +01:00
2026-09-17 11:03:41 +01:00
2026-09-13 17:47:56 +01:00
2026-09-02 14:58:01 +01:00
2026-09-05 01:18:59 +01:00
2026-09-09 11:30:27 +01:00
2026-09-07 20:21:35 +01:00
2026-09-09 11:30:29 +01:00
2026-09-14 18:49:17 +01:00
2026-09-02 03:05:59 +01:00
2026-09-13 17:47:53 +01:00
2026-08-29 18:38:33 +01:00
2026-09-05 01:18:59 +01:00
2026-09-16 15:37:30 +01:00
2026-09-11 23:58:31 +01:00
2026-09-16 16:20:01 +01:00
2026-08-28 01:20:57 +01:00
2026-09-18 15:15:57 +01:00
2026-09-05 21:55:33 +01:00
2026-09-10 14:03:22 +01:00
2026-09-02 14:49:03 +01:00
2026-08-28 01:20:27 +01:00
2026-09-06 16:17:37 +01:00
2026-08-30 15:11:40 +01:00
2026-08-30 15:11:40 +01:00
2026-09-14 18:49:21 +01:00
2026-09-05 21:55:33 +01:00
2026-09-18 15:16:09 +01:00
2026-09-05 01:18:59 +01:00
2026-08-29 16:14:47 +01:00
2026-08-30 15:11:24 +01:00
2026-08-30 15:11:40 +01:00
2026-09-12 17:36:09 +01:00
2026-09-09 17:20:54 +01:00
2026-09-10 22:44:39 +01:00
2026-08-29 16:14:47 +01:00
2026-09-14 18:49:19 +01:00
2026-09-12 21:31:34 +01:00
2026-09-12 21:31:35 +01:00
2026-09-13 17:47:55 +01:00
2026-09-09 11:30:28 +01:00
2026-09-17 11:09:52 +01:00
2026-09-10 22:45:31 +01:00
2026-09-18 15:15:58 +01:00
2026-09-10 22:44:40 +01:00
2026-09-09 17:20:56 +01:00
2026-09-13 17:47:57 +01:00
2026-09-05 01:19:09 +01:00
2026-09-16 14:50:54 +01:00
2026-09-17 11:01:37 +01:00
2026-09-10 22:44:38 +01:00
2026-08-29 16:14:29 +01:00
2026-09-09 17:20:57 +01:00
2026-09-05 21:13:54 +01:00
2026-09-07 19:02:18 +01:00
2026-09-17 11:01:38 +01:00
2026-08-29 16:15:58 +01:00
2026-09-09 17:20:56 +01:00
2026-09-05 21:55:35 +01:00
2026-09-11 22:46:27 +01:00
2026-09-05 21:55:32 +01:00
2026-09-07 18:42:56 +01:00
2026-09-05 21:13:53 +01:00
2026-09-13 17:47:54 +01:00
2026-09-14 18:49:20 +01:00
2026-09-12 17:36:10 +01:00
2026-09-11 22:46:36 +01:00
2026-09-16 14:43:05 +01:00
2026-09-18 15:16:09 +01:00
2026-09-13 17:47:54 +01:00
2026-09-14 18:52:06 +01:00
2026-08-29 18:38:05 +01:00
2026-09-12 21:35:25 +01:00
2026-09-12 21:49:56 +01:00
2026-09-11 22:46:36 +01:00
2026-09-13 17:47:54 +01:00
2026-09-19 19:42:39 +05:30
2026-09-15 18:01:35 +01:00
2026-09-18 15:21:04 +01:00
2026-09-12 17:39:27 +01:00
2026-09-07 20:30:19 +01:00
2026-08-30 15:48:40 +01:00
2026-08-29 16:16:09 +01:00
2026-09-06 16:17:38 +01:00
2026-08-30 15:12:10 +01:00
2026-09-11 22:46:26 +01:00
2026-09-18 15:16:09 +01:00
2026-08-30 15:11:23 +01:00