MCPcopy Create free account
hub / github.com/SAP/ui5-builder / analyzeString

Function analyzeString

test/lib/lbt/analyzer/JSModuleAnalyzer.js:54–59  ·  view source on GitHub ↗
(content, name)

Source from the content-addressed store, hash-verified

52}
53
54function analyzeString(content, name) {
55 const ast = parseJS(content, {comment: true});
56 const info = new ModuleInfo(name);
57 new JSModuleAnalyzer().analyze(ast, name, info);
58 return info;
59}
60
61function assertModuleNamesEqual(t, actual, expected, msg) {
62 actual.sort();

Callers 2

analyzeFunction · 0.85

Calls 2

parseJSFunction · 0.90
analyzeMethod · 0.45

Tested by

no test coverage detected