protected function handleImport(array $token)
{
if ($token['importType'] === 'extends' && count($this->document->children) > 0) {
$this->throwException("extends should be the very first statement in a document, only whitespace can precede it", $token);
}
$node = $this->createNode('import', $token);
$node->importType = $token['importType'];
$node->path = $token['path'];
$node->filter = $token['filter'];
$node->attributes = [];
$node->assignments = [];
$this->current = $node;
}