MCPcopy
hub / github.com/processing/p5.js / locationInfo

Function locationInfo

utils/data-processor.mjs:84–89  ·  view source on GitHub ↗
(entry)

Source from the content-addressed store, hash-verified

82 }
83
84 function locationInfo(entry) {
85 return {
86 file: entry.context?.file ? entry.context.file.slice(entry.context.file.indexOf('src/')) : '',
87 line: entry.context?.loc?.start?.line || 1
88 };
89 }
90
91 function deprecationInfo(entry) {
92 if (!entry.deprecated) {

Callers 1

processDataFunction · 0.85

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected