File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -384,8 +384,9 @@ struct BoolLiteral {
384
384
BoolValue value;
385
385
};
386
386
387
- // A bound method, that combines a function with the value to use for its
388
- // `self` parameter, such as `object.MethodName`.
387
+ // For member access such as `object.MethodName`, combines a member function
388
+ // with the value to use for `self`. This is a callable structure; `Call` will
389
+ // handle the argument assignment.
389
390
struct BoundMethod {
390
391
static constexpr auto Kind = InstKind::BoundMethod.Define<Parse::NodeId>(
391
392
{.ir_name = " bound_method" ,
@@ -396,6 +397,7 @@ struct BoundMethod {
396
397
// `self`, or whose address will be used to initialize `self` for an `addr
397
398
// self` parameter.
398
399
InstId object_id;
400
+ // The function being bound, whose type_id is always a `FunctionType`.
399
401
InstId function_id;
400
402
};
401
403
You can’t perform that action at this time.
0 commit comments