File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ class VisitorBase {
2525 void visit##CLASS##KIND(swift::CLASS##KIND* e) { dispatcher_.emitUnknown (e); }
2626
2727// base class for our AST visitors, getting a SwiftDispatcher member and default emission for
28- // unknown/TBD entities
28+ // unknown/TBD entities. Like `swift::ASTVisitor`, this uses CRTP (the Curiously Recurring Template
29+ // Pattern)
2930template <typename CrtpSubclass>
3031class AstVisitorBase : public swift ::ASTVisitor<CrtpSubclass>, detail::VisitorBase {
3132 public:
@@ -48,7 +49,8 @@ class AstVisitorBase : public swift::ASTVisitor<CrtpSubclass>, detail::VisitorBa
4849};
4950
5051// base class for our type visitor, getting a SwiftDispatcher member and default emission for
51- // unknown/TBD types
52+ // unknown/TBD types. Like `swift::TypeVisitor`, this uses CRTP (the Curiously Recurring Template
53+ // Pattern)
5254template <typename CrtpSubclass>
5355class TypeVisitorBase : public swift ::TypeVisitor<CrtpSubclass>, detail::VisitorBase {
5456 public:
You can’t perform that action at this time.
0 commit comments