4 public function __construct($attributes, $children, $file=null, $line=null) {
5 $assert = function($cond) {
7 throw new Exception('fail');
10 $assert(is_array($attributes));
11 $assert(is_array($children));
12 $assert($file === __FILE__
);
13 $assert($line === $attributes['line']);
17 <xhp line
={__LINE__
} />;
18 <xhp line
={__LINE__
}>text
</xhp
>;
19 <xhp line
={__LINE__
} some
-attr
="value" />;
20 <xhp line
={__LINE__
} attr1
="one" a2
={2}>text
</xhp
>;