1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00

Rename a/b to before/after.

This commit is contained in:
Rob Rix 2015-10-23 16:53:51 -04:00
parent 32ed77d9bc
commit 235d70239a

View File

@ -53,12 +53,12 @@ func diffAndSerialize(a aString: String, b bString: String, to: String) throws {
}
let JSON: Doubt.JSON = benchmark("converting diff to JSON") {
[
"a": .String(aString),
"b": .String(bString),
"before": .String(aString),
"after": .String(bString),
"diff": diff.JSON(pure: { $0.JSON { $0.JSON(annotation: range, leaf: { $0.JSON }) } }, leaf: { $0.JSON }, annotation: {
[
"a": range($0),
"b": range($1),
"before": range($0),
"after": range($1),
]
}),
]