| OLD | NEW |
| 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 1894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1905 _mergeNames(execElement.functions); | 1905 _mergeNames(execElement.functions); |
| 1906 } | 1906 } |
| 1907 | 1907 |
| 1908 void _addNamesDefinedByHierarchy(ClassElement classElement, bool forSuper) { | 1908 void _addNamesDefinedByHierarchy(ClassElement classElement, bool forSuper) { |
| 1909 _addNamesDefinedByHierarchy2(classElement.type, forSuper); | 1909 _addNamesDefinedByHierarchy2(classElement.type, forSuper); |
| 1910 } | 1910 } |
| 1911 | 1911 |
| 1912 void _addNamesDefinedByHierarchy2(InterfaceType type, bool forSuper) { | 1912 void _addNamesDefinedByHierarchy2(InterfaceType type, bool forSuper) { |
| 1913 List<InterfaceType> superTypes = type.element.allSupertypes; | 1913 List<InterfaceType> superTypes = type.element.allSupertypes; |
| 1914 if (!forSuper) { | 1914 if (!forSuper) { |
| 1915 superTypes.insert(0, type); | 1915 superTypes = ArrayUtils.addAt(superTypes, 0, type); |
| 1916 } | 1916 } |
| 1917 _addNamesDefinedByTypes(superTypes); | 1917 _addNamesDefinedByTypes(superTypes); |
| 1918 // Collect names defined by subtypes separately so they can be identified la
ter. | 1918 // Collect names defined by subtypes separately so they can be identified la
ter. |
| 1919 CompletionEngine_NameCollector potentialMatchCollector = CompletionEngine_th
is._createNameCollector(); | 1919 CompletionEngine_NameCollector potentialMatchCollector = CompletionEngine_th
is._createNameCollector(); |
| 1920 if (!type.isObject) { | 1920 if (!type.isObject) { |
| 1921 potentialMatchCollector._addNamesDefinedByTypes(CompletionEngine_this._all
Subtypes(type.element)); | 1921 potentialMatchCollector._addNamesDefinedByTypes(CompletionEngine_this._all
Subtypes(type.element)); |
| 1922 } | 1922 } |
| 1923 _potentialMatches = new Set<Element>(); | 1923 _potentialMatches = new Set<Element>(); |
| 1924 for (List<Element> matches in potentialMatchCollector._uniqueNames.values) { | 1924 for (List<Element> matches in potentialMatchCollector._uniqueNames.values) { |
| 1925 for (Element match in matches) { | 1925 for (Element match in matches) { |
| (...skipping 1835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3761 | 3761 |
| 3762 class TopLevelNamesKind extends Enum<TopLevelNamesKind> { | 3762 class TopLevelNamesKind extends Enum<TopLevelNamesKind> { |
| 3763 static const TopLevelNamesKind DECLARED_AND_IMPORTS = const TopLevelNamesKind(
'DECLARED_AND_IMPORTS', 0); | 3763 static const TopLevelNamesKind DECLARED_AND_IMPORTS = const TopLevelNamesKind(
'DECLARED_AND_IMPORTS', 0); |
| 3764 | 3764 |
| 3765 static const TopLevelNamesKind DECLARED_AND_EXPORTS = const TopLevelNamesKind(
'DECLARED_AND_EXPORTS', 1); | 3765 static const TopLevelNamesKind DECLARED_AND_EXPORTS = const TopLevelNamesKind(
'DECLARED_AND_EXPORTS', 1); |
| 3766 | 3766 |
| 3767 static const List<TopLevelNamesKind> values = const [DECLARED_AND_IMPORTS, DEC
LARED_AND_EXPORTS]; | 3767 static const List<TopLevelNamesKind> values = const [DECLARED_AND_IMPORTS, DEC
LARED_AND_EXPORTS]; |
| 3768 | 3768 |
| 3769 const TopLevelNamesKind(String name, int ordinal) : super(name, ordinal); | 3769 const TopLevelNamesKind(String name, int ordinal) : super(name, ordinal); |
| 3770 } | 3770 } |
| OLD | NEW |