MCPcopy
hub / github.com/josdejong/mathjs / initialState

Function initialState

src/expression/parse.js:222–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

220 }
221
222 function initialState () {
223 return {
224 extraNodes: {}, // current extra nodes, must be careful not to mutate
225 expression: '', // current expression
226 comment: '', // last parsed comment
227 index: 0, // current index in expr
228 token: '', // current token
229 tokenType: TOKENTYPE.NULL, // type of the token
230 nestingLevel: 0, // level of nesting inside parameters, used to ignore newline characters
231 conditionalLevel: null // when a conditional is being parsed, the level of the conditional is stored here
232 }
233 }
234
235 /**
236 * View upto `length` characters of the expression starting at the current character.

Callers 1

parseStartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…