File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
test/SourceKit/InterfaceGen Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "A" : [
3
+ " swift_mod.swift" ,
4
+ ],
5
+ "B" : [
6
+ " swift_mod_syn.swift" ,
7
+ ]
8
+ }
Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t.mod)
2
+ // RUN: %target-swift-frontend -module-name MyModule -emit-module -emit-module-path %t.mod/MyModule.swiftmodule -emit-module-doc -emit-module-doc-path %t.mod/MyModule.swiftdoc -group-info-path %S/Inputs/group.json %S/Inputs/swift_mod.swift %S/Inputs/swift_mod_syn.swift
3
+ // RUN: %sourcekitd-test -req=interface-gen -module MyModule -group-name A -- -I %t.mod | %FileCheck -check-prefix=GROUPA %s
4
+ // RUN: %sourcekitd-test -req=interface-gen -module MyModule -group-name B -- -I %t.mod | %FileCheck -check-prefix=GROUPB %s
5
+
6
+ // GROUPA: MyClass
7
+ // GROUPA-NOT: P1
8
+ // GROUPA-NOT: P2
9
+
10
+ // GROUPB: P1
11
+ // GROUPB: P2
12
+ // GROUPB-NOT: MyClass
You can’t perform that action at this time.
0 commit comments