| 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:math" as math; |      7 import "dart:math" as math; | 
|      8 import 'dart:collection'; |      8 import 'dart:collection'; | 
|      9  |      9  | 
|     10 import 'package:analyzer/src/generated/utilities_collection.dart'; |     10 import 'package:analyzer/src/generated/utilities_collection.dart'; | 
| (...skipping 4522 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   4533       if (element == null || |   4533       if (element == null || | 
|   4534           element is! LocalElement && !identical(element, _enclosingExec)) { |   4534           element is! LocalElement && !identical(element, _enclosingExec)) { | 
|   4535         usedElements.members.add(node.name); |   4535         usedElements.members.add(node.name); | 
|   4536         if (isIdentifierRead) { |   4536         if (isIdentifierRead) { | 
|   4537           usedElements.readMembers.add(node.name); |   4537           usedElements.readMembers.add(node.name); | 
|   4538         } |   4538         } | 
|   4539       } |   4539       } | 
|   4540     } |   4540     } | 
|   4541   } |   4541   } | 
|   4542  |   4542  | 
|   4543   @override |  | 
|   4544   visitTypeName(TypeName node) { |  | 
|   4545     _useIdentifierElement(node.name); |  | 
|   4546   } |  | 
|   4547  |  | 
|   4548   /** |   4543   /** | 
|   4549    * Marks an [Element] of [node] as used in the library. |   4544    * Marks an [Element] of [node] as used in the library. | 
|   4550    */ |   4545    */ | 
|   4551   void _useIdentifierElement(Identifier node) { |   4546   void _useIdentifierElement(Identifier node) { | 
|   4552     Element element = node.staticElement; |   4547     Element element = node.staticElement; | 
|   4553     if (element == null) { |   4548     if (element == null) { | 
|   4554       return; |   4549       return; | 
|   4555     } |   4550     } | 
|   4556     // check if a local element |   4551     // check if a local element | 
|   4557     if (!identical(element.library, _enclosingLibrary)) { |   4552     if (!identical(element.library, _enclosingLibrary)) { | 
| (...skipping 10857 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  15415     nonFields.add(node); |  15410     nonFields.add(node); | 
|  15416     return null; |  15411     return null; | 
|  15417   } |  15412   } | 
|  15418  |  15413  | 
|  15419   @override |  15414   @override | 
|  15420   Object visitNode(AstNode node) => node.accept(TypeResolverVisitor_this); |  15415   Object visitNode(AstNode node) => node.accept(TypeResolverVisitor_this); | 
|  15421  |  15416  | 
|  15422   @override |  15417   @override | 
|  15423   Object visitWithClause(WithClause node) => null; |  15418   Object visitWithClause(WithClause node) => null; | 
|  15424 } |  15419 } | 
| OLD | NEW |