Lines Matching refs:entity
129 pub fn location(&self, entity: AnyEntity) -> Option<Location> { in location()
130 self.locations.get(&entity).cloned() in location()
143 pub fn def_value(&mut self, entity: Value, loc: Location) -> ParseResult<()> { in def_value()
144 self.def_entity(entity.into(), loc) in def_value()
148 pub fn def_block(&mut self, entity: Block, loc: Location) -> ParseResult<()> { in def_block()
149 self.def_entity(entity.into(), loc) in def_block()
153 pub fn def_ss(&mut self, entity: StackSlot, loc: Location) -> ParseResult<()> { in def_ss()
154 self.def_entity(entity.into(), loc) in def_ss()
158 pub fn def_dss(&mut self, entity: DynamicStackSlot, loc: Location) -> ParseResult<()> { in def_dss()
159 self.def_entity(entity.into(), loc) in def_dss()
163 pub fn def_dt(&mut self, entity: DynamicType, loc: Location) -> ParseResult<()> { in def_dt()
164 self.def_entity(entity.into(), loc) in def_dt()
168 pub fn def_gv(&mut self, entity: GlobalValue, loc: Location) -> ParseResult<()> { in def_gv()
169 self.def_entity(entity.into(), loc) in def_gv()
173 pub fn def_sig(&mut self, entity: SigRef, loc: Location) -> ParseResult<()> { in def_sig()
174 self.def_entity(entity.into(), loc) in def_sig()
178 pub fn def_fn(&mut self, entity: FuncRef, loc: Location) -> ParseResult<()> { in def_fn()
179 self.def_entity(entity.into(), loc) in def_fn()
183 pub fn def_jt(&mut self, entity: JumpTable, loc: Location) -> ParseResult<()> { in def_jt()
184 self.def_entity(entity.into(), loc) in def_jt()
188 pub fn def_constant(&mut self, entity: Constant, loc: Location) -> ParseResult<()> { in def_constant()
189 self.def_entity(entity.into(), loc) in def_constant()
194 pub fn def_entity(&mut self, entity: AnyEntity, loc: Location) -> ParseResult<()> { in def_entity()
195 if self.locations.insert(entity, loc).is_some() { in def_entity()
196 err!(loc, "duplicate entity: {}", entity) in def_entity()