Fix type lookup for built-in values
This commit is contained in:
parent
ee692b360e
commit
1819c7e646
@ -120,6 +120,7 @@ impl Context {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for built_in_value in all_built_in_values() {
|
for built_in_value in all_built_in_values() {
|
||||||
|
println!("{} {}", built_in_value.name(), identifier.inner());
|
||||||
if built_in_value.name() == identifier.inner().as_ref() {
|
if built_in_value.name() == identifier.inner().as_ref() {
|
||||||
return Ok(Some(built_in_value.get().clone()));
|
return Ok(Some(built_in_value.get().clone()));
|
||||||
}
|
}
|
||||||
@ -141,6 +142,12 @@ impl Context {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for built_in_value in all_built_in_values() {
|
||||||
|
if built_in_value.name() == identifier.inner().as_ref() {
|
||||||
|
return Ok(Some(built_in_value.get().r#type()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Ok(None)
|
Ok(None)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user