Rename origin to anchor

This commit is contained in:
Jonathan Turner
2019-09-29 18:13:56 +13:00
parent d52e087453
commit caed87c125
18 changed files with 111 additions and 111 deletions

View File

@ -99,10 +99,10 @@ impl HelpShell {
impl Shell for HelpShell {
fn name(&self, source_map: &SourceMap) -> String {
let origin_name = self.value.origin_name(source_map);
let anchor_name = self.value.anchor_name(source_map);
format!(
"{}",
match origin_name {
match anchor_name {
Some(x) => format!("{{{}}}", x),
None => format!("<{}>", self.value.item.type_name(),),
}

View File

@ -73,10 +73,10 @@ impl ValueShell {
impl Shell for ValueShell {
fn name(&self, source_map: &SourceMap) -> String {
let origin_name = self.value.origin_name(source_map);
let anchor_name = self.value.anchor_name(source_map);
format!(
"{}",
match origin_name {
match anchor_name {
Some(x) => format!("{{{}}}", x),
None => format!("<{}>", self.value.item.type_name(),),
}