6e29700e16
Emphasize that the operation is going away, and mark constructor as deprecated. TEST= Refactoring+deprecation only, covered by existing tests. Change-Id: I82aa044cd2cf7bf347b624371399f44bda8f4a07 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/173261 Commit-Queue: Lasse R.H. Nielsen <lrn@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Nate Bosch <nbosch@google.com>
50 lines
857 B
Dart
50 lines
857 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 'dart:async';
|
|
|
|
void main() {}
|
|
|
|
final t = StreamTransformer.fromHandlers(
|
|
handleData: (data, sink) => Future.microtask(() => sink.add(data)),
|
|
handleDone: (sink) => Future.microtask(() => sink.close()));
|
|
|
|
final s1 = [];
|
|
|
|
final s2 = s1?.length;
|
|
|
|
final s3 = new List<int>.filled(2, null);
|
|
|
|
final s4 = () {
|
|
var e = 0;
|
|
switch (e) {
|
|
case 0:
|
|
print('fallthrough');
|
|
case 1:
|
|
case '':
|
|
}
|
|
}();
|
|
|
|
int? s5;
|
|
|
|
final s6 = s5 + 0;
|
|
|
|
List? s7;
|
|
|
|
final s8 = s7[0];
|
|
|
|
final s9 = s7[0] = 0;
|
|
|
|
final s10 = s7.length;
|
|
|
|
final s11 = s7.length = 0;
|
|
|
|
final s12 = -s5;
|
|
|
|
int Function()? s13;
|
|
|
|
final s14 = (s13)();
|
|
|
|
final s15 = throw null;
|