* Returns the associated ampdoc. Only available after attachment. It throws * exception before the element is attached. * @return {!./service/ampdoc-impl.AmpDoc} * @final * @package
()
| 315 | * @package |
| 316 | */ |
| 317 | getAmpDoc() { |
| 318 | devAssert(this.ampdoc_, 'no ampdoc yet, since element is not attached'); |
| 319 | return /** @type {!./service/ampdoc-impl.AmpDoc} */ (this.ampdoc_); |
| 320 | } |
| 321 | |
| 322 | /** |
| 323 | * Returns Resources manager. Only available after attachment. It throws |
no test coverage detected