protected function measure_file()
{
$this->profile();
$node = new Lint\Node();
$node->type = T_FILE;
$node->file = $this->file;
$node->parent = $this->file;
$parts = explode('/', $this->file);
$node->name = array_pop($parts);
$node->owner = $this->file;
$node->tokens = array();
$node->depth = 0;
$node = $this->measure(0, $node, $i);
$node->end_line = $this->tokens[$i][2];
$node->length = $node->end_line - $node->start_line;
$node->token_count = count($node->tokens);
$this->profile('measure_file::' . $this->file);
return $node;
}