public equalsState(other as LexicalState) as Boolean
Compares all fields of this state with another LexicalState for value equality.
Editors use equalsState to stop incremental state propagation as soon as a line's end state matches its previously cached state.
| Parameter | Description |
|---|---|
other | Another LexicalState to compare against. |
true when both states are identical.
import klyn.code s1 = LexicalState(LexicalMode.MARKUP_COMMENT, "-->") s2 = LexicalState(LexicalMode.MARKUP_COMMENT, "-->") assert s1.equalsState(s2)