sourcegraph/internal/codeintel/shared
Varun Gandhi 0316dbc2e1
chore: Add GitBlobResolver and GitTreeResolver for readability (#63223)
In our backend, we mostly follow the convention that type names
for the resolvers match up with the types in the GraphQL API,
with the extra `Resolver` suffix. However, this is broken by the
`GitTreeEntryResolver` where there were no types called
`GitBlobResolver` or `GitTreeResolver`, since all functionality
was implemented on top of `GitTreeEntryResolver`.

Since Go supports implicit method forwarding for embedded structs,
I think we can improve the code consistency & readability by adding
these two stub resolver types.

As struct embedding is not a super common pattern, I've explicitly
mentioned that in the doc comments for `GitBlobResolver` and
`GitTreeResolver`.
2024-06-12 14:19:53 +02:00
..
background bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
lsifuploadstore bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
ranges bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
resolvers chore: Add GitBlobResolver and GitTreeResolver for readability (#63223) 2024-06-12 14:19:53 +02:00
trie bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
BUILD.bazel bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
db.go codeintel: consolidate enterprise & oss codeintel packages (#54431) 2023-07-05 14:58:41 +01:00
noop.go codeintel: consolidate enterprise & oss codeintel packages (#54431) 2023-07-05 14:58:41 +01:00