Remove typed_nodes.h from tree.h and node_stack.h (#7510)

Remove toolchain/parse/typed_nodes.h from transitive imports of tree.h
and node_stack.h to reduce compile-time overhead in toolchain/check.

Add an explicit include of typed_nodes.h to tree_and_subtrees.cpp where
it is needed for instantiating templates.

Assisted-by: Antigravity with Gemini
This commit is contained in:
Chandler Carruth
2026-07-15 01:08:15 +00:00
committed by GitHub
parent 0a09ab1e3c
commit 1c1870cd10
3 changed files with 1 additions and 2 deletions
-1
View File
@@ -10,7 +10,6 @@
#include "toolchain/parse/node_ids.h"
#include "toolchain/parse/node_kind.h"
#include "toolchain/parse/tree.h"
#include "toolchain/parse/typed_nodes.h"
#include "toolchain/sem_ir/id_kind.h"
#include "toolchain/sem_ir/ids.h"
-1
View File
@@ -17,7 +17,6 @@
#include "toolchain/lex/tokenized_buffer.h"
#include "toolchain/parse/node_ids.h"
#include "toolchain/parse/node_kind.h"
#include "toolchain/parse/typed_nodes.h"
namespace Carbon::Parse {
+1
View File
@@ -9,6 +9,7 @@
#include "toolchain/base/fixed_size_value_store.h"
#include "toolchain/lex/token_index.h"
#include "toolchain/parse/typed_nodes.h"
namespace Carbon::Parse {