MCPcopy Index your code
hub / github.com/ccxt/ccxt / collectDependencies

Method collectDependencies

java/lib/src/main/java/io/github/ccxt/Exchange.java:2527–2539  ·  view source on GitHub ↗
(String typeName, Map<String, List<Map<String, String>>> types, LinkedHashSet<String> deps)

Source from the content-addressed store, hash-verified

2525 }
2526
2527 private static void collectDependencies(String typeName, Map<String, List<Map<String, String>>> types, LinkedHashSet<String> deps) {
2528 if (!types.containsKey(typeName) || deps.contains(typeName)) return;
2529 deps.add(typeName);
2530 for (Map<String, String> field : types.get(typeName)) {
2531 String fieldType = field.get("type");
2532 // Strip array suffix
2533 int idx = fieldType.indexOf('[');
2534 if (idx >= 0) fieldType = fieldType.substring(0, idx);
2535 if (types.containsKey(fieldType)) {
2536 collectDependencies(fieldType, types, deps);
2537 }
2538 }
2539 }
2540
2541 private static byte[] encodeData(String primaryType, Map<String, Object> data, Map<String, List<Map<String, String>>> types) {
2542 List<byte[]> chunks = new ArrayList<>();

Callers 1

encodeTypeMethod · 0.95

Calls 2

addMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected