addToLibrary method Null safety

void addToLibrary(
  1. Declaration declaration
)

Adds a new regular declaration to the surrounding library.

Note that type declarations are not supported.

Implementation

void addToLibrary(Declaration declaration);