Skip to content

Commit 690b0c0

Browse files
committedApr 22, 2020
Introduce isType and getDeclType
Accidentally forgot a negation address review notes Address more of Jordan's feedback
1 parent fab3576 commit 690b0c0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+263
-446
lines changed
 

‎include/swift/AST/ASTContext.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,10 @@ class ASTContext final {
460460

461461
#define KNOWN_STDLIB_TYPE_DECL(NAME, DECL_CLASS, NUM_GENERIC_PARAMS) \
462462
/** Retrieve the declaration of Swift.NAME. */ \
463-
DECL_CLASS *get##NAME##Decl() const;
463+
DECL_CLASS *get##NAME##Decl() const; \
464+
\
465+
/** Retrieve the type of Swift.NAME. */ \
466+
Type get##NAME##Type() const;
464467
#include "swift/AST/KnownStdlibTypes.def"
465468

466469
/// Retrieve the declaration of Swift.Optional<T>.Some.
@@ -475,9 +478,6 @@ class ASTContext final {
475478
/// Retrieve the type Swift.AnyObject.
476479
CanType getAnyObjectType() const;
477480

478-
/// Retrieve the type Swift.Never.
479-
CanType getNeverType() const;
480-
481481
#define KNOWN_OBJC_TYPE_DECL(MODULE, NAME, DECL_CLASS) \
482482
/** Retrieve the declaration of MODULE.NAME. */ \
483483
DECL_CLASS *get##NAME##Decl() const; \

‎include/swift/AST/KnownProtocols.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ PROTOCOL(OptionSet)
7070
PROTOCOL(CaseIterable)
7171
PROTOCOL(SIMDScalar)
7272
PROTOCOL(BinaryInteger)
73+
PROTOCOL(RangeReplaceableCollection)
7374

7475
PROTOCOL_(BridgedNSError)
7576
PROTOCOL_(BridgedStoredNSError)

0 commit comments

Comments
 (0)
Please sign in to comment.