Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Unified Diff: test/codegen/methods.dart

Issue 1988503002: Move generated files to gen/. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Revise. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/codegen/html_config.dart ('k') | test/codegen/misc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/methods.dart
diff --git a/test/codegen/methods.dart b/test/codegen/methods.dart
deleted file mode 100644
index e6454d60f14f3249feacd7178ca8cd69aa189c88..0000000000000000000000000000000000000000
--- a/test/codegen/methods.dart
+++ /dev/null
@@ -1,69 +0,0 @@
-// 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 {
- int x() => 42;
-
- int y(int a) {
- return a;
- }
-
- int z([num b]) => b;
-
- int zz([int b = 0]) => b;
-
- int w(int a, {num b}) {
- return a + b;
- }
-
- int ww(int a, {int b: 0}) {
- return a + b;
- }
-
- clashWithObjectProperty({constructor}) => constructor;
- clashWithJsReservedName({function}) => function;
-
- int get a => x();
-
- void set b(int b) {}
-
- int _c = 3;
-
- int get c => _c;
-
- void set c(int c) {
- _c = c;
- }
-}
-
-class Bar {
- call(x) => print('hello from $x');
-}
-class Foo {
- final Bar bar = new Bar();
-}
-
-test() {
- // looks like a method but is actually f.bar.call(...)
- var f = new Foo();
- f.bar("Bar's call method!");
-
- // Tear-off
- A a = new A();
- var g = a.x;
-
- // Dynamic Tear-off
- dynamic aa = new A();
- var h = aa.x;
-
- // Tear-off of object methods
- var ts = a.toString;
- var nsm = a.noSuchMethod;
-
- // Tear-off extension methods
- var c = "".padLeft;
- var r = (3.0).floor;
-}
« no previous file with comments | « test/codegen/html_config.dart ('k') | test/codegen/misc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698