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

Side by Side Diff: dart/tests/compiler/dart2js/mirrors_helper.dart

Issue 10870066: Support unary - operator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix unparser to handle that negate is no longer a keyword. Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « dart/tests/co19/co19-dart2js.status ('k') | dart/tests/compiler/dart2js/parser_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
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * This file is read by 'mirrors_test.dart'. 6 * This file is read by 'mirrors_test.dart'.
7 */ 7 */
8 8
9 #library('mirrors_helper'); 9 #library('mirrors_helper');
10 10
(...skipping 14 matching lines...) Expand all
25 class Baz<E,F extends Foo> implements Bar<E> { 25 class Baz<E,F extends Foo> implements Bar<E> {
26 Baz(); 26 Baz();
27 const Baz.named(); 27 const Baz.named();
28 factory Baz.factory() => new Baz<E,F>(); 28 factory Baz.factory() => new Baz<E,F>();
29 29
30 static method1(e) {} 30 static method1(e) {}
31 void method2(E e, [F f = null]) {} 31 void method2(E e, [F f = null]) {}
32 Baz<E,F> method3(E func1(F f), Func<E,F> func2) => null; 32 Baz<E,F> method3(E func1(F f), Func<E,F> func2) => null;
33 33
34 bool operator==(Object other) => false; 34 bool operator==(Object other) => false;
35 int operator negate() => 0; 35 int operator-() => 0;
36 } 36 }
37 37
38 class Boz extends Foo { 38 class Boz extends Foo {
39 var field1; 39 var field1;
40 int _field2; 40 int _field2;
41 final String field3 = "field3"; 41 final String field3 = "field3";
42 42
43 int get field2() => _field2; 43 int get field2() => _field2;
44 void set field2(int value) { 44 void set field2(int value) {
45 _field2 = value; 45 _field2 = value;
46 } 46 }
47 } 47 }
48 48
OLDNEW
« no previous file with comments | « dart/tests/co19/co19-dart2js.status ('k') | dart/tests/compiler/dart2js/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698