File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
Sources/AccessibilityIdentifierMacros Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : test
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+ branches :
8
+ - main
9
+
10
+ env :
11
+ DEVELOPER_DIR : /Applications/Xcode_16.4.app/Contents/Developer
12
+
13
+ jobs :
14
+ test :
15
+ runs-on : macOS-15
16
+ steps :
17
+ - name : Checkout Repository
18
+ uses : actions/checkout@v3
19
+
20
+ - name : Test Build
21
+ run : swift build -Xswiftc -warnings-as-errors --enable-experimental-prebuilts
22
+
23
+ - name : Run Tests
24
+ run : swift test -Xswiftc -warnings-as-errors --enable-experimental-prebuilts
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ public struct AccessibilityIdentifierGenerationMacro: MemberMacro {
11
11
public static func expansion(
12
12
of attribute: AttributeSyntax ,
13
13
providingMembersOf declaration: some DeclGroupSyntax ,
14
+ conformingTo protocols: [ TypeSyntax ] ,
14
15
in context: some MacroExpansionContext
15
16
) throws -> [ DeclSyntax ] {
16
17
let name = declaration. as ( ClassDeclSyntax . self) ? . name. description ?? declaration. as ( StructDeclSyntax . self) !. name. description
You can’t perform that action at this time.
0 commit comments