Files
sdk/pkg/_fe_analyzer_shared/test/inheritance/data/function.dart
T
Paul Berry 9c9ee03755 [messages] Stop including class name in uniqueName.
Modifies the code generation logic that populates the
`DiagnosticCode.uniqueName` field so that it doesn't include the
diagnostic's class name.

This paves the way for removing the last remenants of the diagnostic
classes from the analyzer.

Change-Id: I6a6a696453fe1f2bd8bd3cea00a9a496392fbf98
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/464240
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2025-12-01 15:23:55 -08:00

29 lines
1.2 KiB
Dart

// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/*class: A:A,Object*/
class A
implements /*analyzer.error: FINAL_CLASS_IMPLEMENTED_OUTSIDE_OF_LIBRARY*/
/*cfe|cfe:builder.error: FinalClassImplementedOutsideOfLibrary*/ Function {}
/*class: B:B,Object*/
class B
extends /*analyzer.error: FINAL_CLASS_EXTENDED_OUTSIDE_OF_LIBRARY*/ /*cfe|cfe:builder.error: FinalClassExtendedOutsideOfLibrary*/
Function {}
/*cfe|cfe:builder.class: C:C,Object,_C&Object&Function*/
/*analyzer.class: C:C,Object*/
/*cfe|cfe:builder.class: _C&Object&Function:Object,_C&Object&Function*/
class /*cfe|cfe:builder.error: SubtypeOfFinalIsNotBaseFinalOrSealed*/ C
extends Object
with /*analyzer.error: CLASS_USED_AS_MIXIN*/
/*cfe|cfe:builder.error: CantUseClassAsMixin*/ Function {}
// CFE hides that this is a mixin declaration since its mixed in type has been
// removed.
/*cfe|cfe:builder.class: D:D,Object*/
class D = Object
with /*analyzer.error: CLASS_USED_AS_MIXIN*/ /*cfe|cfe:builder.error: CantUseClassAsMixin*/
Function;