Sign up (with export icon)

core/errorattribution/liveeditors

Api-module iconmodule

Functions

  • Chevron-right icon

    _addLiveContext( context ) → void
    internal

    Adds a context to the list of the ones error attribution may be asked about.

    Adding one twice registers it once, the way adding to a set does. Removal takes one entry, so a second registration would outlive the removal on destroy and a destroyed context would keep being named.

    Parameters

    context: Context

    Returns

    void
  • Chevron-right icon

    _addLiveEditor( editor ) → void
    internal

    Adds an editor to the list of the ones error attribution may be asked about.

    Parameters

    editor: Editor

    Returns

    void
  • Chevron-right icon

    _getLiveContexts() → Iterable<Context>
    internal

    The contexts error attribution may be asked about, in the order they were created.

    Returns

    Iterable<Context>
  • Chevron-right icon

    _getLiveEditors() → Iterable<Editor>
    internal

    The editors error attribution may be asked about, in the order they became ready.

    References whose editor has been collected are dropped on the way through. That is the only cleanup there is, and it is enough: the list is read whenever an error is reported, and an entry left behind until then costs one dead reference.

    Returns

    Iterable<Editor>
  • Chevron-right icon

    _isLiveContext( context ) → boolean
    internal

    Whether the context is one of those attribution may name.

    Parameters

    context: unknown

    Returns

    boolean
  • Chevron-right icon

    _removeLiveContext( context ) → void
    internal

    Removes a context from the list of the ones error attribution may be asked about.

    Parameters

    context: Context

    Returns

    void
  • Chevron-right icon

    _removeLiveEditor( editor ) → void
    internal

    Removes an editor from the list of the ones error attribution may be asked about.

    Parameters

    editor: Editor

    Returns

    void