You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mod.rs
    path of file: ./repos/boa/core/parser/src/parser/statement/declaration/hoistable/generator_decl
    
    the code of the file until where you have to start completion: #[cfg(test)]
mod tests;

use crate::{
    parser::{
        statement::declaration::hoistable::{parse_callable_declaration, CallableDeclaration},
        AllowAwait, AllowDefault, AllowYield, Cursor, ParseResult, TokenParser,
    },
    source::ReadChar,
};
use boa_ast::{function::Generator, Keyword, Punctua
    
    fn parse(self, cursor: &mut Cursor<R>, interner: &mut Interner) -> ParseResult<Self::Output> {
        cursor.expect(
            (Keyword::Function, false),
            "generator declaration",
            interner,
        )?;
        cursor.expect(Punctuator::Mul, "generator declaration", interner)?;

        let result = parse_callable_declaration(&self, cursor, interner)?;

        Ok(Generator::new(Some(result.0), result.1, result.2, false))
    }