Remove document parameter from ts_node_type, ts_node_string

Co-Authored-By: Rick Winfrey <rewinfrey@github.com>
This commit is contained in:
Max Brunsfeld 2018-05-09 15:28:28 -07:00
parent 8d805feab1
commit 92255bbfdd
10 changed files with 87 additions and 88 deletions

View file

@ -35,7 +35,7 @@ describe("Document", [&]() {
});
auto assert_node_string_equals = [&](TSNode node, const string &expected) {
char *str = ts_node_string(node, document);
char *str = ts_node_string(node);
string actual(str);
ts_free(str);
AssertThat(actual, Equals(expected));