klyn.code.LineScanResult.LineScanResult
constructor
public LineScanResult(spans as ArrayList<TokenSpan>, endState as LexicalState = null)
Description

Constructs a line scan result from a list of spans and an end-of-line state.

Parameters
ParameterDescription
spansOrdered token spans covering the scanned line.
endStateLexical state at the end of the line.
Example
import klyn.code

res = LineScanResult([TokenSpan(0, 3, TokenKind.KEYWORD)], LexicalState.NORMAL)
assert res.spans.size == 1