Add length to ast nodes