Adding TODO

pull/454/head
Wilfred Hughes 2023-01-08 22:06:58 +07:00
parent fbe79aa408
commit 29d87a6ac4
1 changed files with 2 additions and 0 deletions

@ -51,6 +51,8 @@ use Edge::*;
pub struct Vertex<'a, 'b> {
pub neighbours: RefCell<Option<Vec<(Edge, &'b Vertex<'a, 'b>)>>>,
pub predecessor: Cell<Option<(u32, &'b Vertex<'a, 'b>)>>,
// 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<EnteredDelimiter<'a>>,