core/errorattribution/liveeditors
Functions
_addLiveContext( context ) → voidinternalmodule:core/errorattribution/liveeditors~_addLiveContextAdds 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
_addLiveEditor( editor ) → voidinternalmodule:core/errorattribution/liveeditors~_addLiveEditorAdds an editor to the list of the ones error attribution may be asked about.
Parameters
editor: Editor
Returns
void
_getLiveContexts() → Iterable<Context>internalmodule:core/errorattribution/liveeditors~_getLiveContextsThe contexts error attribution may be asked about, in the order they were created.
Returns
Iterable<Context>
_getLiveEditors() → Iterable<Editor>internalmodule:core/errorattribution/liveeditors~_getLiveEditorsThe 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>
_isLiveContext( context ) → booleaninternalmodule:core/errorattribution/liveeditors~_isLiveContextWhether the context is one of those attribution may name.
Parameters
context: unknown
Returns
boolean
_removeLiveContext( context ) → voidinternalmodule:core/errorattribution/liveeditors~_removeLiveContextRemoves a context from the list of the ones error attribution may be asked about.
Parameters
context: Context
Returns
void
_removeLiveEditor( editor ) → voidinternalmodule:core/errorattribution/liveeditors~_removeLiveEditorRemoves an editor from the list of the ones error attribution may be asked about.
Parameters
editor: Editor
Returns
void