caffeine_lang/position_utils

Values

pub fn find_name_position(
  content: String,
  name: String,
) -> #(Int, Int)

Finds the 1-indexed line and column of the first whole-word occurrence of a name in source. Returns #(1, 1) if not found.

Search Document