| 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 library engine.resolver.element_resolver; | 5 library engine.resolver.element_resolver; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'ast.dart'; | 9 import 'ast.dart'; |
| 10 import 'element.dart'; | 10 import 'element.dart'; |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 return null; | 386 return null; |
| 387 } | 387 } |
| 388 | 388 |
| 389 @override | 389 @override |
| 390 Object visitDeclaredIdentifier(DeclaredIdentifier node) { | 390 Object visitDeclaredIdentifier(DeclaredIdentifier node) { |
| 391 _setMetadata(node.element, node); | 391 _setMetadata(node.element, node); |
| 392 return null; | 392 return null; |
| 393 } | 393 } |
| 394 | 394 |
| 395 @override | 395 @override |
| 396 Object visitEnumDeclaration(EnumDeclaration node) { |
| 397 _setMetadata(node.element, node); |
| 398 return null; |
| 399 } |
| 400 |
| 401 @override |
| 396 Object visitExportDirective(ExportDirective node) { | 402 Object visitExportDirective(ExportDirective node) { |
| 397 ExportElement exportElement = node.element; | 403 ExportElement exportElement = node.element; |
| 398 if (exportElement != null) { | 404 if (exportElement != null) { |
| 399 // The element is null when the URI is invalid | 405 // The element is null when the URI is invalid |
| 400 // TODO(brianwilkerson) Figure out whether the element can ever be | 406 // TODO(brianwilkerson) Figure out whether the element can ever be |
| 401 // something other than an ExportElement | 407 // something other than an ExportElement |
| 402 _resolveCombinators(exportElement.exportedLibrary, node.combinators); | 408 _resolveCombinators(exportElement.exportedLibrary, node.combinators); |
| 403 _setMetadata(exportElement, node); | 409 _setMetadata(exportElement, node); |
| 404 } | 410 } |
| 405 return null; | 411 return null; |
| (...skipping 2364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2770 | 2776 |
| 2771 @override | 2777 @override |
| 2772 Element get staticElement => null; | 2778 Element get staticElement => null; |
| 2773 | 2779 |
| 2774 @override | 2780 @override |
| 2775 accept(AstVisitor visitor) => null; | 2781 accept(AstVisitor visitor) => null; |
| 2776 | 2782 |
| 2777 @override | 2783 @override |
| 2778 void visitChildren(AstVisitor visitor) {} | 2784 void visitChildren(AstVisitor visitor) {} |
| 2779 } | 2785 } |
| OLD | NEW |