From 5c1c9c23818fa0bfa563317e1dbb1503db07064c Mon Sep 17 00:00:00 2001 From: Vijay Menon Date: Tue, 24 Feb 2015 15:02:26 -0800 Subject: [PATCH] Add LICENSE and corresponding headers Fix expectations where line number has changed. R=dgrove@google.com Review URL: https://chromereviews.googleplex.com/158257013 --- pkg/dev_compiler/LICENSE.md | 35 +++++++++++++++++++ pkg/dev_compiler/bin/devc.dart | 3 ++ pkg/dev_compiler/bin/edit_files.dart | 3 ++ pkg/dev_compiler/lib/config.dart | 4 +++ pkg/dev_compiler/lib/devc.dart | 4 +++ pkg/dev_compiler/lib/runtime/dart_core.js | 4 +++ .../lib/runtime/dart_logging_runtime.dart | 4 +++ .../lib/runtime/dart_runtime.dart | 4 +++ pkg/dev_compiler/lib/runtime/dart_runtime.js | 4 +++ .../lib/runtime/harmony_feature_check.js | 4 +++ pkg/dev_compiler/lib/runtime/run.js | 4 +++ pkg/dev_compiler/lib/src/checker/checker.dart | 4 +++ .../lib/src/checker/dart_sdk.dart | 4 +++ .../lib/src/checker/resolver.dart | 7 ++-- pkg/dev_compiler/lib/src/checker/rules.dart | 4 +++ .../lib/src/codegen/ast_builder.dart | 4 +++ .../lib/src/codegen/code_generator.dart | 4 +++ .../lib/src/codegen/dart_codegen.dart | 4 +++ .../lib/src/codegen/js_codegen.dart | 4 +++ .../lib/src/codegen/reify_coercions.dart | 4 +++ pkg/dev_compiler/lib/src/info.dart | 4 +++ pkg/dev_compiler/lib/src/report.dart | 4 +++ pkg/dev_compiler/lib/src/testing.dart | 4 +++ pkg/dev_compiler/lib/src/utils.dart | 4 +++ pkg/dev_compiler/test/all_tests.dart | 4 +++ .../test/checker/checker_test.dart | 4 +++ .../test/checker/inferred_type_test.dart | 4 +++ .../test/checker/self_host_test.dart | 4 +++ pkg/dev_compiler/test/codegen/cascade.dart | 4 +++ .../test/codegen/constructors.dart | 4 +++ .../test/codegen/dir/html_input_a.dart | 4 +++ .../test/codegen/dir/html_input_b.dart | 4 +++ .../test/codegen/dir/html_input_c.dart | 4 +++ .../test/codegen/dir/html_input_d.dart | 4 +++ .../test/codegen/dir/html_input_e.dart | 4 +++ pkg/dev_compiler/test/codegen/dom.dart | 4 +++ .../test/codegen/expect/cascade.txt | 8 ++--- .../test/codegen/expect/fieldtest.txt | 8 ++--- .../test/codegen/expect/methods.txt | 6 ++-- pkg/dev_compiler/test/codegen/fieldtest.dart | 4 +++ pkg/dev_compiler/test/codegen/methods.dart | 4 +++ pkg/dev_compiler/test/codegen_test.dart | 4 +++ .../test/dart_codegen/expect/c/c.dart | 10 +++--- .../test/dart_codegen/expect/d/d.dart | 12 ++++--- .../test/dart_codegen/expect/types.txt | 12 +++---- pkg/dev_compiler/test/dart_codegen/types.dart | 4 +++ .../test/dart_codegen/types/a.dart | 4 +++ .../test/dart_codegen/types/b.dart | 4 +++ .../test/dart_codegen/types/c.dart | 4 +++ .../test/dart_codegen/types/d.dart | 4 +++ pkg/dev_compiler/test/end_to_end_test.dart | 4 +++ pkg/dev_compiler/test/report_test.dart | 4 +++ .../runtime/dart_logging_runtime_test.dart | 4 +++ .../test/runtime/dart_runtime_test.dart | 4 +++ pkg/dev_compiler/test/samples/fieldtest.dart | 4 +++ .../test/samples/function_type_test.dart | 4 +++ .../test/samples/funwithtypes.dart | 4 +++ .../test/samples/import_test.dart | 4 +++ .../test/samples/imported_file.dart | 4 +++ .../test/samples/return_test.dart | 4 +++ .../test/samples/runtimetypechecktest.dart | 4 +++ .../test/samples/trusttypes1.dart | 4 +++ .../test/samples/trusttypes2.dart | 4 +++ pkg/dev_compiler/tool/patch_sdk.dart | 3 ++ pkg/dev_compiler/tool/sdk_version_check.dart | 3 ++ 65 files changed, 293 insertions(+), 29 deletions(-) create mode 100644 pkg/dev_compiler/LICENSE.md diff --git a/pkg/dev_compiler/LICENSE.md b/pkg/dev_compiler/LICENSE.md new file mode 100644 index 00000000000..bab6a8c0535 --- /dev/null +++ b/pkg/dev_compiler/LICENSE.md @@ -0,0 +1,35 @@ +This license applies to all files contained here with the following +exceptions: + +- All code in test/js_test_tools is externally maintained with + corresponding licenses in those individual files and directories. + +--- + +Copyright 2015, the Dart project authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/pkg/dev_compiler/bin/devc.dart b/pkg/dev_compiler/bin/devc.dart index dab78980c24..8fbda5441e8 100755 --- a/pkg/dev_compiler/bin/devc.dart +++ b/pkg/dev_compiler/bin/devc.dart @@ -1,4 +1,7 @@ #!/usr/bin/env dart +// Copyright (c) 2015, 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. /// Command line tool to run the checker on a Dart program. library ddc.bin.checker; diff --git a/pkg/dev_compiler/bin/edit_files.dart b/pkg/dev_compiler/bin/edit_files.dart index bf6eea98589..09bc84568b2 100644 --- a/pkg/dev_compiler/bin/edit_files.dart +++ b/pkg/dev_compiler/bin/edit_files.dart @@ -1,4 +1,7 @@ #!/usr/bin/env dart +// Copyright (c) 2015, 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. /// Command line tool to write checker errors as inline comments in the source /// code of the program. This tool requires the info.json file created by diff --git a/pkg/dev_compiler/lib/config.dart b/pkg/dev_compiler/lib/config.dart index 325814a2095..65d4a2064dc 100644 --- a/pkg/dev_compiler/lib/config.dart +++ b/pkg/dev_compiler/lib/config.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + /// Configuration of DDC rule set. library ddc.config; diff --git a/pkg/dev_compiler/lib/devc.dart b/pkg/dev_compiler/lib/devc.dart index 9b50080b8c6..efb41e4c2ba 100644 --- a/pkg/dev_compiler/lib/devc.dart +++ b/pkg/dev_compiler/lib/devc.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + /// Command line tool to run the checker on a Dart program. library ddc.devc; diff --git a/pkg/dev_compiler/lib/runtime/dart_core.js b/pkg/dev_compiler/lib/runtime/dart_core.js index da5f9c58c7d..e49de805e1a 100644 --- a/pkg/dev_compiler/lib/runtime/dart_core.js +++ b/pkg/dev_compiler/lib/runtime/dart_core.js @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + var dart_core; (function (dart_core) { var Object = (function () { diff --git a/pkg/dev_compiler/lib/runtime/dart_logging_runtime.dart b/pkg/dev_compiler/lib/runtime/dart_logging_runtime.dart index a9c12d5a77d..b9271d152ed 100644 --- a/pkg/dev_compiler/lib/runtime/dart_logging_runtime.dart +++ b/pkg/dev_compiler/lib/runtime/dart_logging_runtime.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + library ddc.runtime.dart_logging_runtime; import 'dart:mirrors' as mirrors; diff --git a/pkg/dev_compiler/lib/runtime/dart_runtime.dart b/pkg/dev_compiler/lib/runtime/dart_runtime.dart index 23a49ded144..0caf74125c5 100644 --- a/pkg/dev_compiler/lib/runtime/dart_runtime.dart +++ b/pkg/dev_compiler/lib/runtime/dart_runtime.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + library ddc.runtime.dart_runtime; import 'dart:mirrors'; diff --git a/pkg/dev_compiler/lib/runtime/dart_runtime.js b/pkg/dev_compiler/lib/runtime/dart_runtime.js index 3694cd00cfc..f56e6be0ec9 100644 --- a/pkg/dev_compiler/lib/runtime/dart_runtime.js +++ b/pkg/dev_compiler/lib/runtime/dart_runtime.js @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + var dart; (function (dart) { var defineProperty = Object.defineProperty; diff --git a/pkg/dev_compiler/lib/runtime/harmony_feature_check.js b/pkg/dev_compiler/lib/runtime/harmony_feature_check.js index d49eab20bf2..9007bc75d6f 100644 --- a/pkg/dev_compiler/lib/runtime/harmony_feature_check.js +++ b/pkg/dev_compiler/lib/runtime/harmony_feature_check.js @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + // Feature test for harmony support, alert if not present. (function () { try { diff --git a/pkg/dev_compiler/lib/runtime/run.js b/pkg/dev_compiler/lib/runtime/run.js index 9994ce5d004..28dded8c3ce 100644 --- a/pkg/dev_compiler/lib/runtime/run.js +++ b/pkg/dev_compiler/lib/runtime/run.js @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + var fs = require('fs'); var vm = require('vm'); diff --git a/pkg/dev_compiler/lib/src/checker/checker.dart b/pkg/dev_compiler/lib/src/checker/checker.dart index 24bf9f5e0fa..cfd2ef118de 100644 --- a/pkg/dev_compiler/lib/src/checker/checker.dart +++ b/pkg/dev_compiler/lib/src/checker/checker.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + library ddc.src.checker.checker; import 'package:analyzer/analyzer.dart'; diff --git a/pkg/dev_compiler/lib/src/checker/dart_sdk.dart b/pkg/dev_compiler/lib/src/checker/dart_sdk.dart index 233818cfea0..1cacf8d50ce 100644 --- a/pkg/dev_compiler/lib/src/checker/dart_sdk.dart +++ b/pkg/dev_compiler/lib/src/checker/dart_sdk.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + /// Common logic needed to provide a Dart SDK to the analyzer's resolver. This /// includes logic to determine where the sdk is located in the filesystem, and /// definitions to provide mock sdks. diff --git a/pkg/dev_compiler/lib/src/checker/resolver.dart b/pkg/dev_compiler/lib/src/checker/resolver.dart index 0b2aa68899b..615698d78f5 100644 --- a/pkg/dev_compiler/lib/src/checker/resolver.dart +++ b/pkg/dev_compiler/lib/src/checker/resolver.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + /// Encapsulates how to invoke the analyzer resolver and overrides how it /// computes types on expressions to use our restricted set of types. library ddc.src.checker.resolver; @@ -10,8 +14,7 @@ import 'package:analyzer/src/generated/error.dart'; import 'package:analyzer/src/generated/java_io.dart' show JavaFile; import 'package:analyzer/src/generated/resolver.dart'; import 'package:analyzer/src/generated/static_type_analyzer.dart'; -import 'package:analyzer/src/generated/sdk_io.dart' - show DirectoryBasedDartSdk; +import 'package:analyzer/src/generated/sdk_io.dart' show DirectoryBasedDartSdk; import 'package:analyzer/src/generated/source.dart' show DartUriResolver; import 'package:analyzer/src/generated/source.dart' show Source; import 'package:analyzer/src/generated/source_io.dart'; diff --git a/pkg/dev_compiler/lib/src/checker/rules.dart b/pkg/dev_compiler/lib/src/checker/rules.dart index 3dde1b88875..8530a8e7848 100644 --- a/pkg/dev_compiler/lib/src/checker/rules.dart +++ b/pkg/dev_compiler/lib/src/checker/rules.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + library ddc.src.checker.rules; import 'package:analyzer/src/generated/ast.dart'; diff --git a/pkg/dev_compiler/lib/src/codegen/ast_builder.dart b/pkg/dev_compiler/lib/src/codegen/ast_builder.dart index f7f5c21d1dc..8193a3e9b8c 100644 --- a/pkg/dev_compiler/lib/src/codegen/ast_builder.dart +++ b/pkg/dev_compiler/lib/src/codegen/ast_builder.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + library ddc.src.codegen.ast_builder; import 'package:analyzer/src/generated/ast.dart'; diff --git a/pkg/dev_compiler/lib/src/codegen/code_generator.dart b/pkg/dev_compiler/lib/src/codegen/code_generator.dart index 5b1c65fdeb2..dd08ab3b5c1 100644 --- a/pkg/dev_compiler/lib/src/codegen/code_generator.dart +++ b/pkg/dev_compiler/lib/src/codegen/code_generator.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + library ddc.src.codegen.code_generator; import 'dart:io'; diff --git a/pkg/dev_compiler/lib/src/codegen/dart_codegen.dart b/pkg/dev_compiler/lib/src/codegen/dart_codegen.dart index 14b4fa5669e..973216e59c1 100644 --- a/pkg/dev_compiler/lib/src/codegen/dart_codegen.dart +++ b/pkg/dev_compiler/lib/src/codegen/dart_codegen.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + library ddc.src.codegen.dart_codegen; import 'dart:io' show File; diff --git a/pkg/dev_compiler/lib/src/codegen/js_codegen.dart b/pkg/dev_compiler/lib/src/codegen/js_codegen.dart index 08fb42f99e8..717087369b0 100644 --- a/pkg/dev_compiler/lib/src/codegen/js_codegen.dart +++ b/pkg/dev_compiler/lib/src/codegen/js_codegen.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + library ddc.src.codegen.js_codegen; import 'dart:io' show Directory; diff --git a/pkg/dev_compiler/lib/src/codegen/reify_coercions.dart b/pkg/dev_compiler/lib/src/codegen/reify_coercions.dart index 06fe707a2ce..d2b07a62b53 100644 --- a/pkg/dev_compiler/lib/src/codegen/reify_coercions.dart +++ b/pkg/dev_compiler/lib/src/codegen/reify_coercions.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + library ddc.src.codegen.reify_coercions; import 'package:analyzer/analyzer.dart' as analyzer; diff --git a/pkg/dev_compiler/lib/src/info.dart b/pkg/dev_compiler/lib/src/info.dart index 2482cfeaf4c..40dd1595cae 100644 --- a/pkg/dev_compiler/lib/src/info.dart +++ b/pkg/dev_compiler/lib/src/info.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + /// Defines static information collected by the type checker and used later by /// emitters to generate code. library ddc.src.info; diff --git a/pkg/dev_compiler/lib/src/report.dart b/pkg/dev_compiler/lib/src/report.dart index 3df18a7ce4f..723ed810aa4 100644 --- a/pkg/dev_compiler/lib/src/report.dart +++ b/pkg/dev_compiler/lib/src/report.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + /// Summarizes the information produced by the checker. library ddc.src.report; diff --git a/pkg/dev_compiler/lib/src/testing.dart b/pkg/dev_compiler/lib/src/testing.dart index 894e3b863bc..35b70ca505c 100644 --- a/pkg/dev_compiler/lib/src/testing.dart +++ b/pkg/dev_compiler/lib/src/testing.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + library ddc.src.testing; import 'package:analyzer/src/generated/ast.dart'; diff --git a/pkg/dev_compiler/lib/src/utils.dart b/pkg/dev_compiler/lib/src/utils.dart index d2229ee4a24..09bc4300a81 100644 --- a/pkg/dev_compiler/lib/src/utils.dart +++ b/pkg/dev_compiler/lib/src/utils.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + /// Holds a couple utility functions used at various places in the system. library ddc.src.utils; diff --git a/pkg/dev_compiler/test/all_tests.dart b/pkg/dev_compiler/test/all_tests.dart index 4de75711865..1b41c0d6169 100644 --- a/pkg/dev_compiler/test/all_tests.dart +++ b/pkg/dev_compiler/test/all_tests.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + /// Meta-test that runs all tests we have written. library ddc.test.all_tests; diff --git a/pkg/dev_compiler/test/checker/checker_test.dart b/pkg/dev_compiler/test/checker/checker_test.dart index 15c8e022077..335fcb39e35 100644 --- a/pkg/dev_compiler/test/checker/checker_test.dart +++ b/pkg/dev_compiler/test/checker/checker_test.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + /// General type checking tests library ddc.test.checker_test; diff --git a/pkg/dev_compiler/test/checker/inferred_type_test.dart b/pkg/dev_compiler/test/checker/inferred_type_test.dart index efdc86e7eb7..3fed47c63e0 100644 --- a/pkg/dev_compiler/test/checker/inferred_type_test.dart +++ b/pkg/dev_compiler/test/checker/inferred_type_test.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + /// Tests for type inference. library ddc.test.inferred_type_test; diff --git a/pkg/dev_compiler/test/checker/self_host_test.dart b/pkg/dev_compiler/test/checker/self_host_test.dart index 274e4aa350a..a713b330534 100644 --- a/pkg/dev_compiler/test/checker/self_host_test.dart +++ b/pkg/dev_compiler/test/checker/self_host_test.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + /// Tests that run the checker end-to-end using the file system. library ddc.test.end_to_end; diff --git a/pkg/dev_compiler/test/codegen/cascade.dart b/pkg/dev_compiler/test/codegen/cascade.dart index c0bfbb2f493..7cdd3958a48 100644 --- a/pkg/dev_compiler/test/codegen/cascade.dart +++ b/pkg/dev_compiler/test/codegen/cascade.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + class A { var x; } diff --git a/pkg/dev_compiler/test/codegen/constructors.dart b/pkg/dev_compiler/test/codegen/constructors.dart index ffc2a55fb9c..ef468e8be8f 100644 --- a/pkg/dev_compiler/test/codegen/constructors.dart +++ b/pkg/dev_compiler/test/codegen/constructors.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + class A {} class B { diff --git a/pkg/dev_compiler/test/codegen/dir/html_input_a.dart b/pkg/dev_compiler/test/codegen/dir/html_input_a.dart index e4390c1cd9d..e38a5d76c06 100644 --- a/pkg/dev_compiler/test/codegen/dir/html_input_a.dart +++ b/pkg/dev_compiler/test/codegen/dir/html_input_a.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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 'html_input_b.dart'; import 'html_input_c.dart'; diff --git a/pkg/dev_compiler/test/codegen/dir/html_input_b.dart b/pkg/dev_compiler/test/codegen/dir/html_input_b.dart index 13807879b65..2cd13359246 100644 --- a/pkg/dev_compiler/test/codegen/dir/html_input_b.dart +++ b/pkg/dev_compiler/test/codegen/dir/html_input_b.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + export 'html_input_d.dart'; int x = 22; diff --git a/pkg/dev_compiler/test/codegen/dir/html_input_c.dart b/pkg/dev_compiler/test/codegen/dir/html_input_c.dart index 0ebafc429ba..c959e835832 100644 --- a/pkg/dev_compiler/test/codegen/dir/html_input_c.dart +++ b/pkg/dev_compiler/test/codegen/dir/html_input_c.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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 'html_input_e.dart'; int y = 3 + w; diff --git a/pkg/dev_compiler/test/codegen/dir/html_input_d.dart b/pkg/dev_compiler/test/codegen/dir/html_input_d.dart index be3f16c22f4..a3bd8be6f3e 100644 --- a/pkg/dev_compiler/test/codegen/dir/html_input_d.dart +++ b/pkg/dev_compiler/test/codegen/dir/html_input_d.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + library html_input_d; int fib(int n) => _fib(n, new Map()); diff --git a/pkg/dev_compiler/test/codegen/dir/html_input_e.dart b/pkg/dev_compiler/test/codegen/dir/html_input_e.dart index f88c72e51b9..73bb4e58bb5 100644 --- a/pkg/dev_compiler/test/codegen/dir/html_input_e.dart +++ b/pkg/dev_compiler/test/codegen/dir/html_input_e.dart @@ -1 +1,5 @@ +// Copyright (c) 2015, 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. + int w = 9; diff --git a/pkg/dev_compiler/test/codegen/dom.dart b/pkg/dev_compiler/test/codegen/dom.dart index 5f5db08542d..05430c10de0 100644 --- a/pkg/dev_compiler/test/codegen/dom.dart +++ b/pkg/dev_compiler/test/codegen/dom.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + library dom; class JsType { diff --git a/pkg/dev_compiler/test/codegen/expect/cascade.txt b/pkg/dev_compiler/test/codegen/expect/cascade.txt index 167ad033d33..597de4251d1 100644 --- a/pkg/dev_compiler/test/codegen/expect/cascade.txt +++ b/pkg/dev_compiler/test/codegen/expect/cascade.txt @@ -1,13 +1,13 @@ // Messages from compiling cascade.dart -warning: line 12, column 5 of test/codegen/cascade.dart: ..x() requires dynamic invoke +warning: line 16, column 5 of test/codegen/cascade.dart: ..x() requires dynamic invoke ..x() ^^^^^ -warning: line 13, column 5 of test/codegen/cascade.dart: ..x() requires dynamic invoke +warning: line 17, column 5 of test/codegen/cascade.dart: ..x() requires dynamic invoke ..x(); ^^^^^ -warning: line 23, column 5 of test/codegen/cascade.dart: ..x() requires dynamic invoke +warning: line 27, column 5 of test/codegen/cascade.dart: ..x() requires dynamic invoke ..x() ^^^^^ -warning: line 24, column 5 of test/codegen/cascade.dart: ..x() requires dynamic invoke +warning: line 28, column 5 of test/codegen/cascade.dart: ..x() requires dynamic invoke ..x(); ^^^^^ diff --git a/pkg/dev_compiler/test/codegen/expect/fieldtest.txt b/pkg/dev_compiler/test/codegen/expect/fieldtest.txt index cc3c1cbd174..5d674b2fc83 100644 --- a/pkg/dev_compiler/test/codegen/expect/fieldtest.txt +++ b/pkg/dev_compiler/test/codegen/expect/fieldtest.txt @@ -1,13 +1,13 @@ // Messages from compiling fieldtest.dart -warning: line 19, column 9 of test/codegen/fieldtest.dart: a.x requires dynamic invoke +warning: line 23, column 9 of test/codegen/fieldtest.dart: a.x requires dynamic invoke print(a.x); ^^^ -info: line 20, column 10 of test/codegen/fieldtest.dart: a.x (dynamic) will need runtime check to cast to type int +info: line 24, column 10 of test/codegen/fieldtest.dart: a.x (dynamic) will need runtime check to cast to type int return a.x; ^^^ -warning: line 20, column 10 of test/codegen/fieldtest.dart: a.x requires dynamic invoke +warning: line 24, column 10 of test/codegen/fieldtest.dart: a.x requires dynamic invoke return a.x; ^^^ -info: line 31, column 7 of test/codegen/fieldtest.dart: value (dynamic) will need runtime check to cast to type int +info: line 35, column 7 of test/codegen/fieldtest.dart: value (dynamic) will need runtime check to cast to type int y = value; ^^^^^ diff --git a/pkg/dev_compiler/test/codegen/expect/methods.txt b/pkg/dev_compiler/test/codegen/expect/methods.txt index e043aa94eb1..9766cc394c3 100644 --- a/pkg/dev_compiler/test/codegen/expect/methods.txt +++ b/pkg/dev_compiler/test/codegen/expect/methods.txt @@ -1,10 +1,10 @@ // Messages from compiling methods.dart -info: line 10, column 21 of test/codegen/methods.dart: b (num) will need runtime check to cast to type int +info: line 14, column 21 of test/codegen/methods.dart: b (num) will need runtime check to cast to type int int z([num b]) => b; ^ -info: line 15, column 12 of test/codegen/methods.dart: a + b (num) will need runtime check to cast to type int +info: line 19, column 12 of test/codegen/methods.dart: a + b (num) will need runtime check to cast to type int return a + b; ^^^^^ -warning: line 45, column 3 of test/codegen/methods.dart: f.bar("Bar's call method!") requires dynamic invoke +warning: line 49, column 3 of test/codegen/methods.dart: f.bar("Bar's call method!") requires dynamic invoke f.bar("Bar's call method!"); ^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/pkg/dev_compiler/test/codegen/fieldtest.dart b/pkg/dev_compiler/test/codegen/fieldtest.dart index 03e4e4b7577..f40fb215b96 100644 --- a/pkg/dev_compiler/test/codegen/fieldtest.dart +++ b/pkg/dev_compiler/test/codegen/fieldtest.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + library fieldtest; class A { diff --git a/pkg/dev_compiler/test/codegen/methods.dart b/pkg/dev_compiler/test/codegen/methods.dart index 6ccbf896237..b2244da0b76 100644 --- a/pkg/dev_compiler/test/codegen/methods.dart +++ b/pkg/dev_compiler/test/codegen/methods.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + library methods; class A { diff --git a/pkg/dev_compiler/test/codegen_test.dart b/pkg/dev_compiler/test/codegen_test.dart index 897492d4200..a569a133990 100644 --- a/pkg/dev_compiler/test/codegen_test.dart +++ b/pkg/dev_compiler/test/codegen_test.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + /// Tests code generation. /// Runs Dart Dev Compiler on all input in the `codegen` directory and checks /// that the output is what we expected. diff --git a/pkg/dev_compiler/test/dart_codegen/expect/c/c.dart b/pkg/dev_compiler/test/dart_codegen/expect/c/c.dart index ae28d6461a7..cd3587c9d8d 100644 --- a/pkg/dev_compiler/test/dart_codegen/expect/c/c.dart +++ b/pkg/dev_compiler/test/dart_codegen/expect/c/c.dart @@ -6,23 +6,23 @@ import 'b.dart'; void bar() { f3(((__x0) => DDC$RT.cast(__x0, dynamic, DDC$a$.A, "CastGeneral", - """line 6, column 6 of test/dart_codegen/types/c.dart: """, + """line 10, column 6 of test/dart_codegen/types/c.dart: """, __x0 is DDC$a$.A, true))(f4(3))); f1(DDC$RT.wrap((dynamic f(dynamic __u2)) { dynamic c(dynamic x0) => ((__x1) => DDC$RT.cast(__x1, dynamic, DDC$a$.A, "CastResult", - """line 7, column 6 of test/dart_codegen/types/c.dart: """, + """line 11, column 6 of test/dart_codegen/types/c.dart: """, __x1 is DDC$a$.A, true))(f(x0)); return f == null ? null : c; }, f4, __t5, __t3, "Wrap", - """line 7, column 6 of test/dart_codegen/types/c.dart: """, f4 is __t3)); + """line 11, column 6 of test/dart_codegen/types/c.dart: """, f4 is __t3)); f2(DDC$RT.wrap((DDC$a$.A f(DDC$a$.A __u7)) { DDC$a$.A c(DDC$a$.A x0) => f(DDC$RT.cast(x0, dynamic, DDC$a$.A, "CastParam", - """line 8, column 6 of test/dart_codegen/types/c.dart: """, + """line 12, column 6 of test/dart_codegen/types/c.dart: """, x0 is DDC$a$.A, true)); return f == null ? null : c; }, f3, __t3, __t5, "Wrap", - """line 8, column 6 of test/dart_codegen/types/c.dart: """, f3 is __t5)); + """line 12, column 6 of test/dart_codegen/types/c.dart: """, f3 is __t5)); } typedef DDC$a$.A __t3(DDC$a$.A __u4); typedef dynamic __t5(dynamic __u6); diff --git a/pkg/dev_compiler/test/dart_codegen/expect/d/d.dart b/pkg/dev_compiler/test/dart_codegen/expect/d/d.dart index 4f408a5c50e..e4048c8eafc 100644 --- a/pkg/dev_compiler/test/dart_codegen/expect/d/d.dart +++ b/pkg/dev_compiler/test/dart_codegen/expect/d/d.dart @@ -6,23 +6,25 @@ import 'b.dart'; void foo() { var x = f3(((__x0) => DDC$RT.cast(__x0, dynamic, DDC$a$.A, "CastGeneral", - """line 6, column 14 of test/dart_codegen/types/d.dart: """, + """line 10, column 14 of test/dart_codegen/types/d.dart: """, __x0 is DDC$a$.A, true))(f4("""hello"""))); var y = f1(DDC$RT.wrap((dynamic f(dynamic __u2)) { dynamic c(dynamic x0) => ((__x1) => DDC$RT.cast(__x1, dynamic, DDC$a$.A, "CastResult", - """line 7, column 14 of test/dart_codegen/types/d.dart: """, + """line 11, column 14 of test/dart_codegen/types/d.dart: """, __x1 is DDC$a$.A, true))(f(x0)); return f == null ? null : c; }, f4, __t5, __t3, "Wrap", - """line 7, column 14 of test/dart_codegen/types/d.dart: """, f4 is __t3)); + """line 11, column 14 of test/dart_codegen/types/d.dart: """, + f4 is __t3)); var z = f2(DDC$RT.wrap((DDC$a$.A f(DDC$a$.A __u7)) { DDC$a$.A c(DDC$a$.A x0) => f(DDC$RT.cast(x0, dynamic, DDC$a$.A, "CastParam", - """line 8, column 14 of test/dart_codegen/types/d.dart: """, + """line 12, column 14 of test/dart_codegen/types/d.dart: """, x0 is DDC$a$.A, true)); return f == null ? null : c; }, f3, __t3, __t5, "Wrap", - """line 8, column 14 of test/dart_codegen/types/d.dart: """, f3 is __t5)); + """line 12, column 14 of test/dart_codegen/types/d.dart: """, + f3 is __t5)); } typedef DDC$a$.A __t3(DDC$a$.A __u4); typedef dynamic __t5(dynamic __u6); diff --git a/pkg/dev_compiler/test/dart_codegen/expect/types.txt b/pkg/dev_compiler/test/dart_codegen/expect/types.txt index 523186fa0c1..a65c14a3284 100644 --- a/pkg/dev_compiler/test/dart_codegen/expect/types.txt +++ b/pkg/dev_compiler/test/dart_codegen/expect/types.txt @@ -1,19 +1,19 @@ // Messages from compiling types.dart -info: line 6, column 6 of test/dart_codegen/types/c.dart: f4(3) (dynamic) will need runtime check to cast to type A +info: line 10, column 6 of test/dart_codegen/types/c.dart: f4(3) (dynamic) will need runtime check to cast to type A f3(f4(3)); ^^^^^ -warning: line 7, column 6 of test/dart_codegen/types/c.dart: f4 ((dynamic) → dynamic) will need to be wrapped with a closure of type (A) → A +warning: line 11, column 6 of test/dart_codegen/types/c.dart: f4 ((dynamic) → dynamic) will need to be wrapped with a closure of type (A) → A f1(f4); ^^ -warning: line 8, column 6 of test/dart_codegen/types/c.dart: f3 ((A) → A) will need to be wrapped with a closure of type (dynamic) → dynamic +warning: line 12, column 6 of test/dart_codegen/types/c.dart: f3 ((A) → A) will need to be wrapped with a closure of type (dynamic) → dynamic f2(f3); ^^ -info: line 6, column 14 of test/dart_codegen/types/d.dart: f4("""hello""") (dynamic) will need runtime check to cast to type A +info: line 10, column 14 of test/dart_codegen/types/d.dart: f4("""hello""") (dynamic) will need runtime check to cast to type A var x = f3(f4("""hello""")); ^^^^^^^^^^^^^^^ -warning: line 7, column 14 of test/dart_codegen/types/d.dart: f4 ((dynamic) → dynamic) will need to be wrapped with a closure of type (A) → A +warning: line 11, column 14 of test/dart_codegen/types/d.dart: f4 ((dynamic) → dynamic) will need to be wrapped with a closure of type (A) → A var y = f1(f4); ^^ -warning: line 8, column 14 of test/dart_codegen/types/d.dart: f3 ((A) → A) will need to be wrapped with a closure of type (dynamic) → dynamic +warning: line 12, column 14 of test/dart_codegen/types/d.dart: f3 ((A) → A) will need to be wrapped with a closure of type (dynamic) → dynamic var z = f2(f3); ^^ diff --git a/pkg/dev_compiler/test/dart_codegen/types.dart b/pkg/dev_compiler/test/dart_codegen/types.dart index 2f7b30980c4..38412b98fac 100644 --- a/pkg/dev_compiler/test/dart_codegen/types.dart +++ b/pkg/dev_compiler/test/dart_codegen/types.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + library types; import 'types/c.dart' show foo; diff --git a/pkg/dev_compiler/test/dart_codegen/types/a.dart b/pkg/dev_compiler/test/dart_codegen/types/a.dart index d3183f0b8e4..8070d6cdaa7 100644 --- a/pkg/dev_compiler/test/dart_codegen/types/a.dart +++ b/pkg/dev_compiler/test/dart_codegen/types/a.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + library a; class A {} diff --git a/pkg/dev_compiler/test/dart_codegen/types/b.dart b/pkg/dev_compiler/test/dart_codegen/types/b.dart index f9cbc4a64a1..3a0d3f4bb50 100644 --- a/pkg/dev_compiler/test/dart_codegen/types/b.dart +++ b/pkg/dev_compiler/test/dart_codegen/types/b.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + library b; import 'a.dart'; diff --git a/pkg/dev_compiler/test/dart_codegen/types/c.dart b/pkg/dev_compiler/test/dart_codegen/types/c.dart index 7718c642586..62b77a3fbe3 100644 --- a/pkg/dev_compiler/test/dart_codegen/types/c.dart +++ b/pkg/dev_compiler/test/dart_codegen/types/c.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + library c; import 'b.dart'; diff --git a/pkg/dev_compiler/test/dart_codegen/types/d.dart b/pkg/dev_compiler/test/dart_codegen/types/d.dart index 1596ee4be10..1333de0741d 100644 --- a/pkg/dev_compiler/test/dart_codegen/types/d.dart +++ b/pkg/dev_compiler/test/dart_codegen/types/d.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + library d; import 'b.dart'; diff --git a/pkg/dev_compiler/test/end_to_end_test.dart b/pkg/dev_compiler/test/end_to_end_test.dart index 038c68e584b..3016daee913 100644 --- a/pkg/dev_compiler/test/end_to_end_test.dart +++ b/pkg/dev_compiler/test/end_to_end_test.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + /// Tests that run the checker end-to-end using the file system, but with a mock /// SDK. library ddc.test.end_to_end; diff --git a/pkg/dev_compiler/test/report_test.dart b/pkg/dev_compiler/test/report_test.dart index 19d0e0b8630..5321ac9d9db 100644 --- a/pkg/dev_compiler/test/report_test.dart +++ b/pkg/dev_compiler/test/report_test.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + /// Tests for summary reporting. library ddc.test.report_test; diff --git a/pkg/dev_compiler/test/runtime/dart_logging_runtime_test.dart b/pkg/dev_compiler/test/runtime/dart_logging_runtime_test.dart index d9266933147..ae65a9d4f3d 100644 --- a/pkg/dev_compiler/test/runtime/dart_logging_runtime_test.dart +++ b/pkg/dev_compiler/test/runtime/dart_logging_runtime_test.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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 'package:ddc/runtime/dart_logging_runtime.dart' as ddc; import 'package:unittest/unittest.dart'; diff --git a/pkg/dev_compiler/test/runtime/dart_runtime_test.dart b/pkg/dev_compiler/test/runtime/dart_runtime_test.dart index 145b964eba2..3f13cbde5de 100644 --- a/pkg/dev_compiler/test/runtime/dart_runtime_test.dart +++ b/pkg/dev_compiler/test/runtime/dart_runtime_test.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + // Test code import 'dart:collection'; import 'dart:mirrors'; diff --git a/pkg/dev_compiler/test/samples/fieldtest.dart b/pkg/dev_compiler/test/samples/fieldtest.dart index f9baf962ffb..4bf225a5f21 100644 --- a/pkg/dev_compiler/test/samples/fieldtest.dart +++ b/pkg/dev_compiler/test/samples/fieldtest.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + library fieldtest; class A { diff --git a/pkg/dev_compiler/test/samples/function_type_test.dart b/pkg/dev_compiler/test/samples/function_type_test.dart index 11cfa2c253b..188c9eb3e7d 100644 --- a/pkg/dev_compiler/test/samples/function_type_test.dart +++ b/pkg/dev_compiler/test/samples/function_type_test.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + Function f = (int x) => x + 1; dynamic a = f; Function g = a; diff --git a/pkg/dev_compiler/test/samples/funwithtypes.dart b/pkg/dev_compiler/test/samples/funwithtypes.dart index 5f4a7f7306e..40925ca4db6 100644 --- a/pkg/dev_compiler/test/samples/funwithtypes.dart +++ b/pkg/dev_compiler/test/samples/funwithtypes.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + // Some examples of how the dart type system/checked mode interacts with dart type unsoundness. // Suppose we were to "trust types" in the following sense: if the program passes the dart // type checker, assume that all checks implied by checked mode would have passed, and diff --git a/pkg/dev_compiler/test/samples/import_test.dart b/pkg/dev_compiler/test/samples/import_test.dart index 013935e115c..e02c69eade6 100644 --- a/pkg/dev_compiler/test/samples/import_test.dart +++ b/pkg/dev_compiler/test/samples/import_test.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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 'imported_file.dart'; class B extends A { diff --git a/pkg/dev_compiler/test/samples/imported_file.dart b/pkg/dev_compiler/test/samples/imported_file.dart index 766663d5677..cc33f029d59 100644 --- a/pkg/dev_compiler/test/samples/imported_file.dart +++ b/pkg/dev_compiler/test/samples/imported_file.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + class A { int a; } diff --git a/pkg/dev_compiler/test/samples/return_test.dart b/pkg/dev_compiler/test/samples/return_test.dart index 07dd65ce161..4c9609d0f5d 100644 --- a/pkg/dev_compiler/test/samples/return_test.dart +++ b/pkg/dev_compiler/test/samples/return_test.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + dynamic a = 42; // This requires a check / unbox. diff --git a/pkg/dev_compiler/test/samples/runtimetypechecktest.dart b/pkg/dev_compiler/test/samples/runtimetypechecktest.dart index 0c7a94dbe3d..749200cde1a 100644 --- a/pkg/dev_compiler/test/samples/runtimetypechecktest.dart +++ b/pkg/dev_compiler/test/samples/runtimetypechecktest.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + library runtimetypechecktest; class A { diff --git a/pkg/dev_compiler/test/samples/trusttypes1.dart b/pkg/dev_compiler/test/samples/trusttypes1.dart index 3fbeca4f4ce..86bd39b64dc 100644 --- a/pkg/dev_compiler/test/samples/trusttypes1.dart +++ b/pkg/dev_compiler/test/samples/trusttypes1.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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:math'; class A { diff --git a/pkg/dev_compiler/test/samples/trusttypes2.dart b/pkg/dev_compiler/test/samples/trusttypes2.dart index 1668a757e5c..a91353fbeba 100644 --- a/pkg/dev_compiler/test/samples/trusttypes2.dart +++ b/pkg/dev_compiler/test/samples/trusttypes2.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2015, 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. + class A { int x = 42; } diff --git a/pkg/dev_compiler/tool/patch_sdk.dart b/pkg/dev_compiler/tool/patch_sdk.dart index d7961ade0d9..15f89919773 100755 --- a/pkg/dev_compiler/tool/patch_sdk.dart +++ b/pkg/dev_compiler/tool/patch_sdk.dart @@ -1,4 +1,7 @@ #!/usr/bin/env dart +// Copyright (c) 2015, 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. /// Command line tool to merge the SDK libraries and our patch files. /// This is currently designed as an offline tool, but we could automate it. diff --git a/pkg/dev_compiler/tool/sdk_version_check.dart b/pkg/dev_compiler/tool/sdk_version_check.dart index a132d6bdbad..8cab664d07f 100755 --- a/pkg/dev_compiler/tool/sdk_version_check.dart +++ b/pkg/dev_compiler/tool/sdk_version_check.dart @@ -1,4 +1,7 @@ #!/usr/bin/env dart +// Copyright (c) 2015, 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. // Checks that the Dart VM is at least the requested version import 'dart:io' show Platform, exit;