MCPcopy Index your code
hub / github.com/josdejong/mathjs / createSyntaxError

Function createSyntaxError

src/expression/parse.js:1830–1836  ·  view source on GitHub ↗

* Create an error * @param {Object} state * @param {string} message * @return {SyntaxError} instantiated error * @private

(state, message)

Source from the content-addressed store, hash-verified

1828 * @private
1829 */
1830 function createSyntaxError (state, message) {
1831 const c = col(state)
1832 const error = new SyntaxError(message + ' (char ' + c + ')')
1833 error.char = c
1834
1835 return error
1836 }
1837
1838 /**
1839 * Create an error

Callers 12

getTokenFunction · 0.85
parseStartFunction · 0.85
parseAssignmentFunction · 0.85
parseConditionalFunction · 0.85
parseRangeFunction · 0.85
parseCustomNodesFunction · 0.85
parseAccessorsFunction · 0.85
parseStringTokenFunction · 0.85
parseMatrixFunction · 0.85
parseObjectFunction · 0.85
parseParenthesesFunction · 0.85
parseEndFunction · 0.85

Calls 1

colFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…