CompileTimeErrorCode constructor

const CompileTimeErrorCode(
  1. String name,
  2. String message,
  3. {String correction,
  4. bool hasPublishedDocs,
  5. bool isUnresolvedIdentifier: false}
)

Initialize a newly created error code to have the given name. The message associated with the error will be created from the given message template. The correction associated with the error will be created from the given correction template.

Implementation

const CompileTimeErrorCode(String name, String message,
    {String correction,
    bool hasPublishedDocs,
    bool isUnresolvedIdentifier = false})
    : super.temporary(name, message,
          correction: correction,
          hasPublishedDocs: hasPublishedDocs,
          isUnresolvedIdentifier: isUnresolvedIdentifier);