forked from swiftlang/swift-docc-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SE-0356: Snippet slice parsing (swiftlang#20)
Rewrite the snippet parser to support slicing. See: https://github.com/apple/swift-evolution/blob/main/proposals/0356-swift-snippets.md#slices Adopt SymbolKit model changes related to slicing. Remove experimental guard flag for snippet functionality, but guard snippet functionality on Swift 5.7. rdar://95220356
- Loading branch information
Showing
14 changed files
with
635 additions
and
266 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
IntegrationTests/Tests/Fixtures/PackageWithSnippets/Snippets/Subdir/SnippetInSubdir.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// This source file is part of the Swift.org open source project | ||
// | ||
// Copyright (c) 2022 Apple Inc. and the Swift project authors | ||
// Licensed under Apache License v2.0 with Runtime Library Exception | ||
// | ||
// See https://swift.org/LICENSE.txt for license information | ||
// See https://swift.org/CONTRIBUTORS.txt for Swift project authors | ||
|
||
// This snippet is in a subdirectory. | ||
|
||
func foo() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,6 @@ | |
/// | ||
/// Is best. | ||
public struct BestStruct { | ||
public init() {} | ||
public func best() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
130 changes: 0 additions & 130 deletions
130
Sources/Snippets/Parsing/PlainTextSnippetExtractor.swift
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.