MCPcopy Create free account
hub / github.com/AztecProtocol/aztec-packages / getLineNumberFromIndex

Function getLineNumberFromIndex

docs/src/preprocess/include_code.js:4–6  ·  view source on GitHub ↗
(fileContent, index)

Source from the content-addressed store, hash-verified

2const path = require("path");
3
4const getLineNumberFromIndex = (fileContent, index) => {
5 return fileContent.substring(0, index).split("\n").length;
6};
7
8/**
9 * Search for lines of the form

Callers 2

lookForMatchFunction · 0.70
preprocessIncludeCodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected