-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nested derive #202
nested derive #202
Conversation
cc @Emilgardis |
svd-parser/src/expand.rs
Outdated
@@ -8,98 +8,152 @@ use svd_rs::{ | |||
Device, EnumeratedValues, Field, Peripheral, Register, RegisterCluster, RegisterProperties, | |||
}; | |||
|
|||
#[derive(Clone, Debug, PartialEq, Hash, Eq)] | |||
pub struct RPath { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's ok to have these have a longer name
pub struct RPath { | |
pub struct RegisterPath { |
keeping it is fine too though, it may just be unclear for someone not familiar with how this works and looking here first time
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
svd-parser/src/expand.rs
Outdated
} | ||
|
||
#[derive(Clone, Debug, PartialEq, Hash, Eq)] | ||
pub struct FPath { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pub struct FPath { | |
pub struct FieldPath { |
svd-parser/src/expand.rs
Outdated
#[derive(Clone, Debug, PartialEq, Hash, Eq)] | ||
pub struct FPath { | ||
register: RPath, | ||
field: String, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
field: String, | |
ident: String, |
or
field: String, | |
name: String, |
Now it should look much cleaner |
cc @Emilgardis |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mb! thought I r+ ed this earlier!
bors r+
Build succeeded: |
No description provided.