mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 10:54:49 +01:00
Clean up Declaration/TypeCheck dependency (#753)
Looks more like a mistake/legacy than deliberate
This commit is contained in:
@@ -39,6 +39,13 @@ struct TCStatement {
|
||||
TypeEnv types;
|
||||
};
|
||||
|
||||
struct TypeCheckContext {
|
||||
// Symbol table mapping names of runtime entities to their type.
|
||||
TypeEnv types;
|
||||
// Symbol table mapping names of compile time entities to their value.
|
||||
Env values;
|
||||
};
|
||||
|
||||
auto TypeCheckExp(const Expression* e, TypeEnv types, Env values)
|
||||
-> TCExpression;
|
||||
auto TypeCheckPattern(const Pattern* p, TypeEnv types, Env values,
|
||||
|
||||
Reference in New Issue
Block a user