| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library test_lib; | 5 library test_lib; |
| 6 | 6 |
| 7 import 'test_lib_foo.dart'; | 7 import 'test_lib_foo.dart'; |
| 8 import 'test_lib_bar.dart'; | 8 import 'test_lib_bar.dart'; |
| 9 export 'test_lib_foo.dart'; | 9 export 'test_lib_foo.dart'; |
| 10 export 'test_lib_bar.dart'; | 10 export 'test_lib_bar.dart'; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 */ | 32 */ |
| 33 void doThis(int A) { | 33 void doThis(int A) { |
| 34 print(A); | 34 print(A); |
| 35 } | 35 } |
| 36 } | 36 } |
| 37 | 37 |
| 38 // A trivial use of `B` and `C` to eliminate import warnings | 38 // A trivial use of `B` and `C` to eliminate import warnings |
| 39 B sampleMethod(C cInstance) { | 39 B sampleMethod(C cInstance) { |
| 40 throw new UnimplementedError(); | 40 throw new UnimplementedError(); |
| 41 } | 41 } |
| 42 |
| 43 int positionalDefaultValues([int intConst = INT_CONST, |
| 44 bool boolConst = BOOL_CONST, List listConst = LIST_CONST, |
| 45 String stringConst = STRING_CONST, Map mapConst = MAP_CONST, |
| 46 Map emptyMap = EMPTY_MAP_CONST]) { |
| 47 throw new UnimplementedError(); |
| 48 } |
| 49 |
| 50 const int INT_CONST = 42; |
| 51 |
| 52 const bool BOOL_CONST = true; |
| 53 |
| 54 const LIST_CONST = const [true, 42, 'Shanna', null, 3.14, const []]; |
| 55 |
| 56 const STRING_CONST = 'Shanna'; |
| 57 |
| 58 const MAP_CONST = const {'a':1, 2: true, 'c': const [1,null,true]}; |
| 59 |
| 60 const EMPTY_MAP_CONST = const {}; |
| OLD | NEW |