Skip to content

Commit d327836

Browse files
committed
[Sema] NFC: Add a couple of comments
1 parent 01f3cb6 commit d327836

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/Sema/CodeSynthesisDistributedActor.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,10 @@ GetDistributedActorIDPropertyRequest::evaluate(Evaluator &evaluator,
842842
propDecl->setSynthesized();
843843
propDecl->copyFormalAccessFrom(nominal, /*sourceIsParentContext*/ true);
844844

845+
// NOTE: The type for this property is lazily computed by
846+
// `getLazilySynthesizedPattern` when type-checking, which ensures this
847+
// request does not trigger any semantic requests since it's called by name
848+
// lookup.
845849
Pattern *propPat = NamedPattern::createImplicit(C, propDecl);
846850

847851
PatternBindingDecl *pbDecl = PatternBindingDecl::createImplicit(
@@ -891,6 +895,10 @@ VarDecl *GetDistributedActorSystemPropertyRequest::evaluate(
891895
propDecl->setSynthesized();
892896
propDecl->copyFormalAccessFrom(nominal, /*sourceIsParentContext*/ true);
893897

898+
// NOTE: The type for this property is lazily computed by
899+
// `getLazilySynthesizedPattern` when type-checking, which ensures this
900+
// request does not trigger any semantic requests since it's called by name
901+
// lookup.
894902
Pattern *propPat = NamedPattern::createImplicit(C, propDecl);
895903

896904
PatternBindingDecl *pbDecl = PatternBindingDecl::createImplicit(

0 commit comments

Comments
 (0)