import Scanner from '../scanner' ; import { ENDPartialStatement , ParsedTag } from '../ast' ; import { getAttributes , tagName } from './utils' ; import { tagBody } from '../tag' ; const prefix = 'partial:' ; param scanner param openTag export default function partialStatement ( scanner , openTag ) { tagBody ( scanner , openTag ) ; return { type : 'ENDPartialStatement' , id : tagName ( openTag ) . slice ( prefix . length ) , params : getAttributes ( openTag ) , ... scanner . loc ( openTag . start ) } ; }