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

Side by Side Diff: pkg/analyzer/lib/src/generated/index.dart

Issue 247053004: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months 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 // 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 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 * Initialize a newly created Angular HTML index contributor. 997 * Initialize a newly created Angular HTML index contributor.
998 * 998 *
999 * @param store the [IndexStore] to record relations into. 999 * @param store the [IndexStore] to record relations into.
1000 */ 1000 */
1001 AngularHtmlIndexContributor(this._store) { 1001 AngularHtmlIndexContributor(this._store) {
1002 _indexContributor = new IndexContributor_AngularHtmlIndexContributor(_store, this); 1002 _indexContributor = new IndexContributor_AngularHtmlIndexContributor(_store, this);
1003 } 1003 }
1004 1004
1005 @override 1005 @override
1006 void visitExpression(Expression expression) { 1006 void visitExpression(Expression expression) {
1007 // NgFilter 1007 // Formatter
1008 if (expression is SimpleIdentifier) { 1008 if (expression is SimpleIdentifier) {
1009 SimpleIdentifier identifier = expression; 1009 SimpleIdentifier identifier = expression;
1010 Element element = identifier.bestElement; 1010 Element element = identifier.bestElement;
1011 if (element is AngularElement) { 1011 if (element is AngularElement) {
1012 _store.recordRelationship(element, IndexConstants.ANGULAR_REFERENCE, _cr eateLocationForIdentifier(identifier)); 1012 _store.recordRelationship(element, IndexConstants.ANGULAR_REFERENCE, _cr eateLocationForIdentifier(identifier));
1013 return; 1013 return;
1014 } 1014 }
1015 } 1015 }
1016 // index as a normal Dart expression 1016 // index as a normal Dart expression
1017 expression.accept(_indexContributor); 1017 expression.accept(_indexContributor);
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
2178 2178
2179 @override 2179 @override
2180 Object visitClassDeclaration(ClassDeclaration node) { 2180 Object visitClassDeclaration(ClassDeclaration node) {
2181 ClassElement classElement = node.element; 2181 ClassElement classElement = node.element;
2182 if (classElement != null) { 2182 if (classElement != null) {
2183 List<ToolkitObjectElement> toolkitObjects = classElement.toolkitObjects; 2183 List<ToolkitObjectElement> toolkitObjects = classElement.toolkitObjects;
2184 for (ToolkitObjectElement object in toolkitObjects) { 2184 for (ToolkitObjectElement object in toolkitObjects) {
2185 if (object is AngularComponentElement) { 2185 if (object is AngularComponentElement) {
2186 _indexComponent(object); 2186 _indexComponent(object);
2187 } 2187 }
2188 if (object is AngularDirectiveElement) { 2188 if (object is AngularDecoratorElement) {
2189 AngularDirectiveElement directive = object; 2189 AngularDecoratorElement directive = object;
2190 _indexDirective(directive); 2190 _indexDirective(directive);
2191 } 2191 }
2192 } 2192 }
2193 } 2193 }
2194 // stop visiting 2194 // stop visiting
2195 return null; 2195 return null;
2196 } 2196 }
2197 2197
2198 @override 2198 @override
2199 Object visitCompilationUnitMember(CompilationUnitMember node) => null; 2199 Object visitCompilationUnitMember(CompilationUnitMember node) => null;
2200 2200
2201 void _indexComponent(AngularComponentElement component) { 2201 void _indexComponent(AngularComponentElement component) {
2202 _indexProperties(component.properties); 2202 _indexProperties(component.properties);
2203 } 2203 }
2204 2204
2205 void _indexDirective(AngularDirectiveElement directive) { 2205 void _indexDirective(AngularDecoratorElement directive) {
2206 _indexProperties(directive.properties); 2206 _indexProperties(directive.properties);
2207 } 2207 }
2208 2208
2209 /** 2209 /**
2210 * Index [FieldElement] references from [AngularPropertyElement]s. 2210 * Index [FieldElement] references from [AngularPropertyElement]s.
2211 */ 2211 */
2212 void _indexProperties(List<AngularPropertyElement> properties) { 2212 void _indexProperties(List<AngularPropertyElement> properties) {
2213 for (AngularPropertyElement property in properties) { 2213 for (AngularPropertyElement property in properties) {
2214 FieldElement field = property.field; 2214 FieldElement field = property.field;
2215 if (field != null) { 2215 if (field != null) {
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
2468 * element are available. For example, if the element is a field and the relat ionship is the 2468 * element are available. For example, if the element is a field and the relat ionship is the
2469 * is-referenced-by relationship, then this method will be invoked with each l ocation at which the 2469 * is-referenced-by relationship, then this method will be invoked with each l ocation at which the
2470 * field is referenced. 2470 * field is referenced.
2471 * 2471 *
2472 * @param element the [Element] that has the relationship with the locations 2472 * @param element the [Element] that has the relationship with the locations
2473 * @param relationship the relationship between the given element and the loca tions 2473 * @param relationship the relationship between the given element and the loca tions
2474 * @param locations the locations that were found 2474 * @param locations the locations that were found
2475 */ 2475 */
2476 void hasRelationships(Element element, Relationship relationship, List<Locatio n> locations); 2476 void hasRelationships(Element element, Relationship relationship, List<Locatio n> locations);
2477 } 2477 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698