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:
@@ -73,10 +73,10 @@ fn character_editor_view<'a>(editor: &'a Editor, char_name: &str) -> Element<'a,
|
||||
// Show all fields with soft metadata styling
|
||||
for (field_name, field_value) in &char.fields {
|
||||
let value_text = match field_value {
|
||||
| Value::Int(n) => format!("{}", n),
|
||||
| Value::Float(n) => format!("{}", n),
|
||||
| Value::String(s) => s.clone(),
|
||||
| Value::Bool(b) => format!("{}", b),
|
||||
| Value::Number(n) => format!("{}", n),
|
||||
| Value::Decimal(n) => format!("{}", n),
|
||||
| Value::Text(s) => s.clone(),
|
||||
| Value::Boolean(b) => format!("{}", b),
|
||||
| Value::List(items) => {
|
||||
format!("[{} items]", items.len())
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user