Include rows and columns in TSLength
This way, we don't have to have separate 1D and 2D versions for so many values
This commit is contained in:
parent
22c76fc71b
commit
d2bf88d5fe
14 changed files with 186 additions and 241 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include "runtime/helpers/tree_helpers.h"
|
||||
#include <ostream>
|
||||
|
||||
using std::string;
|
||||
using std::to_string;
|
||||
|
|
@ -32,6 +33,6 @@ bool operator==(const TSNode &left, const TSNode &right) {
|
|||
}
|
||||
|
||||
ostream &operator<<(ostream &stream, const TSLength &length) {
|
||||
return stream << string("{") << to_string(length.chars) << string(", ") <<
|
||||
to_string(length.bytes) << string("}");
|
||||
return stream << "{chars:" << length.chars << ", bytes:" <<
|
||||
length.bytes << ", rows:" << length.rows << ", columns:" << length.columns << "}";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue