diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-12 18:12:53 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-12 18:12:53 -0400 |
| commit | a3c4e0a82d5b56e280cbf72af2ecf5a990b1f577 (patch) | |
| tree | e7b386efbe57d6c922130f56e056d62d8ee012ad /examples/tomodeps/tomodeps.tm | |
| parent | 904917a2bd3b2e03bf2c399b5bc5f5e357d404a2 (diff) | |
Rename `without_escaping()` -> `from_text()`
Diffstat (limited to 'examples/tomodeps/tomodeps.tm')
| -rw-r--r-- | examples/tomodeps/tomodeps.tm | 4 |
1 files changed, 2 insertions, 2 deletions
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}/): |
