Skip to content

Commit

Permalink
Support Swift/SourceKit 6
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplyDanny committed Dec 1, 2024
1 parent 3db8072 commit 49506d9
Show file tree
Hide file tree
Showing 14 changed files with 21,933 additions and 6 deletions.
1 change: 1 addition & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ build --macos_minimum_os=12
build --repo_env=CC=clang
test --test_output=errors
test --spawn_strategy=standalone
test --macos_minimum_os=13
2 changes: 1 addition & 1 deletion .github/workflows/xcodebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
with:
xcode-version: ${{ matrix.xcode_version }}
- run: xcodebuild -version
- run: xcodebuild -scheme sourcekitten -parallel-testing-enabled NO test -destination platform=macOS
- run: xcodebuild -scheme SourceKitten-Package -parallel-testing-enabled NO test -destination platform=macOS
14 changes: 14 additions & 0 deletions Source/SourceKittenFramework/SwiftDeclarationAttributeKind.swift
Original file line number Diff line number Diff line change
Expand Up @@ -201,4 +201,18 @@ public enum SwiftDeclarationAttributeKind: String, CaseIterable {
case _rawLayout = "source.decl.attribute._rawLayout"
case _section = "source.decl.attribute._section"
case _used = "source.decl.attribute._used"

// Only available in Swift >= 6.0
case _extern = "source.decl.attribute._extern"
case _resultDependsOnSelf = "source.decl.attribute._resultDependsOnSelf"
case _preInverseGenerics = "source.decl.attribute._preInverseGenerics"
case implementation = "source.decl.attribute.implementation"
case _allowFeatureSuppression = "source.decl.attribute._allowFeatureSuppression"
case _noRuntime = "source.decl.attribute._noRuntime"
case _staticExclusiveOnly = "source.decl.attribute._staticExclusiveOnly"
case extractConstantsFromMembers = "source.decl.attribute.extractConstantsFromMembers"
case _unsafeNonescapableResult = "source.decl.attribute._unsafeNonescapableResult"
case _noExistentials = "source.decl.attribute._noExistentials"
case _noObjCBridging = "source.decl.attribute._noObjCBridging"
case _nonescapable = "source.decl.attribute._nonescapable"
}
888 changes: 888 additions & 0 deletions Tests/SourceKittenFrameworkTests/Fixtures/Bicycle@swift-6.0.json

Large diffs are not rendered by default.

Loading

0 comments on commit 49506d9

Please sign in to comment.