Skip to content

Commit

Permalink
Move TypeCompleter and closely related helper functions to their own …
Browse files Browse the repository at this point in the history
…file (carbon-language#4922)

context.cpp is getting large, so I'm looking at a few ways to cut out
clusters of functions. This felt like a logical cluster of functions to
move to their own file.

Note I have two commits in this PR: one moving the functionality to a
new file, and one specifically changing TypeCompleter to use out-of-line
function implementations. This is to assist reviewability.
  • Loading branch information
jonmeow authored Feb 11, 2025
1 parent 2fef1cb commit 0a55081
Show file tree
Hide file tree
Showing 14 changed files with 746 additions and 627 deletions.
2 changes: 2 additions & 0 deletions toolchain/check/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ cc_library(
"pattern_match.cpp",
"return.cpp",
"subst.cpp",
"type_completion.cpp",
],
hdrs = [
"call.h",
Expand Down Expand Up @@ -70,6 +71,7 @@ cc_library(
"pending_block.h",
"return.h",
"subst.h",
"type_completion.h",
],
deps = [
":node_stack",
Expand Down
Loading

0 comments on commit 0a55081

Please sign in to comment.