mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Add a Field node for fields in a class. (#3332)
This replaces the use of `VarStorage` in this case. Add an `UnboundFieldType` type as the type of a field, in cases where it's referenced without an accompanying object. Add a `BindName` node to describe the name binding performed for both variables and fields so that we can handle them more uniformly.
This commit is contained in:
@@ -171,6 +171,11 @@ auto HandleDereference(FunctionContext& context, SemIR::NodeId node_id,
|
||||
context.SetLocal(node_id, context.GetLocal(node.pointer_id));
|
||||
}
|
||||
|
||||
auto HandleField(FunctionContext& /*context*/, SemIR::NodeId /*node_id*/,
|
||||
SemIR::Field /*node*/) -> void {
|
||||
// No action to perform.
|
||||
}
|
||||
|
||||
auto HandleFunctionDeclaration(FunctionContext& /*context*/,
|
||||
SemIR::NodeId /*node_id*/,
|
||||
SemIR::FunctionDeclaration node) -> void {
|
||||
|
||||
Reference in New Issue
Block a user