Optionaldata: anyOptionalcursor: anyOptionalopts: {}Optionalopts: {}Optionalopts: { sourceLocation?: any }Optionalopts: { includeLocation?: any; sourceLocation?: any }Optionalcontext: {}Get the current include depth (number of nested includes).
Drain conditional stack at EOS; treat blank lines as lines (not as EOF).
peekLine() returns undefined only at true EOF; '' for blank lines.
Peek at the next line without consuming it.
Optionaldirect: booleanWhen true, bypass processLine and return the raw stack top.
The next line, or undefined if there are no more lines.
Peek at the next num lines without consuming them.
Optionalnum: numberOptionaldirect: booleanEvaluate preprocessor directives as lines are visited.
Push new source onto the reader, switching the include context.
Optionalfile: stringOptionalpath: stringOptionallineno: numberOptionalattributes: anyRead lines until a termination condition is met.
Optionaloptions: {OptionalbreakOnBlankLines?: booleanStop on blank lines.
OptionalbreakOnListContinuation?: booleanStop on a list continuation (+).
Optionalcontext?: stringName used in unterminated-block warnings.
Optionalcursor?: CursorStarting cursor for unterminated-block warnings.
OptionalpreserveLastLine?: booleanPush the terminating line back.
OptionalreadLastLine?: booleanInclude the terminating line in result.
OptionalskipFirstLine?: booleanSkip the first line before scanning.
OptionalskipLineComments?: booleanSkip line comments.
OptionalskipProcessing?: booleanDisable line preprocessing for this call.
Optionalterminator?: stringLine at which to stop.
Optionalfilter: FunctionOptional function(line) returning true to break.
Returns the remaining lines in forward order (first remaining line at index 0). The returned object is a mutable proxy so that element assignments like
reader.lines[i] = newValueare reflected back into the internal reversed stack.