File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -2986,6 +2986,11 @@ class TypeAliasDecl : public GenericTypeDecl {
2986
2986
Type getCachedUnderlyingType () const { return UnderlyingTy.getType (); }
2987
2987
2988
2988
// / For generic typealiases, return the unbound generic type.
2989
+ // /
2990
+ // / Since UnboundGenericType is on its way out, so is this method. Try to
2991
+ // / avoid introducing new callers if possible. Instead of passing around
2992
+ // / an UnboundGenericType, considering passing around the Decl itself
2993
+ // / instead.
2989
2994
UnboundGenericType *getUnboundGenericType () const ;
2990
2995
2991
2996
// / Retrieve a sugared interface type containing the structure of the interface
@@ -3372,6 +3377,11 @@ class NominalTypeDecl : public GenericTypeDecl, public IterableDeclContext {
3372
3377
3373
3378
// / getDeclaredType - Retrieve the type declared by this entity, without
3374
3379
// / any generic parameters bound if this is a generic type.
3380
+ // /
3381
+ // / Since UnboundGenericType is on its way out, so is this method. Try to
3382
+ // / avoid introducing new callers if possible. Instead of passing around
3383
+ // / an UnboundGenericType, considering passing around the Decl itself
3384
+ // / instead.
3375
3385
Type getDeclaredType () const ;
3376
3386
3377
3387
// / getDeclaredInterfaceType - Retrieve the type declared by this entity, with
Original file line number Diff line number Diff line change @@ -2179,6 +2179,8 @@ END_CAN_TYPE_WRAPPER(TupleType, Type)
2179
2179
2180
2180
// / UnboundGenericType - Represents a generic type where the type arguments have
2181
2181
// / not yet been resolved.
2182
+ // /
2183
+ // / This type is on its way out. Try to avoid introducing new usages.
2182
2184
class UnboundGenericType : public AnyGenericType,
2183
2185
public llvm::FoldingSetNode {
2184
2186
private:
You can’t perform that action at this time.
0 commit comments