IMPORT_OF_NON_LIBRARY constant

CompileTimeErrorCode const IMPORT_OF_NON_LIBRARY

14.1 Imports: It is a compile-time error if the specified URI of an immediate import does not refer to a library declaration.

Parameters: 0: the uri pointing to a non-library declaration

Implementation

static const CompileTimeErrorCode IMPORT_OF_NON_LIBRARY =
    CompileTimeErrorCode('IMPORT_OF_NON_LIBRARY',
        "The imported library '{0}' can't have a part-of directive.",
        correction: "Try importing the library that the part is a part of.")