mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 22:10:28 +00:00
Track a resolved Member on each member access expression. (#1333)
Type checking now stores information on a member access identifying the member that was accessed, not only its name. This parallels what we do for other similar constructs whose meaning is resolved by name lookup or type-checking, and will allow us to avoid redoing lookups in some cases during interpretation.
This commit is contained in:
1 parent
4113ec8a67
commit
17ee3ed9b7
16 files changed
+222
-115
No files matched your search
@@ -96,7 +96,7 @@ void Expression::Print(llvm::raw_ostream& out) const {
|
||||
}
|
||||
case ExpressionKind::SimpleMemberAccessExpression: {
|
||||
const auto& access = cast<SimpleMemberAccessExpression>(*this);
|
||||
out << access.object() << "." << access.member();
|
||||
out << access.object() << "." << access.member_name();
|
||||
break;
|
||||
}
|
||||
case ExpressionKind::CompoundMemberAccessExpression: {
|
||||
|
||||
Reference in new issue
Block a user