File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
test/SourceKit/CursorInfo Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ struct PrintOptions {
194
194
Package // prints package, SPI, and public/inlinable decls
195
195
};
196
196
197
- InterfaceMode InterfaceContentKind;
197
+ InterfaceMode InterfaceContentKind = InterfaceMode::Private ;
198
198
199
199
bool printPublicInterface () const {
200
200
return InterfaceContentKind == InterfaceMode::Public;
Original file line number Diff line number Diff line change
1
+ @_spi ( Hello)
2
+ public struct World { }
3
+
4
+ // RUN: %sourcekitd-test -req=cursor -pos=2:15 %s -- %s | %FileCheck -check-prefix=CHECK %s
5
+ // CHECK: source.lang.swift.decl.struct (2:15-2:20)
6
+ // CHECK: <Declaration>@_spi(Hello) public struct World</Declaration>
7
+ // CHECK: <decl.struct><syntaxtype.attribute.name>@_spi</syntaxtype.attribute.name>(Hello) <syntaxtype.keyword>public</syntaxtype.keyword> <syntaxtype.keyword>struct</syntaxtype.keyword> <decl.name>World</decl.name></decl.struct>
You can’t perform that action at this time.
0 commit comments