File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change
1
+ # This is manifest file for the Swift Package Index for it to
2
+ # auto-generate and host DocC documentation.
3
+ # For reference see https://swiftpackageindex.com/swiftpackageindex/spimanifest/documentation/spimanifest/commonusecases#Host-DocC-documentation-in-the-Swift-Package-Index.
4
+
5
+ version : 1
6
+ builder :
7
+ configs :
8
+ - documentation_targets :
9
+ # First item in the list is the "landing" (default) target
10
+ - SwiftFormat
11
+ custom_documentation_parameters : [--experimental-skip-synthesized-symbols]
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public final class SwiftFormatter {
45
45
/// This form of the `format` function automatically folds expressions using the default operator
46
46
/// set defined in Swift. If you need more control over this—for example, to provide the correct
47
47
/// precedence relationships for custom operators—you must parse and fold the syntax tree
48
- /// manually and then call ``format(syntax:assumingFileURL:to:)``.
48
+ /// manually and then call ``format(syntax:source:operatorTable: assumingFileURL:selection :to:)``.
49
49
///
50
50
/// - Parameters:
51
51
/// - url: The URL of the file containing the code to format.
@@ -81,7 +81,7 @@ public final class SwiftFormatter {
81
81
/// This form of the `format` function automatically folds expressions using the default operator
82
82
/// set defined in Swift. If you need more control over this—for example, to provide the correct
83
83
/// precedence relationships for custom operators—you must parse and fold the syntax tree
84
- /// manually and then call ``format(syntax:assumingFileURL:to:)``.
84
+ /// manually and then call ``format(syntax:source:operatorTable: assumingFileURL:selection :to:)``.
85
85
///
86
86
/// - Parameters:
87
87
/// - source: The Swift source code to be formatted.
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public final class SwiftLinter {
45
45
/// This form of the `lint` function automatically folds expressions using the default operator
46
46
/// set defined in Swift. If you need more control over this—for example, to provide the correct
47
47
/// precedence relationships for custom operators—you must parse and fold the syntax tree
48
- /// manually and then call ``lint(syntax:assumingFileURL:)``.
48
+ /// manually and then call ``lint(syntax:source:operatorTable: assumingFileURL:)``.
49
49
///
50
50
/// - Parameters:
51
51
/// - url: The URL of the file containing the code to format.
@@ -76,7 +76,7 @@ public final class SwiftLinter {
76
76
/// This form of the `lint` function automatically folds expressions using the default operator
77
77
/// set defined in Swift. If you need more control over this—for example, to provide the correct
78
78
/// precedence relationships for custom operators—you must parse and fold the syntax tree
79
- /// manually and then call ``lint(syntax:assumingFileURL:)``.
79
+ /// manually and then call ``lint(syntax:source:operatorTable: assumingFileURL:)``.
80
80
///
81
81
/// - Parameters:
82
82
/// - source: The Swift source code to be linted.
@@ -124,6 +124,7 @@ public final class SwiftLinter {
124
124
///
125
125
/// - Parameters:
126
126
/// - syntax: The Swift syntax tree to be converted to be linted.
127
+ /// - source: The Swift source code to be linted.
127
128
/// - operatorTable: The table that defines the operators and their precedence relationships.
128
129
/// This must be the same operator table that was used to fold the expressions in the `syntax`
129
130
/// argument.
You can’t perform that action at this time.
0 commit comments