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: parser_interface.go
    path of file: ./repos/macdriver/generate/declparse
    
    the code of the file until where you have to start completion: package declparse

import (
	"github.com/progrium/macdriver/generate/declparse/keywords"
	"github.com/progrium/macdriver/generate/declparse/lexer"
)

func parseInterface(p *Parser) (next stateFn, node Node, err error) {
	decl := &InterfaceDecl{}

	if err := p.expectToken(keywords.INTERFACE); err != nil {
		return nil, nil, err
	}

	decl.Name, err = p.expectIdent()
	if err != nil {
		return nil, nil, err
	}

	// type params
	if tok, _, _ := p.tb.Scan(); tok == lexer.LT {
		p.tb.OneRuneOperators(true)

		for {
			typ, err := p.expectType(false)
			if err != nil {
				return nil, nil, err
			}
			decl.Params = append(decl.Params, *typ)

			if tok, _, _ := p.tb.Scan(); tok != lexer.COMMA {
				p.tb
    
func parseInterface(p *Parser) (next stateFn, node Node, err error) {
	decl := &InterfaceDecl{}

	if err := p.expectToken(keywords.INTERFACE); err != nil {
		return nil, nil, err
	}

	decl.Name, err = p.expectIdent()
	if err != nil {
		return nil, nil, err
	}

	// type params
	if tok, _, _ := p.tb.Scan(); tok == lexer.LT {
		p.tb.OneRuneOperators(true)

		for {
			typ, err := p.expectType(false)
			if err != nil {
				return nil, nil, err
			}
			decl.Params = append(decl.Params, *typ)

			if tok, _, _ := p.tb.Scan(); tok != lexer.COMMA {
				p.tb.Unscan()
				break
			}
		}

		if err := p.expectToken(lexer.GT); err != nil {
			return nil, nil, err
		}

		p.tb.OneRuneOperators(false)
	} else {
		p.tb.Unscan()
	}

	if tok, _, _ := p.tb.Scan(); tok == lexer.COLON {
		if decl.SuperName, err = p.expectIdent(); err != nil {
			return nil, nil, err
		}
	} else {
		p.tb.Unscan()
	}

	return nil, decl, nil
}