mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Gardening] Change calls of getName().isOperator() to isOperator()
This commit is contained in:
@@ -180,7 +180,7 @@ void SourceLookupCache::doPopulateCache(Range decls,
|
||||
bool onlyOperators) {
|
||||
for (Decl *D : decls) {
|
||||
if (ValueDecl *VD = dyn_cast<ValueDecl>(D))
|
||||
if (onlyOperators ? VD->getName().isOperator() : VD->hasName()) {
|
||||
if (onlyOperators ? VD->isOperator() : VD->hasName()) {
|
||||
// Cache the value under both its compound name and its full name.
|
||||
TopLevelValues.add(VD);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user