Files
sdk/pkg/front_end/testcases/incremental/flutter_widget_transform.yaml
T
Johnni Winther 54ae35250c [cfe] Use explicit language version in incremental test
This prepares for the expiration of the extension-method, non-nullable,
and nonfunction-type-aliases experiments in
https://dart-review.googlesource.com/c/sdk/+/211443

Included in the CL is a fix to isExperimentEnabled,
isExperimentEnabledInLibrary, and isExperimentEnabledInLibraryByVersion
method, so that these don't overwrite enabled/disabled experiments
with the default value when flags are expired, which would otherwise
disallow library from opting out of features using its language version.

Change-Id: Ib9668afcecc2247dd54d885d4a551638d6e7d59d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211900
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-08-31 10:38:38 +00:00

70 lines
2.0 KiB
YAML

# 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.md file.
type: newworld
target: DDC
trackWidgetCreation: true
worlds:
- entry: main.dart
sources:
main.dart: |
// @dart=2.9
import 'package:flutter/src/widgets/framework.dart';
import 'package:flutter/src/widgets/widget_inspector.dart';
class Foo extends Widget {}
flutter/lib/src/widgets/framework.dart: |
// @dart=2.9
abstract class Bar {}
abstract class Widget extends Bar {}
flutter/lib/src/widgets/widget_inspector.dart: |
// @dart=2.9
abstract class _HasCreationLocation {
_Location get _location;
}
/// A tuple with file, line, and column number, for displaying human-readable
/// file locations.
class _Location {
const _Location({
this.file,
this.line,
this.column,
this.name,
this.parameterLocations,
});
/// File path of the location.
final String file;
/// 1-based line number.
final int line;
/// 1-based column number.
final int column;
/// Optional name of the parameter or function at this location.
final String name;
/// Optional locations of the parameters of the member at this location.
final List<_Location> parameterLocations;
}
.packages: |
flutter:flutter/lib
expectedLibraryCount: 3
- entry: main.dart
worldType: updated
invalidate:
- main.dart
expectInitializeFromDill: false
sources:
main.dart: |
// @dart=2.9
import 'package:flutter/src/widgets/framework.dart';
import 'package:flutter/src/widgets/widget_inspector.dart';
class Foo extends Widget {}
expectedLibraryCount: 3