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

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

Issue 660563005: Remove ArrayUtils (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/analyzer/lib/src/generated/element.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 1896 matching lines...) Expand 10 before | Expand all | Expand 10 after
1907 _mergeNames(execElement.functions); 1907 _mergeNames(execElement.functions);
1908 } 1908 }
1909 1909
1910 void _addNamesDefinedByHierarchy(ClassElement classElement, bool forSuper) { 1910 void _addNamesDefinedByHierarchy(ClassElement classElement, bool forSuper) {
1911 _addNamesDefinedByHierarchy2(classElement.type, forSuper); 1911 _addNamesDefinedByHierarchy2(classElement.type, forSuper);
1912 } 1912 }
1913 1913
1914 void _addNamesDefinedByHierarchy2(InterfaceType type, bool forSuper) { 1914 void _addNamesDefinedByHierarchy2(InterfaceType type, bool forSuper) {
1915 List<InterfaceType> superTypes = type.element.allSupertypes; 1915 List<InterfaceType> superTypes = type.element.allSupertypes;
1916 if (!forSuper) { 1916 if (!forSuper) {
1917 superTypes = ArrayUtils.addAt(superTypes, 0, type); 1917 superTypes.insert(0, type);
1918 } 1918 }
1919 _addNamesDefinedByTypes(superTypes); 1919 _addNamesDefinedByTypes(superTypes);
1920 // Collect names defined by subtypes separately so they can be identified la ter. 1920 // Collect names defined by subtypes separately so they can be identified la ter.
1921 CompletionEngine_NameCollector potentialMatchCollector = CompletionEngine_th is._createNameCollector(); 1921 CompletionEngine_NameCollector potentialMatchCollector = CompletionEngine_th is._createNameCollector();
1922 if (!type.isObject) { 1922 if (!type.isObject) {
1923 potentialMatchCollector._addNamesDefinedByTypes(CompletionEngine_this._all Subtypes(type.element)); 1923 potentialMatchCollector._addNamesDefinedByTypes(CompletionEngine_this._all Subtypes(type.element));
1924 } 1924 }
1925 _potentialMatches = new Set<Element>(); 1925 _potentialMatches = new Set<Element>();
1926 for (List<Element> matches in potentialMatchCollector._uniqueNames.values) { 1926 for (List<Element> matches in potentialMatchCollector._uniqueNames.values) {
1927 for (Element match in matches) { 1927 for (Element match in matches) {
(...skipping 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after
3696 3696
3697 class TopLevelNamesKind extends Enum<TopLevelNamesKind> { 3697 class TopLevelNamesKind extends Enum<TopLevelNamesKind> {
3698 static const TopLevelNamesKind DECLARED_AND_IMPORTS = const TopLevelNamesKind( 'DECLARED_AND_IMPORTS', 0); 3698 static const TopLevelNamesKind DECLARED_AND_IMPORTS = const TopLevelNamesKind( 'DECLARED_AND_IMPORTS', 0);
3699 3699
3700 static const TopLevelNamesKind DECLARED_AND_EXPORTS = const TopLevelNamesKind( 'DECLARED_AND_EXPORTS', 1); 3700 static const TopLevelNamesKind DECLARED_AND_EXPORTS = const TopLevelNamesKind( 'DECLARED_AND_EXPORTS', 1);
3701 3701
3702 static const List<TopLevelNamesKind> values = const [DECLARED_AND_IMPORTS, DEC LARED_AND_EXPORTS]; 3702 static const List<TopLevelNamesKind> values = const [DECLARED_AND_IMPORTS, DEC LARED_AND_EXPORTS];
3703 3703
3704 const TopLevelNamesKind(String name, int ordinal) : super(name, ordinal); 3704 const TopLevelNamesKind(String name, int ordinal) : super(name, ordinal);
3705 } 3705 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698