HTAnalysisError.fromError constructor

HTAnalysisError.fromError(
  1. HTError error, {
  2. required String filename,
  3. required int line,
  4. required int column,
  5. int offset = 0,
  6. int length = 0,
  7. List<HTDiagnosticMessage> contextMessages = const [],
})

Implementation

HTAnalysisError.fromError(HTError error,
    {required String filename,
    required int line,
    required int column,
    int offset = 0,
    int length = 0,
    List<HTDiagnosticMessage> contextMessages = const []})
    : this(error.code, error.type,
          message: error.message,
          extra: error.extra,
          correction: error.correction,
          filename: filename,
          line: line,
          column: column,
          contextMessages: contextMessages);