| 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 13969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13980 } | 13980 } |
| 13981 | 13981 |
| 13982 @override | 13982 @override |
| 13983 Object visitClassDeclaration(ClassDeclaration node) { | 13983 Object visitClassDeclaration(ClassDeclaration node) { |
| 13984 _hasReferenceToSuper = false; | 13984 _hasReferenceToSuper = false; |
| 13985 super.visitClassDeclaration(node); | 13985 super.visitClassDeclaration(node); |
| 13986 ClassElementImpl classElement = _getClassElement(node.name); | 13986 ClassElementImpl classElement = _getClassElement(node.name); |
| 13987 if (classElement != null) { | 13987 if (classElement != null) { |
| 13988 classElement.hasReferenceToSuper = _hasReferenceToSuper; | 13988 classElement.hasReferenceToSuper = _hasReferenceToSuper; |
| 13989 } | 13989 } |
| 13990 return null; |
| 13990 } | 13991 } |
| 13991 | 13992 |
| 13992 @override | 13993 @override |
| 13993 void visitClassDeclarationInScope(ClassDeclaration node) { | 13994 void visitClassDeclarationInScope(ClassDeclaration node) { |
| 13994 super.visitClassDeclarationInScope(node); | 13995 super.visitClassDeclarationInScope(node); |
| 13995 ExtendsClause extendsClause = node.extendsClause; | 13996 ExtendsClause extendsClause = node.extendsClause; |
| 13996 WithClause withClause = node.withClause; | 13997 WithClause withClause = node.withClause; |
| 13997 ImplementsClause implementsClause = node.implementsClause; | 13998 ImplementsClause implementsClause = node.implementsClause; |
| 13998 ClassElementImpl classElement = _getClassElement(node.name); | 13999 ClassElementImpl classElement = _getClassElement(node.name); |
| 13999 InterfaceType superclassType = null; | 14000 InterfaceType superclassType = null; |
| (...skipping 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15724 * library. | 15725 * library. |
| 15725 */ | 15726 */ |
| 15726 final HashSet<String> members = new HashSet<String>(); | 15727 final HashSet<String> members = new HashSet<String>(); |
| 15727 | 15728 |
| 15728 /** | 15729 /** |
| 15729 * Names of resolved or unresolved class members that are read in the | 15730 * Names of resolved or unresolved class members that are read in the |
| 15730 * library. | 15731 * library. |
| 15731 */ | 15732 */ |
| 15732 final HashSet<String> readMembers = new HashSet<String>(); | 15733 final HashSet<String> readMembers = new HashSet<String>(); |
| 15733 } | 15734 } |
| OLD | NEW |