Skip to content

Commit a906cf4

Browse files
committed
add commas
1 parent d55d62e commit a906cf4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Demangling/NodePrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3305,7 +3305,7 @@ std::string Demangle::keypathSourceString(const char *MangledName,
33053305
if (argChild->getKind() == Node::Kind::Identifier) {
33063306
subscriptText += std::string(argChild->getText()) + ": " + argumentTypeNames[idx - 1];
33073307
if (idx != numChildren) {
3308-
subscriptText += " ";
3308+
subscriptText += ", ";
33093309
}
33103310
} else if (argChild->getKind() == Node::Kind::FirstElementMarker ||
33113311
argChild->getKind() == Node::Kind::VariadicMarker) {

test/Interpreter/keypath.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ print(\Controller.secondLabel!.text)
8484
print(\Controller["abc"])
8585
// CHECK: \S.a
8686
print(\S.a)
87-
// CHECK: {{\\Controller\.subscript\(int: Int str: String _: Int\)|\\Controller\.<computed 0x.* \(Int\)>}}
87+
// CHECK: {{\\Controller\.subscript\(int: Int, str: String, _: Int\)|\\Controller\.<computed 0x.* \(Int\)>}}
8888
print(\Controller[int: 0, str: "", 0])
8989
// CHECK: {{\\Controller\.thirdLabel|\\Controller\.<computed 0x.* \(Optional<MyLabel>\)>}}
9090
print(\Controller.thirdLabel)

0 commit comments

Comments
 (0)