diff --git a/.gitignore b/.gitignore index 5f2428af..89454b8e 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ __pycache__ .*sw* .vscode .idea/ +.venv/ flame-graph.html flame.txt diff --git a/ast/src/ranged.rs b/ast/src/ranged.rs index b20d7114..560e14c5 100644 --- a/ast/src/ranged.rs +++ b/ast/src/ranged.rs @@ -14,6 +14,12 @@ pub trait Ranged { } } +impl Ranged for TextRange { + fn range(&self) -> TextRange { + *self + } +} + impl Ranged for &T where T: Ranged,