From a3c4e0a82d5b56e280cbf72af2ecf5a990b1f577 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 12 Mar 2025 18:12:53 -0400 Subject: Rename `without_escaping()` -> `from_text()` --- examples/tomodeps/tomodeps.tm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/tomodeps') diff --git a/examples/tomodeps/tomodeps.tm b/examples/tomodeps/tomodeps.tm index 48c026e9..93e3eb42 100644 --- a/examples/tomodeps/tomodeps.tm +++ b/examples/tomodeps/tomodeps.tm @@ -18,7 +18,7 @@ func _get_file_dependencies(file:Path -> {Dependency}): if lines := file:by_line(): for line in lines: if line:matches($/use {..}.tm/): - file_import := Path.without_escaping(line:replace($/use {..}/, "\1")):resolved(relative_to=file) + file_import := Path.from_text(line:replace($/use {..}/, "\1")):resolved(relative_to=file) deps:add(Dependency.File(file_import)) else if line:matches($/use {id}/): module_name := line:replace($/use {..}/, "\1") @@ -103,7 +103,7 @@ func main(files:[Text]): for arg in files: if arg:matches($/{..}.tm/): - path := Path.without_escaping(arg):resolved() + path := Path.from_text(arg):resolved() dependencies := get_dependency_graph(File(path)) draw_tree(File(path), dependencies) else if arg:matches($/{id}/): -- cgit v1.2.3