Only map to expressions for constants.
This commit is contained in:
parent
dd36f3387a
commit
b87dc1b281
@ -73,13 +73,13 @@ impl<'a> Scope<'a> {
|
|||||||
let value = value.into_dynamic();
|
let value = value.into_dynamic();
|
||||||
|
|
||||||
// Map into constant expressions
|
// Map into constant expressions
|
||||||
let (expr, value) = map_dynamic_to_expr(value);
|
//let (expr, value) = map_dynamic_to_expr(value);
|
||||||
|
|
||||||
self.0.push(ScopeEntry {
|
self.0.push(ScopeEntry {
|
||||||
name: name.into(),
|
name: name.into(),
|
||||||
var_type: VariableType::Normal,
|
var_type: VariableType::Normal,
|
||||||
value,
|
value,
|
||||||
expr,
|
expr: None,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,13 +110,13 @@ impl<'a> Scope<'a> {
|
|||||||
var_type: VariableType,
|
var_type: VariableType,
|
||||||
value: Dynamic,
|
value: Dynamic,
|
||||||
) {
|
) {
|
||||||
let (expr, value) = map_dynamic_to_expr(value);
|
//let (expr, value) = map_dynamic_to_expr(value);
|
||||||
|
|
||||||
self.0.push(ScopeEntry {
|
self.0.push(ScopeEntry {
|
||||||
name: name.into(),
|
name: name.into(),
|
||||||
var_type,
|
var_type,
|
||||||
value,
|
value,
|
||||||
expr,
|
expr: None,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user