Skip to content

Commit 714638a

Browse files
committed
Improve documentation
1 parent e1da2e6 commit 714638a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rascal-textmate-core/src/main/rascal/lang/textmate/Conversion.rsc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ private bool less(ConversionUnit u1, ConversionUnit u2) {
151151
// Symmetrical case
152152
return false;
153153
} else {
154+
// Otherwise, sort arbitrarily by name and stringified production
154155
return toName(u1.prod.def) + "<u1.prod>" < toName(u2.prod.def) + "<u2.prod>";
155156
}
156157
} else if (nothing() != key1 && nothing() == key2) {
@@ -161,6 +162,7 @@ private bool less(ConversionUnit u1, ConversionUnit u2) {
161162
// Symmetrical case
162163
return false;
163164
} else {
165+
// Otherwise, sort arbitrarily by name and stringified production
164166
return toName(u1.prod.def) + "<u1.prod>" < toName(u2.prod.def) + "<u2.prod>";
165167
}
166168
}

0 commit comments

Comments
 (0)