Opt pkg/dev_compiler out of null safety.

Change-Id: I62207a436605480b6981b8b00bf7b88d8589db0f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/166980
Commit-Queue: Leaf Petersen <leafp@google.com>
Reviewed-by: Nicholas Shahan <nshahan@google.com>
This commit is contained in:
Leaf Petersen 2020-10-12 23:25:42 +00:00 committed by commit-bot@chromium.org
parent 8d8f57065d
commit e85bf740ef
108 changed files with 217 additions and 0 deletions

View file

@ -3,6 +3,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/// Command line entry point for Dart Development Compiler (dartdevc), used to /// Command line entry point for Dart Development Compiler (dartdevc), used to
/// compile a collection of dart libraries into a single JS module /// compile a collection of dart libraries into a single JS module

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
// The dev_compiler does not have a publishable public API, instead this is // The dev_compiler does not have a publishable public API, instead this is
// intended for other consumers within the Dart SDK. // intended for other consumers within the Dart SDK.
export 'src/compiler/module_builder.dart' show ModuleFormat, parseModuleFormat; export 'src/compiler/module_builder.dart' show ModuleFormat, parseModuleFormat;

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
// TODO(jmesserly): import from its own package // TODO(jmesserly): import from its own package
import '../js_ast/js_ast.dart'; import '../js_ast/js_ast.dart';
import 'js_names.dart' show TemporaryId; import 'js_names.dart' show TemporaryId;

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'dart:collection'; import 'dart:collection';
import '../js_ast/js_ast.dart'; import '../js_ast/js_ast.dart';

View file

@ -1,4 +1,7 @@
/// An abstraction of the JS types /// An abstraction of the JS types
// @dart = 2.9
abstract class JSType { abstract class JSType {
const JSType(); const JSType();

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import '../js_ast/js_ast.dart'; import '../js_ast/js_ast.dart';
/// Simplify `(args) => (() => { ... })()` to `(args) => { ... }`. /// Simplify `(args) => (() => { ... })()` to `(args) => { ... }`.

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'package:args/args.dart' show ArgParser, ArgResults; import 'package:args/args.dart' show ArgParser, ArgResults;
import 'package:dev_compiler/src/compiler/shared_compiler.dart'; import 'package:dev_compiler/src/compiler/shared_compiler.dart';
import 'package:path/path.dart' as p; import 'package:path/path.dart' as p;

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'dart:async'; import 'dart:async';
import 'dart:io'; import 'dart:io';

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'dart:collection'; import 'dart:collection';
import 'package:meta/meta.dart'; import 'package:meta/meta.dart';

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
// ignore_for_file: slash_for_doc_comments, unnecessary_new // ignore_for_file: slash_for_doc_comments, unnecessary_new
// ignore_for_file: always_declare_return_types, prefer_single_quotes // ignore_for_file: always_declare_return_types, prefer_single_quotes
// ignore_for_file: prefer_collection_literals, omit_local_variable_types // ignore_for_file: prefer_collection_literals, omit_local_variable_types

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
const int $EOF = 0; const int $EOF = 0;
const int $STX = 2; const int $STX = 2;
const int $BS = 8; const int $BS = 8;

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
// ignore_for_file: directives_ordering // ignore_for_file: directives_ordering
library js_ast; library js_ast;

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
// ignore_for_file: slash_for_doc_comments, prefer_single_quotes // ignore_for_file: slash_for_doc_comments, prefer_single_quotes
// ignore_for_file: always_declare_return_types, prefer_final_fields // ignore_for_file: always_declare_return_types, prefer_final_fields
// ignore_for_file: always_require_non_null_named_parameters // ignore_for_file: always_require_non_null_named_parameters

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
const EXPRESSION = 0; const EXPRESSION = 0;
// TODO(nshahan) No longer used for the spread operator. // TODO(nshahan) No longer used for the spread operator.
// All precedence levels need to be updated to be more accurate. // All precedence levels need to be updated to be more accurate.

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
// ignore_for_file: slash_for_doc_comments, unnecessary_const // ignore_for_file: slash_for_doc_comments, unnecessary_const
// ignore_for_file: always_declare_return_types, prefer_single_quotes // ignore_for_file: always_declare_return_types, prefer_single_quotes
// ignore_for_file: prefer_collection_literals, omit_local_variable_types // ignore_for_file: prefer_collection_literals, omit_local_variable_types

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
// ignore_for_file: always_declare_return_types, omit_local_variable_types // ignore_for_file: always_declare_return_types, omit_local_variable_types
import 'package:source_maps/source_maps.dart' hide Printer; import 'package:source_maps/source_maps.dart' hide Printer;

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
// ignore_for_file: slash_for_doc_comments, omit_local_variable_types // ignore_for_file: slash_for_doc_comments, omit_local_variable_types
// ignore_for_file: always_declare_return_types, prefer_collection_literals // ignore_for_file: always_declare_return_types, prefer_collection_literals
// ignore_for_file: prefer_single_quotes, prefer_generic_function_type_aliases // ignore_for_file: prefer_single_quotes, prefer_generic_function_type_aliases

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'dart:async'; import 'dart:async';
import 'dart:convert' show json; import 'dart:convert' show json;
import 'dart:io'; import 'dart:io';

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'dart:collection'; import 'dart:collection';
import 'dart:convert'; import 'dart:convert';
import 'dart:math' show max, min; import 'dart:math' show max, min;

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'package:kernel/kernel.dart'; import 'package:kernel/kernel.dart';
import 'package:kernel/target/targets.dart'; import 'package:kernel/target/targets.dart';

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'dart:async'; import 'dart:async';
import 'package:_fe_analyzer_shared/src/messages/diagnostic_message.dart' import 'package:_fe_analyzer_shared/src/messages/diagnostic_message.dart'

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'dart:async'; import 'dart:async';
import 'dart:convert'; import 'dart:convert';
import 'dart:io'; import 'dart:io';

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'package:kernel/kernel.dart'; import 'package:kernel/kernel.dart';
import 'kernel_helpers.dart'; import 'kernel_helpers.dart';

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'package:kernel/class_hierarchy.dart'; import 'package:kernel/class_hierarchy.dart';
import 'package:kernel/core_types.dart'; import 'package:kernel/core_types.dart';
import 'package:kernel/kernel.dart'; import 'package:kernel/kernel.dart';

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'dart:collection'; import 'dart:collection';
import 'package:front_end/src/api_unstable/ddc.dart'; import 'package:front_end/src/api_unstable/ddc.dart';
import 'package:kernel/core_types.dart'; import 'package:kernel/core_types.dart';

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/// Module metadata format version /// Module metadata format version
/// ///
/// Module reader always creates the current version but is able to read /// Module reader always creates the current version but is able to read

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'dart:collection'; import 'dart:collection';
import 'package:kernel/core_types.dart'; import 'package:kernel/core_types.dart';
import 'package:kernel/kernel.dart'; import 'package:kernel/kernel.dart';

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'dart:collection'; import 'dart:collection';
import 'package:kernel/core_types.dart'; import 'package:kernel/core_types.dart';
import 'package:kernel/kernel.dart'; import 'package:kernel/kernel.dart';

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'dart:collection' show HashMap, HashSet, Queue; import 'dart:collection' show HashMap, HashSet, Queue;
import 'package:kernel/core_types.dart'; import 'package:kernel/core_types.dart';

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'dart:collection'; import 'dart:collection';
import 'dart:core' hide MapEntry; import 'dart:core' hide MapEntry;

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'package:kernel/kernel.dart'; import 'package:kernel/kernel.dart';
import '../compiler/js_names.dart' as js_ast; import '../compiler/js_names.dart' as js_ast;

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'dart:io' show Directory, File; import 'dart:io' show Directory, File;
import 'package:cli_util/cli_util.dart'; import 'package:cli_util/cli_util.dart';

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'dart:async'; import 'dart:async';
import 'dart:convert'; import 'dart:convert';
import 'dart:io' show Directory, File, Platform, Process, stderr, stdout; import 'dart:io' show Directory, File, Platform, Process, stderr, stdout;

View file

@ -1,3 +1,5 @@
// @dart = 2.9
import 'package:dev_compiler/src/js_ast/js_ast.dart'; import 'package:dev_compiler/src/js_ast/js_ast.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/// Test the modular compilation pipeline of ddc. /// Test the modular compilation pipeline of ddc.
/// ///
/// This is a shell that runs multiple tests, one per folder under `data/`. /// This is a shell that runs multiple tests, one per folder under `data/`.

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/// Test the modular compilation pipeline of ddc. /// Test the modular compilation pipeline of ddc.
/// ///
/// This is a shell that runs multiple tests, one per folder under `data/`. /// This is a shell that runs multiple tests, one per folder under `data/`.

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'dart:convert'; import 'dart:convert';
import 'dart:io'; import 'dart:io';

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'dart:async'; import 'dart:async';
import 'dart:io'; import 'dart:io';
import 'package:front_end/src/api_unstable/ddc.dart' as fe; import 'package:front_end/src/api_unstable/ddc.dart' as fe;

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'dart:io'; import 'dart:io';
import 'package:expect/expect.dart'; import 'package:expect/expect.dart';

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'dart:async' show Future; import 'dart:async' show Future;
import 'dart:io'; import 'dart:io';

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
library dev_compiler.test.sourcemap.ddc_common; library dev_compiler.test.sourcemap.ddc_common;
import 'dart:io'; import 'dart:io';

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import 'dart:async'; import 'dart:async';
import 'dart:io'; import 'dart:io';

View file

@ -1,3 +1,5 @@
// @dart = 2.9
import 'package:front_end/src/api_unstable/ddc.dart' as fe; import 'package:front_end/src/api_unstable/ddc.dart' as fe;
import 'package:testing/testing.dart'; import 'package:testing/testing.dart';

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
/*1:main*/ test(Class()); /*1:main*/ test(Class());
} }

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
class MyType { class MyType {
int get length => 3; // ensures we build an interceptor for `.length` int get length => 3; // ensures we build an interceptor for `.length`
} }

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
/*1:main*/ test(); /*1:main*/ test();
} }

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
/*1:main*/ test(); /*1:main*/ test();
} }

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
/*1:main*/ test1(); /*1:main*/ test1();
} }

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
// ignore: UNUSED_LOCAL_VARIABLE // ignore: UNUSED_LOCAL_VARIABLE
var /*ddc.1:main*/ c = /*ddk.1:main*/ Class(); var /*ddc.1:main*/ c = /*ddk.1:main*/ Class();

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
// This call is no longer on the stack when the error is thrown. // This call is no longer on the stack when the error is thrown.
/*1:main*/ test(); /*1:main*/ test();

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
var c = Class(); var c = Class();
c. /*1:main*/ test(); c. /*1:main*/ test();

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
/*1:main*/ throw '>ExceptionMarker<'; /*1:main*/ throw '>ExceptionMarker<';
} }

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
/*ddc.1:main*/ Class. /*ddk.1:main*/ test(); /*ddc.1:main*/ Class. /*ddk.1:main*/ test();
} }

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
/*1:main*/ test(); /*1:main*/ test();
} }

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
/*1:main*/ test1(); /*1:main*/ test1();
} }

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
/*1:main*/ test(); /*1:main*/ test();
} }

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
/*1:main*/ test(); /*1:main*/ test();
} }

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
foo(); foo();
} }

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
/* bl */ var foo = /*sl:1*/ Foo(); /* bl */ var foo = /*sl:1*/ Foo();
foo.foo = foo. /*sl:2*/ fooMethod; foo.foo = foo. /*sl:2*/ fooMethod;

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
/*bl*/ /*bl*/
/*s:1*/ foo(); /*s:1*/ foo();

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
/*bl*/ /*bl*/
/*s:1*/ foo(); /*s:1*/ foo();

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
/*bl*/ /*bl*/
var foo = Foo(); var foo = Foo();

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
/*bc:3*/ print(/*bc:1*/ foo()); /*bc:3*/ print(/*bc:1*/ foo());
} }

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
/*nb*/ // no break on empty line /*nb*/ // no break on empty line
/*bl*/ print('Hello, World!'); /*bl*/ print('Hello, World!');

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
foo(/*bc:1*/ bar(), baz: /*bc:2*/ baz()); foo(/*bc:1*/ bar(), baz: /*bc:2*/ baz());
/*nbb:0:4*/ /*nbb:0:4*/

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
foo(/*bc:1*/ bar()); foo(/*bc:1*/ bar());
/*nbb:0:3*/ /*nbb:0:3*/

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*Debugger:stepOver*/ /*Debugger:stepOver*/
void main() { void main() {
assert(/*bc:1*/ foo()); assert(/*bc:1*/ foo());

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*Debugger:stepOver*/ /*Debugger:stepOver*/
void main() { void main() {
/*nb*/ int a; /*nb*/ int a;

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*Debugger:stepOver*/ /*Debugger:stepOver*/
void main() { void main() {
/*nb*/ int a; /*nb*/ int a;

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*Debugger:stepOver*/ /*Debugger:stepOver*/
void main() { void main() {

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*Debugger:stepOver*/ /*Debugger:stepOver*/
void main() { void main() {
/*bl*/ /*sl:1*/ var data = [1, 2, 3]; /*bl*/ /*sl:1*/ var data = [1, 2, 3];

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*Debugger:stepOver*/ /*Debugger:stepOver*/
void main() { void main() {
/*bl*/ /*sl:1*/ var count = 0; /*bl*/ /*sl:1*/ var count = 0;

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*Debugger:stepOver*/ /*Debugger:stepOver*/
void main() { void main() {

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*Debugger:stepOver*/ /*Debugger:stepOver*/
void main() { void main() {

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*Debugger:stepOver*/ /*Debugger:stepOver*/
void main() { void main() {

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*Debugger:stepOver*/ /*Debugger:stepOver*/
class Class2 { class Class2 {

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*Debugger:stepOver*/ /*Debugger:stepOver*/
class Class2 { class Class2 {

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*Debugger:stepOver*/ /*Debugger:stepOver*/
class Class2 { class Class2 {

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*Debugger:stepOver*/ /*Debugger:stepOver*/
var bar = 0; var bar = 0;

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*Debugger:stepOver*/ /*Debugger:stepOver*/
void main() { void main() {

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*Debugger:stepOver*/ /*Debugger:stepOver*/
void main() { void main() {

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*Debugger:stepOver*/ /*Debugger:stepOver*/
void main() { void main() {

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*Debugger:stepOver*/ /*Debugger:stepOver*/
void main() { void main() {

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*Debugger:stepOver*/ /*Debugger:stepOver*/
void main() { void main() {

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
// ignore: unused_local_variable // ignore: unused_local_variable
var foo = Foo(); var foo = Foo();

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
var foo = Foo(); var foo = Foo();
foo.foo(); foo.foo();

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
var foo = Foo(); var foo = Foo();
foo.foo(); foo.foo();

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
// ignore: unused_local_variable // ignore: unused_local_variable
var foo = Foo.named(); var foo = Foo.named();

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*nm*/ /*nm*/
void main() { void main() {
foo(); foo();

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*Debugger:stepOver*/ /*Debugger:stepOver*/
void main() { void main() {
/*bl*/ /*bl*/

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*nb*/ /*nb*/
void main() { void main() {
/*bl*/ /*bl*/

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() async { void main() async {
await for (var i in foobar()) { await for (var i in foobar()) {
print(i); print(i);

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() async { void main() async {
/* bl */ /* bl */
/*sl:1 */ print('About to loop!'); /*sl:1 */ print('About to loop!');

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*Debugger:stepOver*/ /*Debugger:stepOver*/
void main() { void main() {

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/*Debugger:stepOver*/ /*Debugger:stepOver*/
void main() { void main() {

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
var bar = Bar(); var bar = Bar();
bar.doStuff(); bar.doStuff();

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
/* bl */ /* bl */
/*sl:1*/ var iterator = naturalsTo(2); /*sl:1*/ var iterator = naturalsTo(2);

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
void main() { void main() {
Foo(); Foo();
// Comment to push the ending brace back a bit. // Comment to push the ending brace back a bit.

View file

@ -1,3 +1,5 @@
// @dart = 2.9
import 'dart:io'; import 'dart:io';
import 'package:dev_compiler/src/compiler/shared_command.dart'; import 'package:dev_compiler/src/compiler/shared_command.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a // 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. // BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
library dev_compiler.src.testing; library dev_compiler.src.testing;
import 'dart:mirrors'; import 'dart:mirrors';

Some files were not shown because too many files have changed in this diff Show more