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

Function findDocs

lib/web/tern/tern.js:925–932  ·  view source on GitHub ↗
(srv, query, file)

Source from the content-addressed store, hash-verified

923 }
924
925 function findDocs(srv, query, file) {
926 var expr = findExpr(file, query);
927 var type = findExprType(srv, query, file, expr);
928 var result = {url: type.url, doc: parseDoc(query, type.doc), type: infer.toString(type)};
929 var inner = type.getType();
930 if (inner) storeTypeDocs(query, inner, result);
931 return clean(result);
932 }
933
934 function storeTypeDocs(query, type, out) {
935 if (!out.url) out.url = type.url;

Callers

nothing calls this directly

Calls 6

findExprTypeFunction · 0.85
parseDocFunction · 0.85
storeTypeDocsFunction · 0.85
cleanFunction · 0.85
getTypeMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected