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

Side by Side Diff: pkg/analysis_server/lib/src/services/generated/completion.dart

Issue 680913002: Remove JavaIterator and MapEntry (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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/refactoring/extract_method.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library services.completion; 8 library services.completion;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 3565 matching lines...) Expand 10 before | Expand all | Expand 10 after
3576 3576
3577 bool _match2(String name) { 3577 bool _match2(String name) {
3578 // Return true if the filter passes. 3578 // Return true if the filter passes.
3579 if (name.toLowerCase().startsWith(_prefix)) { 3579 if (name.toLowerCase().startsWith(_prefix)) {
3580 return true; 3580 return true;
3581 } 3581 }
3582 return _matchPattern(name); 3582 return _matchPattern(name);
3583 } 3583 }
3584 3584
3585 void _removeNotMatching(List<Element> elements) { 3585 void _removeNotMatching(List<Element> elements) {
3586 for (JavaIterator<Element> I = new JavaIterator(elements); I.hasNext;) { 3586 for (int i = elements.length - 1; i >= 0; i--) {
3587 Element element = I.next(); 3587 if (!_match(elements[i])) {
3588 if (!_match(element)) { 3588 elements.removeAt(i);
3589 I.remove();
3590 } 3589 }
3591 } 3590 }
3592 } 3591 }
3593 3592
3594 bool _matchPattern(String name) { 3593 bool _matchPattern(String name) {
3595 // TODO(scheglov) translate it 3594 // TODO(scheglov) translate it
3596 return false; 3595 return false;
3597 } 3596 }
3598 } 3597 }
3599 3598
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
3696 3695
3697 class TopLevelNamesKind extends Enum<TopLevelNamesKind> { 3696 class TopLevelNamesKind extends Enum<TopLevelNamesKind> {
3698 static const TopLevelNamesKind DECLARED_AND_IMPORTS = const TopLevelNamesKind( 'DECLARED_AND_IMPORTS', 0); 3697 static const TopLevelNamesKind DECLARED_AND_IMPORTS = const TopLevelNamesKind( 'DECLARED_AND_IMPORTS', 0);
3699 3698
3700 static const TopLevelNamesKind DECLARED_AND_EXPORTS = const TopLevelNamesKind( 'DECLARED_AND_EXPORTS', 1); 3699 static const TopLevelNamesKind DECLARED_AND_EXPORTS = const TopLevelNamesKind( 'DECLARED_AND_EXPORTS', 1);
3701 3700
3702 static const List<TopLevelNamesKind> values = const [DECLARED_AND_IMPORTS, DEC LARED_AND_EXPORTS]; 3701 static const List<TopLevelNamesKind> values = const [DECLARED_AND_IMPORTS, DEC LARED_AND_EXPORTS];
3703 3702
3704 const TopLevelNamesKind(String name, int ordinal) : super(name, ordinal); 3703 const TopLevelNamesKind(String name, int ordinal) : super(name, ordinal);
3705 } 3704 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/refactoring/extract_method.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698