File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -269,8 +269,8 @@ void DeclTranslator::fillOperatorDecl(const swift::OperatorDecl& decl,
269
269
270
270
void DeclTranslator::fillTypeDecl (const swift::TypeDecl& decl, codeql::TypeDecl& entry) {
271
271
entry.name = decl.getNameStr ().str ();
272
- for (auto & typeLoc : decl.getInherited ()) {
273
- if (auto type = typeLoc .getType ()) {
272
+ for (auto & inherited : decl.getInherited (). getEntries ()) {
273
+ if (auto type = inherited .getType ()) {
274
274
entry.inherited_types .push_back (dispatcher.fetchLabel (type));
275
275
}
276
276
}
@@ -289,7 +289,7 @@ void DeclTranslator::fillIterableDeclContext(const swift::IterableDeclContext& d
289
289
290
290
void DeclTranslator::fillVarDecl (const swift::VarDecl& decl, codeql::VarDecl& entry) {
291
291
entry.name = decl.getNameStr ().str ();
292
- entry.type = dispatcher.fetchLabel (decl.getType ());
292
+ entry.type = dispatcher.fetchLabel (decl.getTypeInContext ());
293
293
entry.parent_pattern = dispatcher.fetchOptionalLabel (decl.getParentPattern ());
294
294
entry.parent_initializer = dispatcher.fetchOptionalLabel (decl.getParentInitializer ());
295
295
if (decl.hasAttachedPropertyWrapper ()) {
You can’t perform that action at this time.
0 commit comments