public function addLeadingDetachedComments($value)
    {
        if ($this->leading_detached_comments === null) {
            $this->leading_detached_comments = new \Protobuf\ScalarCollection();
        }

        $this->leading_detached_comments->add($value);
    }