Skip to content

Commit 63d0c07

Browse files
committed
Better doc
1 parent 783fc79 commit 63d0c07

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libsolidity/analysis/TypeChecker.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3260,7 +3260,7 @@ bool TypeChecker::visit(MemberAccess const& _memberAccess)
32603260
accessedMemberAnnotation.referencedDeclaration = possibleMembers.front().declaration;
32613261
accessedMemberAnnotation.type = possibleMembers.front().type;
32623262

3263-
// TODO: Explain
3263+
// Lookup type required to find the function declaration. Set default to `static`.
32643264
VirtualLookup requiredLookup = VirtualLookup::Static;
32653265

32663266
if (auto accessedMemberFunctionTypeType = dynamic_cast<FunctionType const*>(accessedMemberAnnotation.type))
@@ -3496,7 +3496,8 @@ bool TypeChecker::visit(MemberAccess const& _memberAccess)
34963496

34973497
accessedMemberAnnotation.isLValue = isAccessedMemberLValue;
34983498

3499-
// TODO: Leave it for now, but it should be moved to TypeType -> Contract case
3499+
// TODO: Leave it for now, but it should be moved to TypeType -> Contract case.
3500+
// We do not want to change the logic in refactor PR.
35003501
if (
35013502
auto const* varDecl = dynamic_cast<VariableDeclaration const*>(accessedMemberAnnotation.referencedDeclaration);
35023503
!accessedMemberAnnotation.isPure.set() &&

0 commit comments

Comments
 (0)