From 499b4359edb1bac05a01762f2359c0c341c7fa37 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Mon, 3 Oct 2022 04:08:00 +0700 Subject: [PATCH] Fix names for JSONAPI's internal methods --- sources/Text/JSON/JSONAPI.uc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/sources/Text/JSON/JSONAPI.uc b/sources/Text/JSON/JSONAPI.uc index 44db0a2..b710a3b 100644 --- a/sources/Text/JSON/JSONAPI.uc +++ b/sources/Text/JSON/JSONAPI.uc @@ -733,7 +733,7 @@ public function HashTable ParseHashTableWith( } // Parse property parsedEntries[parsedEntries.length] = - ParseHashTableProperty(parser, parseAsMutable); + ParseProperty(parser, parseAsMutable); if (!parser.Ok()) { break; } @@ -744,13 +744,12 @@ public function HashTable ParseHashTableWith( else { parser.Fail(); } - FreeHashTableEntries(parsedEntries); + FreeEntries(parsedEntries); return result; } -// TODO: ParseProperty // Parses a JSON key-value pair (there must not be any leading spaces). -private function HashTable.Entry ParseHashTableProperty( +private function HashTable.Entry ParseProperty( Parser parser, bool parseAsMutable) { @@ -762,9 +761,8 @@ private function HashTable.Entry ParseHashTableProperty( return entry; } -// TODO: FreeEntries // Auxiliary method for deallocating unneeded objects in entry pairs. -private function FreeHashTableEntries(array entries) +private function FreeEntries(array entries) { local int i; for (i = 0; i < entries.length; i += 1)