Repository navigation
refactor: Prepare for including a NS with Ident - #1074
Conversation
This adds an additional Struct while we move over; so we don't need to do one huge PR. ref #1031 I'm adding this to the semantic branch to avoid future merge conflicts, even though I'm not a great fan of abandoning main (I also wanted to do _something_ this weekend and wasn't making enough progress with the "onboarding" issues, so chose this)
aljazerzen
left a comment
There was a problem hiding this comment.
Nice integration with current ident handling and well prepared for improved ident parsing.
| #[derive(Debug, PartialEq, Eq, Clone, Serialize, Deserialize)] | ||
| pub struct IdentWithNamespace { | ||
| pub namespace: Option<String>, | ||
| pub ident: Ident, |
There was a problem hiding this comment.
I think we need a better name for this. Ident is the whole node, an identifier, while this field is the specific name in a namespace. I used "variable name" or "var_name", but I'm open to suggestions.
There was a problem hiding this comment.
Yes agree. var_name is fine; how about just var?
| /// A name. Generally columns, tables, functions, variables. | ||
| pub type Ident = String; |
There was a problem hiding this comment.
I believe that this can be fully replaced by IdentWithNamespace. Because all idents can have namespace, right?
There was a problem hiding this comment.
Yes, my plan was to move it incrementally; then probably rename IdentWithNamespace back to Ident. I wanted to do the closest thing first, so we didn't get conflicts etc. (But maybe it's not that hard and we could do it in one fell swoop...)
There was a problem hiding this comment.
That's my philosophy on semantic branch - just do it in one fell swoop :D
There was a problem hiding this comment.
Ha! We are so aligned on so many dimensions; "average PR size" is the outlier!
|
Merging to ensure we don't get more conflicts — will continue iterating on it! |
This adds an additional Struct while we move over; so we don't need to do one huge PR with the merge conflicts that entails
ref #1031
I'm adding this to the semantic branch to avoid future merge conflicts, even though I'm not a great fan of abandoning main (I also wanted to do something this weekend and wasn't making enough progress with the "onboarding" issues, so chose this)
While they both exist, the only tax is some
.into()calls