Describe the bug
Target Code:
|
fun tokenizeLine(line: String, lineNumber: Int, state: Any? = null): Pair<List<Token>, Any?> |
- Currently the
state parameter in tokenizeLine method of LanguageModeProvider class use Any? type which allowing any type to be assigned to the parameter.
- So the plan to use a concrete type through
Generics and Interfaces.
Environment (please complete the following information):
- OS: Windows 11
- Java: 21
- App version / commit SHA: 1.16.0
- Module/area:
editor-core
- Run mode: None
Describe the bug
Target Code:
req-lab/editor-core/src/commonMain/kotlin/com/reqlab/editor/core/LanguageMode.kt
Line 42 in 99a261b
stateparameter intokenizeLinemethod ofLanguageModeProviderclass useAny?type which allowing any type to be assigned to the parameter.GenericsandInterfaces.Environment (please complete the following information):
editor-core