mirror of
https://github.com/servo/servo.git
synced 2025-06-08 16:43:28 +00:00
Derive DomObject with a proc macro
This commit is contained in:
parent
1dfdd0bab8
commit
c84cea995b
9 changed files with 92 additions and 91 deletions
|
@ -34,8 +34,6 @@ use syntax::symbol::Symbol;
|
|||
/// Handles the auto-deriving for `#[derive(JSTraceable)]`
|
||||
pub mod jstraceable;
|
||||
pub mod lints;
|
||||
/// Autogenerates implementations of DomObject on DOM structs
|
||||
pub mod reflector;
|
||||
/// Utilities for writing plugins
|
||||
mod utils;
|
||||
|
||||
|
@ -45,10 +43,6 @@ pub fn plugin_registrar(reg: &mut Registry) {
|
|||
Symbol::intern("dom_struct"),
|
||||
MultiModifier(box jstraceable::expand_dom_struct));
|
||||
|
||||
reg.register_syntax_extension(
|
||||
Symbol::intern("_generate_reflector"),
|
||||
MultiDecorator(box reflector::expand_reflector));
|
||||
|
||||
reg.register_late_lint_pass(box lints::unrooted_must_root::UnrootedPass::new());
|
||||
reg.register_late_lint_pass(box lints::privatize::PrivatizePass);
|
||||
reg.register_late_lint_pass(box lints::inheritance_integrity::InheritancePass);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue