| 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.ast; | 8 library engine.ast; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 6924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6935 */ | 6935 */ |
| 6936 static Element locateWithOffset(AstNode node, int offset) { | 6936 static Element locateWithOffset(AstNode node, int offset) { |
| 6937 if (node == null) { | 6937 if (node == null) { |
| 6938 return null; | 6938 return null; |
| 6939 } | 6939 } |
| 6940 // try to get Element from node | 6940 // try to get Element from node |
| 6941 Element nodeElement = locate(node); | 6941 Element nodeElement = locate(node); |
| 6942 if (nodeElement != null) { | 6942 if (nodeElement != null) { |
| 6943 return nodeElement; | 6943 return nodeElement; |
| 6944 } | 6944 } |
| 6945 // TODO(brianwilkerson) Implement or delete the code below. | |
| 6946 // // try to get Angular specific Element | |
| 6947 // { | |
| 6948 // Element element = null; | |
| 6949 // if (element != null) { | |
| 6950 // return element; | |
| 6951 // } | |
| 6952 // } | |
| 6953 // // try to get Polymer specific Element | |
| 6954 // { | |
| 6955 // Element element = null; | |
| 6956 // if (element != null) { | |
| 6957 // return element; | |
| 6958 // } | |
| 6959 // } | |
| 6960 // no Element | 6945 // no Element |
| 6961 return null; | 6946 return null; |
| 6962 } | 6947 } |
| 6963 } | 6948 } |
| 6964 | 6949 |
| 6965 /** | 6950 /** |
| 6966 * Visitor that maps nodes to elements. | 6951 * Visitor that maps nodes to elements. |
| 6967 */ | 6952 */ |
| 6968 class ElementLocator_ElementMapper extends GeneralizingAstVisitor<Element> { | 6953 class ElementLocator_ElementMapper extends GeneralizingAstVisitor<Element> { |
| 6969 @override | 6954 @override |
| (...skipping 14597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21567 } | 21552 } |
| 21568 | 21553 |
| 21569 @override | 21554 @override |
| 21570 accept(AstVisitor visitor) => visitor.visitYieldStatement(this); | 21555 accept(AstVisitor visitor) => visitor.visitYieldStatement(this); |
| 21571 | 21556 |
| 21572 @override | 21557 @override |
| 21573 void visitChildren(AstVisitor visitor) { | 21558 void visitChildren(AstVisitor visitor) { |
| 21574 safelyVisitChild(_expression, visitor); | 21559 safelyVisitChild(_expression, visitor); |
| 21575 } | 21560 } |
| 21576 } | 21561 } |
| OLD | NEW |