diff --git a/src/protocol/ast.rs b/src/protocol/ast.rs index a0b2c384c1a9684c8d213a3c57621a4769c4200a..11be68c6ee6f77771ad26070ee6019a0be8c6bbb 100644 --- a/src/protocol/ast.rs +++ b/src/protocol/ast.rs @@ -242,7 +242,7 @@ pub struct Root { } impl Root { - pub fn get_definition_ident(&self, h: &Heap, id: &[u8]) -> Option { + pub fn get_definition_by_ident(&self, h: &Heap, id: &[u8]) -> Option { for &def in self.definitions.iter() { if h[def].identifier().value.as_bytes() == id { return Some(def);