mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
wip
This commit is contained in:
@@ -145,25 +145,25 @@ impl std::fmt::Display for FnMeta {
|
||||
|
||||
writeln!(
|
||||
f,
|
||||
" name: {},",
|
||||
" name: {},",
|
||||
serde_json::to_string(&self.name).expect("Failed json serialization")
|
||||
)?;
|
||||
|
||||
match &self.content_hashable {
|
||||
ContentHashable::Empty => {}
|
||||
ContentHashable::Src(src_hash, deps) => {
|
||||
writeln!(f, " srcHash: {},", src_hash)?;
|
||||
writeln!(f, " srcHash: {},", src_hash)?;
|
||||
|
||||
writeln!(
|
||||
f,
|
||||
" deps: {},",
|
||||
" deps: {},",
|
||||
Array {
|
||||
values: deps.clone()
|
||||
}
|
||||
)?;
|
||||
}
|
||||
ContentHashable::Content(content_hash) => {
|
||||
writeln!(f, " contentHash: {},", content_hash)?;
|
||||
writeln!(f, " contentHash: {},", content_hash)?;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -527,7 +527,7 @@ fn update_metadata(
|
||||
}
|
||||
}
|
||||
_ => {
|
||||
panic!("Expected sub_dep to be pointer or builtin")
|
||||
panic!("Expected sub_dep to be pointer or builtin ({})", sub_dep)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2017,7 +2017,7 @@ impl ScopeAnalysis {
|
||||
for (_span, ref_) in self.refs.range(start..end) {
|
||||
let name = self.names.get(&ref_.name_id).unwrap();
|
||||
|
||||
if let Value::Undefined | Value::Register(_) = &name.value {
|
||||
if let Value::Register(_) = &name.value {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user