MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / isSimpleAnnotation

Function isSimpleAnnotation

lib/web/tern/def.js:386–392  ·  view source on GitHub ↗
(spec)

Source from the content-addressed store, hash-verified

384 }
385
386 function isSimpleAnnotation(spec) {
387 if (!spec["!type"] || /^(fn\(|\[|\+)/.test(spec["!type"])) return false;
388 for (var prop in spec)
389 if (prop != "!type" && prop != "!doc" && prop != "!url" && prop != "!span" && prop != "!data")
390 return false;
391 return true;
392 }
393
394 function passOne(base, spec, path) {
395 if (!base) {

Callers 2

passOneFunction · 0.85
passTwoFunction · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected