File tree Expand file tree Collapse file tree 5 files changed +11
-4
lines changed Expand file tree Collapse file tree 5 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,8 @@ class ASTBuilder {
59
59
using BuiltType = swift::Type;
60
60
using BuiltTypeDecl = swift::GenericTypeDecl *; // nominal or type alias
61
61
using BuiltProtocolDecl = swift::ProtocolDecl *;
62
+ using BuiltGenericTypeParam = swift::GenericTypeParamType *;
63
+ using BuiltRequirement = swift::Requirement;
62
64
explicit ASTBuilder (ASTContext &ctx) : Ctx(ctx) {}
63
65
64
66
ASTContext &getASTContext () { return Ctx; }
@@ -134,7 +136,6 @@ class ASTBuilder {
134
136
Type createSILBoxType (Type base);
135
137
using BuiltSILBoxField = llvm::PointerIntPair<Type, 1 >;
136
138
using BuiltSubstitution = std::pair<Type, Type>;
137
- using BuiltRequirement = swift::Requirement;
138
139
using BuiltLayoutConstraint = swift::LayoutConstraint;
139
140
Type createSILBoxTypeWithLayout (ArrayRef<BuiltSILBoxField> Fields,
140
141
ArrayRef<BuiltSubstitution> Substitutions,
Original file line number Diff line number Diff line change @@ -464,6 +464,7 @@ class TypeDecoder {
464
464
using BuiltSubstitution = typename BuilderType::BuiltSubstitution;
465
465
using BuiltRequirement = typename BuilderType::BuiltRequirement;
466
466
using BuiltLayoutConstraint = typename BuilderType::BuiltLayoutConstraint;
467
+ using BuiltGenericTypeParam = typename BuilderType::BuiltGenericTypeParam;
467
468
using NodeKind = Demangle::Node::Kind;
468
469
469
470
BuilderType &Builder;
Original file line number Diff line number Diff line change @@ -356,6 +356,10 @@ class TypeRefBuilder {
356
356
using BuiltTypeDecl = llvm::Optional<std::string>;
357
357
using BuiltProtocolDecl =
358
358
llvm::Optional<std::pair<std::string, bool /* isObjC*/ >>;
359
+ using BuiltSubstitution = std::pair<const TypeRef *, const TypeRef *>;
360
+ using BuiltRequirement = TypeRefRequirement;
361
+ using BuiltLayoutConstraint = TypeRefLayoutConstraint;
362
+ using BuiltGenericTypeParam = const GenericTypeParameterTypeRef *;
359
363
360
364
TypeRefBuilder (const TypeRefBuilder &other) = delete ;
361
365
TypeRefBuilder &operator =(const TypeRefBuilder &other) = delete ;
@@ -670,9 +674,6 @@ class TypeRefBuilder {
670
674
}
671
675
672
676
using BuiltSILBoxField = typename SILBoxTypeWithLayoutTypeRef::Field;
673
- using BuiltSubstitution = std::pair<const TypeRef *, const TypeRef *>;
674
- using BuiltRequirement = TypeRefRequirement;
675
- using BuiltLayoutConstraint = TypeRefLayoutConstraint;
676
677
BuiltLayoutConstraint getLayoutConstraint (LayoutConstraintKind kind) {
677
678
// FIXME: Implement this.
678
679
return {};
Original file line number Diff line number Diff line change @@ -165,6 +165,8 @@ class MetadataReader {
165
165
using BuiltTypeDecl = typename BuilderType::BuiltTypeDecl;
166
166
using BuiltProtocolDecl = typename BuilderType::BuiltProtocolDecl;
167
167
using BuiltRequirement = typename BuilderType::BuiltRequirement;
168
+ using BuiltSubstitution = typename BuilderType::BuiltSubstitution;
169
+ using BuiltGenericTypeParam = typename BuilderType::BuiltGenericTypeParam;
168
170
using StoredPointer = typename Runtime::StoredPointer;
169
171
using StoredSignedPointer = typename Runtime::StoredSignedPointer;
170
172
using StoredSize = typename Runtime::StoredSize;
Original file line number Diff line number Diff line change @@ -1334,6 +1334,8 @@ class DecodedMetadataBuilder {
1334
1334
using BuiltType = const Metadata *;
1335
1335
using BuiltTypeDecl = const ContextDescriptor *;
1336
1336
using BuiltProtocolDecl = ProtocolDescriptorRef;
1337
+ using BuiltSubstitution = std::pair<BuiltType, BuiltType>;
1338
+ using BuiltGenericTypeParam = const Metadata *;
1337
1339
1338
1340
BuiltType decodeMangledType (NodePointer node,
1339
1341
bool forRequirement = true ) {
You can’t perform that action at this time.
0 commit comments