mirror of
https://github.com/github/semantic.git
synced 2024-11-25 02:58:36 +03:00
Rename a/b to before/after.
This commit is contained in:
parent
32ed77d9bc
commit
235d70239a
@ -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),
|
||||
]
|
||||
}),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user