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();
|
||||
|
||||
// Map into constant expressions
|
||||
let (expr, value) = map_dynamic_to_expr(value);
|
||||
//let (expr, value) = map_dynamic_to_expr(value);
|
||||
|
||||
self.0.push(ScopeEntry {
|
||||
name: name.into(),
|
||||
var_type: VariableType::Normal,
|
||||
value,
|
||||
expr,
|
||||
expr: None,
|
||||
});
|
||||
}
|
||||
|
||||
@ -110,13 +110,13 @@ impl<'a> Scope<'a> {
|
||||
var_type: VariableType,
|
||||
value: Dynamic,
|
||||
) {
|
||||
let (expr, value) = map_dynamic_to_expr(value);
|
||||
//let (expr, value) = map_dynamic_to_expr(value);
|
||||
|
||||
self.0.push(ScopeEntry {
|
||||
name: name.into(),
|
||||
var_type,
|
||||
value,
|
||||
expr,
|
||||
expr: None,
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user