()
| 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…