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

Side by Side Diff: pkg/analysis_services/lib/json.dart

Issue 407833002: more progress implementing analysis server code completion (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge and address comments Created 6 years, 5 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 collections; 5 library services.json;
6
7 /**
8 * Returns the concatentation of the input iterables.
9 *
10 * The returned iterable is a lazily-evaluated view on the input iterables.
11 */
12 Iterable concat(Iterable<Iterable> iterables) => iterables.expand((x) => x);
13
14
15 /**
16 * Returns the concatentation of the input iterables as a [List].
17 */
18 List concatToList(Iterable<Iterable> iterables) => concat(iterables).toList();
19
20 6
21 /** 7 /**
22 * Instances of the class [HasToJson] implement [toJson] method that returns 8 * Instances of the class [HasToJson] implement [toJson] method that returns
23 * a JSON presentation. 9 * a JSON presentation.
24 */ 10 */
25 abstract class HasToJson { 11 abstract class HasToJson {
26 /** 12 /**
27 * Returns a JSON presentation of the object. 13 * Returns a JSON presentation of the object.
28 */ 14 */
29 Map<String, Object> toJson(); 15 Map<String, Object> toJson();
30 } 16 }
OLDNEW
« no previous file with comments | « pkg/analysis_services/lib/constants.dart ('k') | pkg/analysis_services/lib/src/generated/completion.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698