Skip to content

Commit

Permalink
Split deferred node traversal out from check.cpp (carbon-language#4559)
Browse files Browse the repository at this point in the history
I'm looking at adding more significant logic to checking, particularly
for interop. But check.cpp is getting large, and I think just adding
more logic will make it harder to reason about, so I'm looking at
splitting it up. This moves out NodeIdTraversal and
DeferredDefinitionWorklist because they're already independent from the
other code, and are reasonably sized to have their own files.
  • Loading branch information
jonmeow authored and bricknerb committed Nov 28, 2024
1 parent 723b465 commit 8ffc059
Show file tree
Hide file tree
Showing 6 changed files with 509 additions and 419 deletions.
4 changes: 4 additions & 0 deletions toolchain/check/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ cc_library(
name = "check",
srcs = [
"check.cpp",
"deferred_definition_worklist.cpp",
"deferred_definition_worklist.h",
"handle.h",
"node_id_traversal.cpp",
"node_id_traversal.h",
] +
# Glob handler files to avoid missing any.
glob([
Expand Down
Loading

0 comments on commit 8ffc059

Please sign in to comment.