Skip to content

Commit 4afffbe

Browse files
committed
[NFC] Document a weird designated types-related accessor
This feature is barely used and needs refactoring that would be outside the scope of this series of commits (see https://bugs.swift.org/browse/SR-11241).
1 parent 1df792a commit 4afffbe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/swift/AST/Decl.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6997,6 +6997,13 @@ class OperatorDecl : public Decl {
69976997
SourceLoc getNameLoc() const { return NameLoc; }
69986998
Identifier getName() const { return name; }
69996999

7000+
/// Get the list of identifiers after the colon in the operator declaration.
7001+
///
7002+
/// This list includes the names of designated types. For infix operators, the
7003+
/// first item in the list is a precedence group instead.
7004+
///
7005+
/// \todo These two purposes really ought to be in separate properties and the
7006+
/// designated type list should be of TypeReprs instead of Identifiers.
70007007
ArrayRef<Identifier> getIdentifiers() const {
70017008
return Identifiers;
70027009
}

0 commit comments

Comments
 (0)