Skip to content

CDDL definitions are not exported, but I get a warning about them #3170

@domenic

Description

@domenic

Repro steps: clone https://github.com/WICG/nav-speculation/blob/49f77f382eb709289b4baf1b66d22bd73e4c3eae/prefetch.bs and run bikeshed spec prefetch.bs.

I get various warnings like

LINT: Unexported dfn that's not referenced locally - did you mean to export it?
<dfn data-lt='method|"method"' data-dfn-type="cddl-key" data-dfn-for="speculation.PrefetchStatusUpdated" id="cddl-key-speculationprefetchstatusupdated-method" data-noexport="by-default" class="dfn-paneled"><code class="highlight"><c- s=""><c- nc="">method</c-></c-></code></dfn>

These come from the source code

<pre highlight="cddl" class="cddl" data-cddl-module="local-cddl">
SpeculationEvent = (
  speculation.PrefetchStatusUpdated
)
</pre>

I tried inserting an export attribute on the <pre> but that didn't seem to help.

I feel like either:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions