refactor(ast): rename value types to Number/Decimal/Text/Boolean
Renamed AST value types for v0.3 naming convention: - Value::Int -> Value::Number - Value::Float -> Value::Decimal - Value::String -> Value::Text - Value::Bool -> Value::Boolean - Expr::IntLit -> Expr::NumberLit - Expr::FloatLit -> Expr::DecimalLit - Expr::StringLit -> Expr::TextLit - Expr::BoolLit -> Expr::BooleanLit Updated all references across parser, resolver, validator, LSP, query engine, tests, and editor.
This commit is contained in:
@@ -194,7 +194,7 @@ mod tests {
|
||||
fn make_field(name: &str, value: i64) -> Field {
|
||||
Field {
|
||||
name: name.to_string(),
|
||||
value: Value::Int(value),
|
||||
value: Value::Number(value),
|
||||
span: Span::new(0, 10),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user