@@ -46,7 +46,7 @@ class DiagnosticFactory {
4646 /// Return a diagnostic indicating that [duplicateElement] reuses a name
4747 /// already used by [originalElement] .
4848 AnalysisError duplicateDefinition (
49- ErrorCode code,
49+ DiagnosticCode code,
5050 Element duplicateElement,
5151 Element originalElement,
5252 List <Object > arguments,
@@ -77,7 +77,7 @@ class DiagnosticFactory {
7777 /// already used by [originalNode] .
7878 AnalysisError duplicateDefinitionForNodes (
7979 Source source,
80- ErrorCode code,
80+ DiagnosticCode code,
8181 SyntacticEntity duplicateNode,
8282 SyntacticEntity originalNode,
8383 List <Object > arguments,
@@ -314,7 +314,7 @@ class DiagnosticFactory {
314314 /// [superMember] .
315315 AnalysisError invalidOverride (
316316 Source source,
317- ErrorCode errorCode ,
317+ DiagnosticCode code ,
318318 SyntacticEntity errorNode,
319319 ExecutableElement member,
320320 ExecutableElement superMember,
@@ -328,7 +328,7 @@ class DiagnosticFactory {
328328 source: source,
329329 offset: errorNode.offset,
330330 length: errorNode.length,
331- errorCode: errorCode ,
331+ errorCode: code ,
332332 arguments: [
333333 memberName,
334334 member.enclosingElement2! .name3,
@@ -342,15 +342,15 @@ class DiagnosticFactory {
342342 // INVALID_IMPLEMENTATION_OVERRIDE may provide the subclass as superMember
343343 // if the subclass has an abstract member and the superclass has the
344344 // concrete).
345- if (errorCode == CompileTimeErrorCode .INVALID_OVERRIDE )
345+ if (code == CompileTimeErrorCode .INVALID_OVERRIDE )
346346 DiagnosticMessageImpl (
347347 filePath: superFragment.libraryFragment! .source.fullName,
348348 message: "The member being overridden." ,
349349 offset: superFragment.nameOffset2 ?? - 1 ,
350350 length: superFragment.name2! .length,
351351 url: null ,
352352 ),
353- if (errorCode == CompileTimeErrorCode .INVALID_OVERRIDE_SETTER )
353+ if (code == CompileTimeErrorCode .INVALID_OVERRIDE_SETTER )
354354 DiagnosticMessageImpl (
355355 filePath: superFragment.libraryFragment! .source.fullName,
356356 message: "The setter being overridden." ,
0 commit comments