From 29d87a6ac477ed8079e48a445534eeeb40851d50 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Sun, 8 Jan 2023 22:06:58 -0800 Subject: [PATCH] Adding TODO --- src/diff/graph.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/diff/graph.rs b/src/diff/graph.rs index b7b9e149b..d17209ccb 100644 --- a/src/diff/graph.rs +++ b/src/diff/graph.rs @@ -51,6 +51,8 @@ use Edge::*; pub struct Vertex<'a, 'b> { pub neighbours: RefCell)>>>, pub predecessor: Cell)>>, + // TODO: experiment with storing SyntaxId only, and have a HashMap + // from SyntaxId to &Syntax. pub lhs_syntax: Option<&'a Syntax<'a>>, pub rhs_syntax: Option<&'a Syntax<'a>>, parents: Stack>,