@@ -182,16 +182,12 @@ impl From<&tree::NodeType> for validator::node::NodeType {
182182 path : Some ( ( & node. path ) . into ( ) ) ,
183183 } )
184184 }
185- tree:: NodeType :: YamlReference ( info) => {
186- validator:: node:: NodeType :: YamlReference ( validator:: node:: YamlReference {
187- uri : info. uri . name ( ) . unwrap_or_default ( ) . to_string ( ) ,
188- } )
189- }
190185 tree:: NodeType :: YamlMap => validator:: node:: NodeType :: YamlMap ( ( ) ) ,
191186 tree:: NodeType :: YamlArray => validator:: node:: NodeType :: YamlArray ( ( ) ) ,
192187 tree:: NodeType :: YamlPrimitive ( data) => {
193188 validator:: node:: NodeType :: YamlPrimitive ( data. into ( ) )
194189 }
190+ tree:: NodeType :: ResolvedUri ( uri) => validator:: node:: NodeType :: ResolvedUri ( uri. clone ( ) ) ,
195191 }
196192 }
197193}
@@ -292,7 +288,7 @@ impl From<&data::Class> for validator::data_type::Class {
292288 validator:: data_type:: class:: Kind :: Compound ( compound. into ( ) )
293289 }
294290 data:: Class :: UserDefined ( user_defined) => {
295- validator:: data_type:: class:: Kind :: UserDefinedType ( user_defined. as_ref ( ) . into ( ) )
291+ validator:: data_type:: class:: Kind :: UserDefinedType ( user_defined. into ( ) )
296292 }
297293 data:: Class :: Unresolved => validator:: data_type:: class:: Kind :: UnresolvedType ( ( ) ) ,
298294 } ) ,
@@ -340,10 +336,8 @@ impl From<&data::class::Compound> for i32 {
340336 }
341337}
342338
343- impl From < & extension:: Reference < data:: class:: UserDefinedDefinition > >
344- for validator:: data_type:: UserDefinedType
345- {
346- fn from ( node : & extension:: Reference < data:: class:: UserDefinedDefinition > ) -> Self {
339+ impl From < & extension:: simple:: type_class:: Reference > for validator:: data_type:: UserDefinedType {
340+ fn from ( node : & extension:: simple:: type_class:: Reference ) -> Self {
347341 Self {
348342 uri : node. uri . name ( ) . unwrap_or_default ( ) . to_string ( ) ,
349343 name : node. name . name ( ) . unwrap_or_default ( ) . to_string ( ) ,
@@ -352,10 +346,10 @@ impl From<&extension::Reference<data::class::UserDefinedDefinition>>
352346 }
353347}
354348
355- impl From < & data :: class :: UserDefinedDefinition >
349+ impl From < & extension :: simple :: type_class :: Definition >
356350 for validator:: data_type:: user_defined_type:: Definition
357351{
358- fn from ( node : & data :: class :: UserDefinedDefinition ) -> Self {
352+ fn from ( node : & extension :: simple :: type_class :: Definition ) -> Self {
359353 Self {
360354 structure : node
361355 . structure
@@ -394,24 +388,24 @@ impl From<&data::Variation> for validator::data_type::Variation {
394388 }
395389}
396390
397- impl From < & data :: variation :: UserDefinedDefinition >
391+ impl From < & extension :: simple :: type_variation :: Definition >
398392 for validator:: data_type:: user_defined_variation:: Definition
399393{
400- fn from ( node : & data :: variation :: UserDefinedDefinition ) -> Self {
394+ fn from ( node : & extension :: simple :: type_variation :: Definition ) -> Self {
401395 Self {
402396 base_type : None ,
403397 function_behavior : ( & node. function_behavior ) . into ( ) ,
404398 }
405399 }
406400}
407401
408- impl From < & data :: variation :: FunctionBehavior > for i32 {
409- fn from ( node : & data :: variation :: FunctionBehavior ) -> Self {
402+ impl From < & extension :: simple :: type_variation :: FunctionBehavior > for i32 {
403+ fn from ( node : & extension :: simple :: type_variation :: FunctionBehavior ) -> Self {
410404 match node {
411- data :: variation :: FunctionBehavior :: Inherits => {
405+ extension :: simple :: type_variation :: FunctionBehavior :: Inherits => {
412406 validator:: data_type:: user_defined_variation:: FunctionBehavior :: Inherits
413407 }
414- data :: variation :: FunctionBehavior :: Separate => {
408+ extension :: simple :: type_variation :: FunctionBehavior :: Separate => {
415409 validator:: data_type:: user_defined_variation:: FunctionBehavior :: Separate
416410 }
417411 }
0 commit comments