File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 1
1
* .rs.bk
2
+ [._ ]* .sw [a-p ]
2
3
Cargo.lock
3
4
target
4
5
tests /
Original file line number Diff line number Diff line change @@ -239,6 +239,9 @@ pub struct ClusterInfo {
239
239
#[ derive( Clone , Debug ) ]
240
240
pub struct RegisterInfo {
241
241
pub name : String ,
242
+ pub alternate_group : Option < String > ,
243
+ pub alternate_register : Option < String > ,
244
+ pub derived_from : Option < String > ,
242
245
pub description : String ,
243
246
pub address_offset : u32 ,
244
247
pub size : Option < u32 > ,
@@ -351,6 +354,9 @@ impl RegisterInfo {
351
354
fn parse ( tree : & Element ) -> RegisterInfo {
352
355
RegisterInfo {
353
356
name : try!( tree. get_child_text ( "name" ) ) ,
357
+ alternate_group : tree. get_child_text ( "alternateGroup" ) ,
358
+ alternate_register : tree. get_child_text ( "alternateRegister" ) ,
359
+ derived_from : tree. attributes . get ( "derivedFrom" ) . map ( |s| s. to_owned ( ) ) ,
354
360
description : try!( tree. get_child_text ( "description" ) ) ,
355
361
address_offset : {
356
362
try!( parse:: u32 ( try!( tree. get_child ( "addressOffset" ) ) ) )
You can’t perform that action at this time.
0 commit comments