$nodes * @param array $calls * @param array $annotationCalls 批注占位符下标 => 调用(只有点标记;markdown 输出替换源码里的占位符用) */ public function __construct( public array $nodes, public bool $inline, public string $source, public array $calls, public Scope $scope, public bool $fragment = false, public array $annotationCalls = [], ) {} public static function empty(Scope $scope): self { return new self([], true, '', [], $scope); } public function isEmpty(): bool { return $this->nodes === []; } }