pub fn register_syntax_extension(&mut self, name: ast::Name, extension: SyntaxExtension) {
        self.syntax_exts.push((name, match extension {
            NormalTT(ext, _, allow_internal_unstable) => {
                NormalTT(ext, Some(self.krate_span), allow_internal_unstable)
            }
            IdentTT(ext, _, allow_internal_unstable) => {
                IdentTT(ext, Some(self.krate_span), allow_internal_unstable)
            }
            MultiDecorator(ext) => MultiDecorator(ext),
            MultiModifier(ext) => MultiModifier(ext),
            MacroRulesTT => {
                self.sess.err("plugin tried to register a new MacroRulesTT");
                return;
            }
        }));
    }
/// Register a syntax extension of any kind.
///
/// This is the most general hook into `libsyntax`'s expansion behavior.
Register a syntax extension of any kind.
This is the most general hook into `libsyntax`'s expansion behavior.
Register a syntax extension of any kind . This is the most general hook into ` libsyntax ` ' s expansion behavior .
pub fn register_syntax_extension(&mut self, name: ast::Name, extension: SyntaxExtension) {
        self.syntax_exts.push((name, match extension {
            NormalTT(ext, _, allow_internal_unstable) => {
                NormalTT(ext, Some(self.krate_span), allow_internal_unstable)
            }
            IdentTT(ext, _, allow_internal_unstable) => {
                IdentTT(ext, Some(self.krate_span), allow_internal_unstable)
            }
            MultiDecorator(ext) => MultiDecorator(ext),
            MultiModifier(ext) => MultiModifier(ext),
            MacroRulesTT => {
                self.sess.err("plugin tried to register a new MacroRulesTT");
                return;
            }
        }));
    }
pub fn register_syntax_extension ( & mut self , name : ast :: Name , extension : SyntaxExtension ) { self . syntax_exts . push ( ( name , match extension { NormalTT ( ext , _ , allow_internal_unstable ) => { NormalTT ( ext , Some ( self . krate_span ) , allow_internal_unstable ) } IdentTT ( ext , _ , allow_internal_unstable ) => { IdentTT ( ext , Some ( self . krate_span ) , allow_internal_unstable ) } MultiDecorator ( ext ) => MultiDecorator ( ext ) , MultiModifier ( ext ) => MultiModifier ( ext ) , MacroRulesTT => { self . sess . err ( " " ) ; return ; } } ) ) ; }
Register a syntax extension of any kind.
Register a syntax extension of any kind .
&mut self
name
ast::Name
extension
SyntaxExtension
&mut self
name
ast::Name
extension
SyntaxExtension