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

Side by Side Diff: pkg/docgen/test/multi_library_code/lib/test_lib.dart

Issue 235883016: pkg/docgen: support better const rendering of String, List, and empty Map (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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
OLDNEW
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
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 {};
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698