gleamx/lineinfo

Types

pub type CodeMeta {
  CodeMeta(total_length: Int, line_ends: List(Int))
}

Constructors

  • CodeMeta(total_length: Int, line_ends: List(Int))
pub type LineInfo {
  LineInfo(index: Int, line: Int, column: Int)
}

Constructors

  • LineInfo(index: Int, line: Int, column: Int)

Values

pub fn analyze_code(code: String) -> CodeMeta
pub fn line_info(code: String, meta: CodeMeta) -> LineInfo
Search Document