mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Swift: Mangle AssociatedTypeDecl.
This commit is contained in:
@@ -141,6 +141,10 @@ SwiftMangledName SwiftMangler::visitGenericTypeParamDecl(const swift::GenericTyp
|
||||
return visitValueDecl(decl, /*force=*/true) << '_' << decl->getDepth() << '_' << decl->getIndex();
|
||||
}
|
||||
|
||||
SwiftMangledName SwiftMangler::visitAssociatedTypeDecl(const swift::AssociatedTypeDecl* decl) {
|
||||
return visitValueDecl(decl, /*force=*/true);
|
||||
}
|
||||
|
||||
SwiftMangledName SwiftMangler::visitModuleType(const swift::ModuleType* type) {
|
||||
return initMangled(type) << fetch(type->getModule());
|
||||
}
|
||||
|
||||
@@ -62,6 +62,7 @@ class SwiftMangler : private swift::TypeVisitor<SwiftMangler, SwiftMangledName>,
|
||||
SwiftMangledName visitSubscriptDecl(const swift::SubscriptDecl* decl);
|
||||
SwiftMangledName visitVarDecl(const swift::VarDecl* decl);
|
||||
SwiftMangledName visitGenericTypeParamDecl(const swift::GenericTypeParamDecl* decl);
|
||||
SwiftMangledName visitAssociatedTypeDecl(const swift::AssociatedTypeDecl* decl);
|
||||
|
||||
// default fallback for non mangled types. This covers types that should not appear in normal
|
||||
// successful extractor runs, like ErrorType
|
||||
|
||||
Reference in New Issue
Block a user