| 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 engine.index; | 8 library engine.index; |
| 9 | 9 |
| 10 import 'dart:collection' show Queue; | 10 import 'dart:collection' show Queue; |
| (...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1260 */ | 1260 */ |
| 1261 void removeSources(AnalysisContext context, SourceContainer container); | 1261 void removeSources(AnalysisContext context, SourceContainer container); |
| 1262 } | 1262 } |
| 1263 | 1263 |
| 1264 /** | 1264 /** |
| 1265 * Implementation of [UniverseElement]. | 1265 * Implementation of [UniverseElement]. |
| 1266 */ | 1266 */ |
| 1267 class UniverseElementImpl extends ElementImpl implements UniverseElement { | 1267 class UniverseElementImpl extends ElementImpl implements UniverseElement { |
| 1268 static UniverseElementImpl INSTANCE = new UniverseElementImpl(); | 1268 static UniverseElementImpl INSTANCE = new UniverseElementImpl(); |
| 1269 | 1269 |
| 1270 UniverseElementImpl() : super.con2("--universe--", -1); | 1270 UniverseElementImpl() : super("--universe--", -1); |
| 1271 | 1271 |
| 1272 accept(ElementVisitor visitor) => null; | 1272 accept(ElementVisitor visitor) => null; |
| 1273 | 1273 |
| 1274 ElementKind get kind => ElementKind.UNIVERSE; | 1274 ElementKind get kind => ElementKind.UNIVERSE; |
| 1275 } | 1275 } |
| 1276 | 1276 |
| 1277 /** | 1277 /** |
| 1278 * Visits resolved AST and adds relationships into [IndexStore]. | 1278 * Visits resolved AST and adds relationships into [IndexStore]. |
| 1279 */ | 1279 */ |
| 1280 class IndexContributor extends GeneralizingAstVisitor<Object> { | 1280 class IndexContributor extends GeneralizingAstVisitor<Object> { |
| (...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2108 ImportElement _element; | 2108 ImportElement _element; |
| 2109 | 2109 |
| 2110 int _periodEnd = 0; | 2110 int _periodEnd = 0; |
| 2111 } | 2111 } |
| 2112 | 2112 |
| 2113 /** | 2113 /** |
| 2114 * Special [Element] which is used to index references to the name without speci
fying concrete | 2114 * Special [Element] which is used to index references to the name without speci
fying concrete |
| 2115 * kind of this name - field, method or something else. | 2115 * kind of this name - field, method or something else. |
| 2116 */ | 2116 */ |
| 2117 class NameElementImpl extends ElementImpl { | 2117 class NameElementImpl extends ElementImpl { |
| 2118 NameElementImpl(String name) : super.con2("name:${name}", -1); | 2118 NameElementImpl(String name) : super("name:${name}", -1); |
| 2119 | 2119 |
| 2120 accept(ElementVisitor visitor) => null; | 2120 accept(ElementVisitor visitor) => null; |
| 2121 | 2121 |
| 2122 ElementKind get kind => ElementKind.NAME; | 2122 ElementKind get kind => ElementKind.NAME; |
| 2123 } | 2123 } |
| 2124 | 2124 |
| 2125 /** | 2125 /** |
| 2126 * Visits resolved [CompilationUnit] and adds Angular specific relationships int
o | 2126 * Visits resolved [CompilationUnit] and adds Angular specific relationships int
o |
| 2127 * [IndexStore]. | 2127 * [IndexStore]. |
| 2128 */ | 2128 */ |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2412 * element are available. For example, if the element is a field and the relat
ionship is the | 2412 * element are available. For example, if the element is a field and the relat
ionship is the |
| 2413 * is-referenced-by relationship, then this method will be invoked with each l
ocation at which the | 2413 * is-referenced-by relationship, then this method will be invoked with each l
ocation at which the |
| 2414 * field is referenced. | 2414 * field is referenced. |
| 2415 * | 2415 * |
| 2416 * @param element the [Element] that has the relationship with the locations | 2416 * @param element the [Element] that has the relationship with the locations |
| 2417 * @param relationship the relationship between the given element and the loca
tions | 2417 * @param relationship the relationship between the given element and the loca
tions |
| 2418 * @param locations the locations that were found | 2418 * @param locations the locations that were found |
| 2419 */ | 2419 */ |
| 2420 void hasRelationships(Element element, Relationship relationship, List<Locatio
n> locations); | 2420 void hasRelationships(Element element, Relationship relationship, List<Locatio
n> locations); |
| 2421 } | 2421 } |
| OLD | NEW |