File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ static bool ShouldUseObjCUSR(const Decl *D) {
141
141
}
142
142
143
143
bool ide::printDeclUSR (const ValueDecl *D, raw_ostream &OS) {
144
- if (!D->hasName () &&
144
+ if (!D->hasName () && !isa<ParamDecl>(D) &&
145
145
(!isa<FuncDecl>(D) ||
146
146
cast<FuncDecl>(D)->getAccessorKind () == AccessorKind::NotAccessor))
147
147
return true ; // Ignore.
Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ class AClass {
51
51
// CHECK-NEXT: RelChild | instance-method/Swift | instanceMethod(a:b:_:d:_:) | s:14swift_ide_test6AClassC14instanceMethodySi1a_Si1bS2i1dSitF
52
52
// CHECK: [[@LINE-5]]:33 | param(local)/Swift | b | s:{{.*}} | Def,RelChild | rel: 1
53
53
// CHECK: [[@LINE-6]]:43 | param(local)/Swift | c | s:{{.*}} | Def,RelChild | rel: 1
54
- // CHECK-NOT: {{^}} [[@LINE-7]]:53 |
55
- // CHECK-NOT: {{^}} [[@LINE-8]]:61 |
54
+ // CHECK: [[@LINE-7]]:53 | param(local)/Swift | _ | s:{{.*}} | Def,RelChild | rel: 1
55
+ // CHECK: [[@LINE-8]]:61 | param/Swift | _ | s:{{.*}} | Def,RelChild | rel: 1
56
56
57
57
_ = a
58
58
// CHECK: [[@LINE-1]]:9 | param/Swift | a | s:{{.*}} | Ref,Read,RelCont | rel: 1
You can’t perform that action at this time.
0 commit comments