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

Unified Diff: test/codegen/fieldtest.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/extensions.dart ('k') | test/codegen/functions.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/fieldtest.dart
diff --git a/test/codegen/fieldtest.dart b/test/codegen/fieldtest.dart
deleted file mode 100644
index b3a596ee61f462ae3c96cd68f3777972dede0f76..0000000000000000000000000000000000000000
--- a/test/codegen/fieldtest.dart
+++ /dev/null
@@ -1,78 +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 fieldtest;
-
-class A {
- int x = 42;
-}
-
-class B<T> {
- int x;
- num y;
- T z;
-}
-
-int foo(A a) {
- print(a.x);
- return a.x;
-}
-
-int bar(a) {
- print(a.x);
- return a.x;
-}
-
-baz(A a) => a.x;
-
-int compute() => 123;
-int y = compute() + 444;
-
-String get q => 'life, ' + 'the universe ' + 'and everything';
-int get z => 42;
-void set z(value) {
- y = value;
-}
-
-// Supported: use field to implement a getter
-abstract class BaseWithGetter {
- int get foo => 1;
- int get bar;
-}
-class Derived extends BaseWithGetter {
- int foo = 2;
- int bar = 3;
-}
-
-class Generic<T> {
- foo(T t) => print(bar + (t as String));
-
- static String bar = 'hello';
-}
-
-class StaticFieldOrder1 {
- static const a = b + 1;
- static const c = d + 2;
- static const b = c + 3;
- static const d = 4;
-}
-class StaticFieldOrder2 {
- static const a = StaticFieldOrder2.b + 1;
- static const c = StaticFieldOrder2.d + 2;
- static const b = StaticFieldOrder2.c + 3;
- static const d = 4;
-}
-
-enum MyEnum { Val1, Val2, Val3, Val4 }
-
-void main() {
- var a = new A();
- foo(a);
- bar(a);
- print(baz(a));
-
- print(new Generic<String>().foo(' world'));
-
- print(MyEnum.values);
-}
« no previous file with comments | « test/codegen/extensions.dart ('k') | test/codegen/functions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698