File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed 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