mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Switch File functions, classes, and types to ValueStores (#3316)
Building on #3313, start using ValueStore on File. Functions and classes are straightforward. Types here I present as a borderline case where maybe we want a more bespoke API, but maybe this is okay? Most other things probably need a slightly different API, which although I might do that for a consistent interface, felt more out-of-scope for this change.
This commit is contained in:
@@ -29,7 +29,7 @@ auto HandleCallExpression(Context& context, Parse::Node parse_node) -> bool {
|
||||
}
|
||||
|
||||
auto function_id = function_name->function_id;
|
||||
const auto& callable = context.semantics_ir().GetFunction(function_id);
|
||||
const auto& callable = context.semantics_ir().functions().Get(function_id);
|
||||
|
||||
// For functions with an implicit return type, the return type is the empty
|
||||
// tuple type.
|
||||
|
||||
Reference in New Issue
Block a user