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

Side by Side Diff: test/codegen/lib/mirrors/model.dart

Issue 2265533002: Add mirrors tests (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « test/codegen/lib/mirrors/mixin_test.dart ('k') | test/codegen/lib/mirrors/model_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 library test.model;
6
7 var accessorA;
8
9 var accessorB;
10
11 var accessorC;
12
13 var fieldC;
14
15 class A {
16 var field;
17 instanceMethod(x) => 'A:instanceMethod($x)';
18 get accessor => 'A:get accessor';
19 set accessor(x) {
20 accessorA = x;
21 }
22 aMethod() => 'aMethod';
23 }
24
25 class B extends A {
26 get field => 'B:get field';
27 instanceMethod(x) => 'B:instanceMethod($x)';
28 get accessor => 'B:get accessor';
29 set accessor(x) {
30 accessorB = x;
31 }
32 bMethod() => 'bMethod';
33 }
34
35 class C extends B {
36 set field(x) {
37 fieldC = x;
38 }
39 instanceMethod(x) => 'C:instanceMethod($x)';
40 get accessor => 'C:get accessor';
41 set accessor(x) {
42 accessorC = x;
43 }
44 cMethod() => 'cMethod';
45 }
OLDNEW
« no previous file with comments | « test/codegen/lib/mirrors/mixin_test.dart ('k') | test/codegen/lib/mirrors/model_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698