diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-24 13:26:49 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-24 13:26:49 -0400 |
| commit | 800e386105255c9c4faa9a7051b100a8768a70de (patch) | |
| tree | d1e8b6b221485330b92d225f32c29337d81b6675 /examples | |
| parent | 0609a26f3108148375d4ee2fb3d2d8f9c5756ae7 (diff) | |
Rename `from_unsafe_text` to `without_escaping`
Diffstat (limited to 'examples')
| -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 1cd2ee59..9418ba6f 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.from_unsafe_text(line:replace($/use {..}/, "\1")):resolved(relative_to=file) + file_import := Path.without_escaping(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.from_unsafe_text(arg):resolved() + path := Path.without_escaping(arg):resolved() dependencies := get_dependency_graph(File(path)) draw_tree(File(path), dependencies) else if arg:matches($/{id}/): |
