@@ -281,13 +281,15 @@ namespace {
281
281
return activeContext;
282
282
}
283
283
284
- void expandObjectElement_step13 (const std::string *activeProperty, const json &element, const std::string &baseUrl,
285
- Context &typeScopedContext, const std::string &inputType, Context &activeContext, json &result,
286
- json &nests);
284
+ void expandObjectElement_step13 (
285
+ const std::string *activeProperty, const json &element, const std::string &baseUrl,
286
+ Context &typeScopedContext, const std::string &inputType, Context &activeContext, json &result,
287
+ json &nests);
287
288
288
- void expandObjectElement_step14 (Context &activeContext, const std::string *activeProperty, const json &element,
289
- const std::string &baseUrl, Context &typeScopedContext, json &result,
290
- json &nests, const std::string &inputType);
289
+ void expandObjectElement_step14 (
290
+ Context &activeContext, const json &element,
291
+ const std::string &baseUrl, Context &typeScopedContext, json &result,
292
+ json &nests, const std::string &inputType);
291
293
292
294
json expandObjectElement (
293
295
Context activeContext,
@@ -366,7 +368,7 @@ namespace {
366
368
367
369
// 14)
368
370
// For each key nesting-key in nests, ordered lexicographically if ordered is true:
369
- expandObjectElement_step14 (activeContext, activeProperty, element, baseUrl, typeScopedContext, result,
371
+ expandObjectElement_step14 (activeContext, element, baseUrl, typeScopedContext, result,
370
372
nests, inputType);
371
373
372
374
// 15)
@@ -1009,7 +1011,7 @@ namespace {
1009
1011
for (json::iterator it = element_value.begin (); it != element_value.end (); ++it) {
1010
1012
value_keys.push_back (it.key ());
1011
1013
}
1012
- // todo: if I comment the next line then I fix 7 tests, but that doesn't seem right
1014
+
1013
1015
if (activeContext.getOptions ().isOrdered ())
1014
1016
std::sort (value_keys.begin (), value_keys.end ());
1015
1017
@@ -1349,7 +1351,7 @@ namespace {
1349
1351
}
1350
1352
}
1351
1353
1352
- void expandObjectElement_step14 (Context &activeContext, const std::string *activeProperty, const json &element,
1354
+ void expandObjectElement_step14 (Context &activeContext, const json &element,
1353
1355
const std::string &baseUrl, Context &typeScopedContext, json &result,
1354
1356
json &nests, const std::string &inputType) {
1355
1357
// 14)
@@ -1421,7 +1423,7 @@ namespace {
1421
1423
1422
1424
// 14)
1423
1425
// For each key nesting-key in nests, ordered lexicographically if ordered is true:
1424
- expandObjectElement_step14 (copyActiveContext, &nestingKey, nestedValue, baseUrl, typeScopedContext, result,
1426
+ expandObjectElement_step14 (copyActiveContext, nestedValue, baseUrl, typeScopedContext, result,
1425
1427
localNests, inputType);
1426
1428
1427
1429
}
@@ -1450,7 +1452,7 @@ json ExpansionProcessor::expand(
1450
1452
// 2)
1451
1453
// If active property is @default, initialize the frameExpansion flag to false.
1452
1454
if (activeProperty != nullptr && *activeProperty == JsonLdConsts::DEFAULT) {
1453
- // todo: activeContext.getOptions().setFrameExpansion(false);
1455
+ // todo: activeContext.getOptions().setFrameExpansion(false);
1454
1456
}
1455
1457
1456
1458
// 3)
0 commit comments