b9348c7216
Change-Id: I50a965b8061572af8a5e408b037648b1f7ff2e0b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/413201 Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
50 lines
1.2 KiB
Dart
50 lines
1.2 KiB
Dart
// Copyright (c) 2025, 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.
|
|
|
|
external int get topLevelGetter;
|
|
|
|
external void set topLevelSetter(int value);
|
|
|
|
external void topLevelMethod(int value);
|
|
|
|
class Class {
|
|
external Class(int value);
|
|
|
|
external Class.redirecting(int value);
|
|
|
|
external factory Class.factory(int value);
|
|
|
|
external factory Class.redirectingFactory(int value);
|
|
|
|
external int get instanceGetter;
|
|
|
|
external void set instanceSetter(int value);
|
|
|
|
external void instanceMethod(int value);
|
|
|
|
external Class operator +(Class a);
|
|
|
|
external static int get staticGetter;
|
|
|
|
external static void set staticSetter(int value);
|
|
|
|
external static void staticMethod(int value);
|
|
}
|
|
|
|
extension Extension on Class {
|
|
external int get extensionInstanceGetter;
|
|
|
|
external void set extensionInstanceSetter(int value);
|
|
|
|
external void extensionInstanceMethod(int value);
|
|
|
|
external Class operator -(Class a);
|
|
|
|
external static int get extensionStaticGetter;
|
|
|
|
external static void set extensionStaticSetter(int value);
|
|
|
|
external static void extensionStaticMethod(int value);
|
|
}
|