Files
sdk/pkg/front_end/test/predicates/data/extension.dart
T
Johnni Winther 3d19493f2d [cfe] Add flag to identify lowered locals
+ add predicate helpers to identify these and extract their
original names.

TEST=pkg/front_end/test/predicates/predicate_test.dart

Change-Id: I4d94c575d010b6b01c985eaf5392b9e0e979d044
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/175250
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2020-12-08 14:53:14 +00:00

18 lines
530 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.
extension Extension on int {
int /*extensionThis*/ instanceMethod() => this;
int get /*extensionThis*/ instanceGetter => this;
void set /*extensionThis*/ instanceSetter(int value) {}
static int staticMethod() => 42;
static int get staticGetter => 42;
static void set staticSetter(int value) {}
}