Skip to content

Commit 4b03a5d

Browse files
author
nicosammito
committed
refactor: update data type handling to use "type" field syntax in data_type.rs and flow_type.rs
1 parent 060e3ae commit 4b03a5d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

crates/cli/src/analyser/data_type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl Analyser {
4747
));
4848
}
4949

50-
if dt.type == "" {
50+
if dt."type" == "" {
5151
self.reporter.add(Diagnose::new(
5252
dt.identifier.clone(),
5353
adt.original_definition.clone(),

crates/cli/src/analyser/flow_type.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@ impl Analyser {
108108
},
109109
));
110110
}
111-
if !self.data_type_identifier_exists(&setting.type, None) {
111+
if !self.data_type_identifier_exists(&setting."type", None) {
112112
self.reporter.add(Diagnose::new(
113113
name.clone(),
114114
original.clone(),
115115
DiagnosticKind::UndefinedDataTypeIdentifier {
116-
identifier: setting.type.clone(),
116+
identifier: setting."type".clone(),
117117
},
118118
));
119119
}

0 commit comments

Comments
 (0)