3d5530ff22
By allowing a transformation to tell if it change dthe structure of a class we can make sure to update the class hierarchy accordingly, making sure it's up to date for the next computeDelta call in the incremental compiler. Change-Id: Iefed3bb1ecbd17b142266ce4a9e1e477f9d2fc87 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/133222 Commit-Queue: Jens Johansen <jensj@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
13 lines
547 B
Dart
13 lines
547 B
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.
|
|
|
|
import 'package:kernel/ast.dart' show Class;
|
|
|
|
/// Meant for notifying the backend (the compiler) that the structure has
|
|
/// changed, in turn allowing it to update its internal model.
|
|
abstract class ChangedStructureNotifier {
|
|
/// Mark the class [c] as having changed in that its members have changed.
|
|
void forClass(Class c);
|
|
}
|