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

Side by Side Diff: pkg/analysis_server/test/analysis_notification_outline_test.dart

Issue 314173003: Clean ups for warnings and unused code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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.domain.analysis.notification.outline; 5 library test.domain.analysis.notification.outline;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:mirrors'; 8 import 'dart:mirrors';
9 9
10 import 'package:analysis_server/src/analysis_server.dart'; 10 import 'package:analysis_server/src/analysis_server.dart';
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 632
633 const _OutlineKind(this.name); 633 const _OutlineKind(this.name);
634 634
635 static _OutlineKind valueOf(String name) { 635 static _OutlineKind valueOf(String name) {
636 ClassMirror classMirror = reflectClass(_OutlineKind); 636 ClassMirror classMirror = reflectClass(_OutlineKind);
637 return classMirror.getField(new Symbol(name)).reflectee; 637 return classMirror.getField(new Symbol(name)).reflectee;
638 } 638 }
639 } 639 }
640 640
641 641
642 /**
643 * An element outline.
644 */
642 class _Outline { 645 class _Outline {
643 static const List<_Outline> EMPTY_ARRAY = const <_Outline>[]; 646 static const List<_Outline> EMPTY_ARRAY = const <_Outline>[];
644 647
645 _Outline parent;
646 final _OutlineKind kind; 648 final _OutlineKind kind;
647 final String name; 649 final String name;
648 final int nameOffset; 650 final int nameOffset;
649 final int nameLength; 651 final int nameLength;
650 final int elementOffset; 652 final int elementOffset;
651 final int elementLength; 653 final int elementLength;
652 final bool isAbstract; 654 final bool isAbstract;
653 final bool isStatic; 655 final bool isStatic;
654 final String parameters; 656 final String parameters;
655 final String returnType; 657 final String returnType;
(...skipping 14 matching lines...) Expand all
670 map[PARAMETERS], map[RETURN_TYPE]); 672 map[PARAMETERS], map[RETURN_TYPE]);
671 List<Map<String, Object>> childrenMaps = map[CHILDREN]; 673 List<Map<String, Object>> childrenMaps = map[CHILDREN];
672 if (childrenMaps != null) { 674 if (childrenMaps != null) {
673 childrenMaps.forEach((childMap) { 675 childrenMaps.forEach((childMap) {
674 outline.children.add(new _Outline.fromJson(childMap)); 676 outline.children.add(new _Outline.fromJson(childMap));
675 }); 677 });
676 } 678 }
677 return outline; 679 return outline;
678 } 680 }
679 } 681 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/get_handler.dart ('k') | pkg/analysis_server/test/analysis_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698