| 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; | 5 library engine.resolver; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import "dart:math" as math; | 8 import "dart:math" as math; |
| 9 | 9 |
| 10 import 'package:analyzer/src/generated/utilities_collection.dart'; | 10 import 'package:analyzer/src/generated/utilities_collection.dart'; |
| (...skipping 10976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10987 safelyVisit(_commentBeforeFunction); | 10987 safelyVisit(_commentBeforeFunction); |
| 10988 if (resolveOnlyCommentInFunctionBody) { | 10988 if (resolveOnlyCommentInFunctionBody) { |
| 10989 return null; | 10989 return null; |
| 10990 } | 10990 } |
| 10991 return super.visitEmptyFunctionBody(node); | 10991 return super.visitEmptyFunctionBody(node); |
| 10992 } | 10992 } |
| 10993 | 10993 |
| 10994 @override | 10994 @override |
| 10995 Object visitEnumDeclaration(EnumDeclaration node) { | 10995 Object visitEnumDeclaration(EnumDeclaration node) { |
| 10996 // | 10996 // |
| 10997 // Resolve the metadata in the library scope. | 10997 // Resolve the metadata in the library scope |
| 10998 // and associate the annotations with the element. |
| 10998 // | 10999 // |
| 10999 if (node.metadata != null) { | 11000 if (node.metadata != null) { |
| 11000 node.metadata.accept(this); | 11001 node.metadata.accept(this); |
| 11002 ElementResolver.setMetadata(node.element, node); |
| 11001 } | 11003 } |
| 11002 // | 11004 // |
| 11003 // There is nothing else to do because everything else was resolved by the | 11005 // There is nothing else to do because everything else was resolved by the |
| 11004 // element builder. | 11006 // element builder. |
| 11005 // | 11007 // |
| 11006 return null; | 11008 return null; |
| 11007 } | 11009 } |
| 11008 | 11010 |
| 11009 @override | 11011 @override |
| 11010 Object visitExpressionFunctionBody(ExpressionFunctionBody node) { | 11012 Object visitExpressionFunctionBody(ExpressionFunctionBody node) { |
| (...skipping 4477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15488 nonFields.add(node); | 15490 nonFields.add(node); |
| 15489 return null; | 15491 return null; |
| 15490 } | 15492 } |
| 15491 | 15493 |
| 15492 @override | 15494 @override |
| 15493 Object visitNode(AstNode node) => node.accept(TypeResolverVisitor_this); | 15495 Object visitNode(AstNode node) => node.accept(TypeResolverVisitor_this); |
| 15494 | 15496 |
| 15495 @override | 15497 @override |
| 15496 Object visitWithClause(WithClause node) => null; | 15498 Object visitWithClause(WithClause node) => null; |
| 15497 } | 15499 } |
| OLD | NEW |