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

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

Issue 1087223002: Capture annotations on enums (issue 23071) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/resolver_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698