Skip to content

plugins: Autogeneration of Reflectable; Inheritance lint - #4173

Closed
Manishearth wants to merge 7 commits into
servo:masterfrom
Manishearth:a-more-dom-struct
Closed

Manishearth wants to merge 7 commits into
servo:masterfrom
Manishearth:a-more-dom-struct

Conversation

@Manishearth

Copy link
Copy Markdown
Member

Now #[dom_struct] also generates Reflectable impls, and there's another lint to ensure that a DOM struct only contains one bare DOM field (as the first field) or a Reflector.

A lot of this was generated by sed -- each autogenerated change has its own commit for easy review; these will be squashed later.

@hoppipolla-critic-bot

Copy link
Copy Markdown

Critic review: https://critic.hoppipolla.co.uk/r/3339

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@jdm jdm added the S-awaiting-review There is new code that needs to be reviewed. label Dec 2, 2014
@Manishearth

Copy link
Copy Markdown
Member Author

@kmcallister r?

@Manishearth
Manishearth force-pushed the a-more-dom-struct branch 2 times, most recently from 88b4ec6 to 446af3f Compare December 10, 2014 03:32
@jdm jdm added the S-needs-rebase There are merge conflict errors. label Dec 17, 2014
@jdm

jdm commented Dec 17, 2014

Copy link
Copy Markdown
Member

Still waiting on @kmcallister to review the new commits since the original review.

@jdm jdm removed the S-needs-rebase There are merge conflict errors. label Dec 18, 2014
@jdm jdm added the S-needs-rebase There are merge conflict errors. label Dec 19, 2014
Obtained via:

 `find . -maxdepth 1 -type f -print0 | xargs -0 sed -z -i "s/\\nimpl Reflectable for[^{]*{[^}]*}[^}]*}\\n//"`
 `find . -maxdepth 1 -type f -print0 |xargs -0  grep -lZ dom_struct | xargs -0 grep -LZ  "reflector()\\|Reflector::new" |xargs -0 sed -z -i "s/use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};/use dom::bindings::utils::reflect_dom_object;/"`

followed by semi-automated removal of leftover imports
Command: `find . -maxdepth 1 -type f -print0 | xargs -0 sed -z -i "s/}\\n\\n\\n/}\\n\\n/"`
bors-servo pushed a commit that referenced this pull request Dec 26, 2014
Now `#[dom_struct]` also generates Reflectable impls, and there's another lint to ensure that a DOM struct only contains one bare DOM field (as the first field) or a Reflector.

A lot of this was generated by sed -- each autogenerated change has its own commit for easy review; these will be squashed later.
bors-servo pushed a commit that referenced this pull request Dec 26, 2014
Now `#[dom_struct]` also generates Reflectable impls, and there's another lint to ensure that a DOM struct only contains one bare DOM field (as the first field) or a Reflector.

A lot of this was generated by sed -- each autogenerated change has its own commit for easy review; these will be squashed later.
@Manishearth
Manishearth force-pushed the a-more-dom-struct branch 2 times, most recently from 6f3ac1f to 50c246b Compare December 26, 2014 21:58
bors-servo pushed a commit that referenced this pull request Dec 28, 2014
Now `#[dom_struct]` also generates Reflectable impls, and there's another lint to ensure that a DOM struct only contains one bare DOM field (as the first field) or a Reflector.

A lot of this was generated by sed -- each autogenerated change has its own commit for easy review; these will be squashed later.
bors-servo pushed a commit that referenced this pull request Dec 28, 2014
Now `#[dom_struct]` also generates Reflectable impls, and there's another lint to ensure that a DOM struct only contains one bare DOM field (as the first field) or a Reflector.

A lot of this was generated by sed -- each autogenerated change has its own commit for easy review; these will be squashed later.
@bors-servo bors-servo closed this Dec 28, 2014
@Manishearth
Manishearth deleted the a-more-dom-struct branch March 24, 2015 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed. S-needs-rebase There are merge conflict errors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants