{"id":32149349,"url":"https://github.com/fetch-rewards/swiftsyntaxsugar","last_synced_at":"2025-10-21T09:54:41.365Z","repository":{"id":289201185,"uuid":"714116827","full_name":"fetch-rewards/SwiftSyntaxSugar","owner":"fetch-rewards","description":"Helpful extensions for SwiftSyntax.","archived":false,"fork":false,"pushed_at":"2025-06-26T18:29:02.000Z","size":181,"stargazers_count":38,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-10-21T09:54:39.460Z","etag":null,"topics":["extension","extensions","helper","helpers","macro","macros","sugar","swift","swift-macro","swift-macros","swift-syntax","swiftsyntax","syntax"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fetch-rewards.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-11-04T00:51:38.000Z","updated_at":"2025-09-12T21:47:56.000Z","dependencies_parsed_at":"2025-04-22T06:07:05.729Z","dependency_job_id":"7068ef92-734e-4af3-95d6-15d93fc17bd1","html_url":"https://github.com/fetch-rewards/SwiftSyntaxSugar","commit_stats":null,"previous_names":["fetch-rewards/swiftsyntaxsugar"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/fetch-rewards/SwiftSyntaxSugar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch-rewards%2FSwiftSyntaxSugar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch-rewards%2FSwiftSyntaxSugar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch-rewards%2FSwiftSyntaxSugar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch-rewards%2FSwiftSyntaxSugar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fetch-rewards","download_url":"https://codeload.github.com/fetch-rewards/SwiftSyntaxSugar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch-rewards%2FSwiftSyntaxSugar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280240308,"owners_count":26296527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["extension","extensions","helper","helpers","macro","macros","sugar","swift","swift-macro","swift-macros","swift-syntax","swiftsyntax","syntax"],"created_at":"2025-10-21T09:54:37.662Z","updated_at":"2025-10-21T09:54:41.342Z","avatar_url":"https://github.com/fetch-rewards.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftSyntaxSugar\r\n\r\n[![ci](https://github.com/fetch-rewards/SwiftSyntaxSugar/actions/workflows/ci.yml/badge.svg)](https://github.com/fetch-rewards/SwiftSyntaxSugar/actions/workflows/ci.yml?query=branch%3Amain)\r\n[![codecov](https://codecov.io/gh/fetch-rewards/SwiftSyntaxSugar/graph/badge.svg?token=gTqOi09vx5)](https://codecov.io/gh/fetch-rewards/SwiftSyntaxSugar)\r\n[![swift](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Ffetch-rewards%2FSwiftSyntaxSugar%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/fetch-rewards/SwiftSyntaxSugar)\r\n[![platforms](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Ffetch-rewards%2FSwiftSyntaxSugar%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/fetch-rewards/SwiftSyntaxSugar)\r\n[![License](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://github.com/fetch-rewards/SwiftSyntaxSugar/blob/main/LICENSE)\r\n\r\n`SwiftSyntaxSugar` is a library that provides syntactic sugar and helpful extensions for [`SwiftSyntax`](https://github.com/swiftlang/swift-syntax). \r\nThe purpose of this library is to improve the readability and maintainability of code written using `SwiftSyntax`.\r\n\r\n- [Example](#example)\r\n- [Installation](#installation)\r\n- [Usage](#usage)\r\n- [Contributing](#contributing)\r\n- [License](#license)\r\n\r\n## Example\r\n\r\n\u003ctable\u003e\r\n\u003ctr\u003e\r\n\u003ctd\u003e With \u003ccode\u003eSwiftSyntaxSugar\u003c/code\u003e \u003c/td\u003e\r\n\u003ctd\u003e Without \u003ccode\u003eSwiftSyntaxSugar\u003c/code\u003e \u003c/td\u003e \r\n\u003c/tr\u003e\r\n\u003ctr\u003e\r\n\u003ctd\u003e\r\n  \r\n```swift\r\nprotocolDeclaration.isActorConstrained    \r\n```\r\n\r\n\u003c/td\u003e\r\n\u003ctd\u003e\r\n  \r\n```swift\r\nlet isProtocolActorConstrained = protocolDeclaration.inheritanceClause?.inheritedTypes.contains { inheritedType in    \r\n    let identifierType = inheritedType.type.as(IdentifierTypeSyntax.self)\r\n    return identifierType.name.tokenKind == .identifier(\"Actor\")\r\n} ?? false\r\n```\r\n\r\n\u003c/td\u003e\r\n\u003c/tr\u003e\r\n\u003c/table\u003e\r\n\r\n## Installation\r\n\r\nTo add `SwiftSyntaxSugar` to a Swift package manifest file:\r\n- Add the `SwiftSyntaxSugar` package to your package's `dependencies`:\r\n  ```swift\r\n  .package(\r\n      url: \"https://github.com/fetch-rewards/SwiftSyntaxSugar.git\",\r\n      from: \"\u003c#latest SwiftSyntaxSugar tag#\u003e\"\r\n  )\r\n  ```\r\n- Add the `SwiftSyntaxSugar` product to your target's `dependencies`:\r\n  ```swift\r\n  .product(name: \"SwiftSyntaxSugar\", package: \"SwiftSyntaxSugar\")\r\n  ```\r\n\r\n## Usage\r\n\r\n- Import `SwiftSyntaxSugar`:\r\n  ```swift\r\n  import SwiftSyntaxSugar\r\n  ```\r\n- Use `SwiftSyntax` exactly how you normally would!\r\n\r\n## Contributing\r\n\r\nThe simplest way to contribute to this project is by [opening an issue](https://github.com/fetch-rewards/SwiftSyntaxSugar/issues/new).\r\n\r\nIf you would like to contribute code to this project, please read our [Contributing Guidelines](https://github.com/fetch-rewards/SwiftSyntaxSugar/blob/main/CONTRIBUTING.md).\r\n\r\nBy opening an issue or contributing code to this project, you agree to follow our [Code of Conduct](https://github.com/fetch-rewards/SwiftSyntaxSugar/blob/main/CODE_OF_CONDUCT.md).\r\n\r\n## License\r\n\r\nThis library is released under the MIT license. See [LICENSE](https://github.com/fetch-rewards/SwiftSyntaxSugar/blob/main/LICENSE) for details.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffetch-rewards%2Fswiftsyntaxsugar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffetch-rewards%2Fswiftsyntaxsugar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffetch-rewards%2Fswiftsyntaxsugar/lists"}