6efce3b407
Requires making caches use references instead of TreeNodes, and classes are revisited if needed due to deserializing another module. Extensions are stored in a library to extensions map so they can be invalidated easier. Modular tests are added. Change-Id: Ic33e1190f02f201591616d988de6cc6c8ddad89d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/263540 Reviewed-by: Sigmund Cherem <sigmund@google.com> Reviewed-by: Riley Porter <rileyporter@google.com>
25 lines
580 B
Dart
25 lines
580 B
Dart
// Copyright (c) 2022, 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.
|
|
|
|
library export;
|
|
|
|
import 'package:js/js.dart';
|
|
|
|
import 'mock.dart';
|
|
|
|
@JSExport()
|
|
class DartClass {
|
|
String field = '';
|
|
final String finalField = '';
|
|
String get getSet => '';
|
|
set getSet(String val) {}
|
|
@JSExport('method')
|
|
String renamedMethod() => '';
|
|
}
|
|
|
|
extension on StaticInterop {
|
|
// Different implementation for same field.
|
|
external bool field;
|
|
}
|