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

Side by Side Diff: pkg/analysis_server/test/analysis/notification_outline_test.dart

Issue 709493002: Fix 'Unused local variable' hints in analyzer and analysis_server. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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.analysis.notification.outline; 5 library test.analysis.notification.outline;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/constants.dart'; 9 import 'package:analysis_server/src/constants.dart';
10 import 'package:analysis_server/src/protocol.dart'; 10 import 'package:analysis_server/src/protocol.dart';
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 expect(element.returnType, ""); 731 expect(element.returnType, "");
732 } 732 }
733 // propA 733 // propA
734 { 734 {
735 Outline outline = topOutlines[7]; 735 Outline outline = topOutlines[7];
736 Element element = outline.element; 736 Element element = outline.element;
737 expect(element.kind, ElementKind.GETTER); 737 expect(element.kind, ElementKind.GETTER);
738 expect(element.name, "propA"); 738 expect(element.name, "propA");
739 { 739 {
740 Location location = element.location; 740 Location location = element.location;
741 expect(element.location.offset, testCode.indexOf("propA => null;")); 741 expect(location.offset, testCode.indexOf("propA => null;"));
742 expect(element.location.length, "propA".length); 742 expect(location.length, "propA".length);
743 } 743 }
744 expect(element.parameters, ""); 744 expect(element.parameters, "");
745 expect(element.returnType, "String"); 745 expect(element.returnType, "String");
746 } 746 }
747 // propB 747 // propB
748 { 748 {
749 Outline outline = topOutlines[8]; 749 Outline outline = topOutlines[8];
750 Element element = outline.element; 750 Element element = outline.element;
751 expect(element.kind, ElementKind.SETTER); 751 expect(element.kind, ElementKind.SETTER);
752 expect(element.name, "propB"); 752 expect(element.name, "propB");
753 { 753 {
754 Location location = element.location; 754 Location location = element.location;
755 expect(location.offset, testCode.indexOf("propB(int v) {}")); 755 expect(location.offset, testCode.indexOf("propB(int v) {}"));
756 expect(location.length, "propB".length); 756 expect(location.length, "propB".length);
757 } 757 }
758 expect(element.parameters, "(int v)"); 758 expect(element.parameters, "(int v)");
759 expect(element.returnType, ""); 759 expect(element.returnType, "");
760 } 760 }
761 }); 761 });
762 } 762 }
763 } 763 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698