Refactor: Rename map to record
This commit renames `Map` to `Record` and updates all related AST nodes, binders, type checkers, and runtime values to reflect this change. This is a semantic change to better align with common programming language terminology.
This commit is contained in:
@@ -108,12 +108,12 @@ impl TCO {
|
||||
..node
|
||||
}
|
||||
},
|
||||
BoundKind::Map { entries } => {
|
||||
let new_entries = entries.into_iter().map(|(k, v)| {
|
||||
BoundKind::Record { fields } => {
|
||||
let new_fields = fields.into_iter().map(|(k, v)| {
|
||||
(Self::transform(k, false), Self::transform(v, false))
|
||||
}).collect();
|
||||
Node {
|
||||
kind: BoundKind::Map { entries: new_entries },
|
||||
kind: BoundKind::Record { fields: new_fields },
|
||||
..node
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user