mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Eliminate the Parameter type completely - now ParameterList is just
an overblown array of ParamDecl*'s that also keeps track of parenlocs and has helper methods.
This commit is contained in:
@@ -1912,9 +1912,9 @@ class FormatWalker: public ide::SourceEntityWalker {
|
||||
|
||||
// Function parameters are siblings.
|
||||
for (auto P : AFD->getParameterLists()) {
|
||||
for (auto ¶m : *P) {
|
||||
addPair(param.getEndLoc(),
|
||||
FindAlignLoc(param.getStartLoc()), tok::comma);
|
||||
for (auto param : *P) {
|
||||
addPair(param->getEndLoc(),
|
||||
FindAlignLoc(param->getStartLoc()), tok::comma);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user