Skip to content

Concreate type for state parameter in LanguageModeProvider class #11

Description

@DebanKsahu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions