| 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 analyzer.src.generated.resolver; | 5 library analyzer.src.generated.resolver; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/ast/token.dart'; | 10 import 'package:analyzer/dart/ast/token.dart'; |
| (...skipping 12030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12041 void _resolve(ClassElementImpl classElement, WithClause withClause, | 12041 void _resolve(ClassElementImpl classElement, WithClause withClause, |
| 12042 ImplementsClause implementsClause) { | 12042 ImplementsClause implementsClause) { |
| 12043 if (withClause != null) { | 12043 if (withClause != null) { |
| 12044 List<InterfaceType> mixinTypes = _resolveTypes( | 12044 List<InterfaceType> mixinTypes = _resolveTypes( |
| 12045 withClause.mixinTypes, | 12045 withClause.mixinTypes, |
| 12046 CompileTimeErrorCode.MIXIN_OF_NON_CLASS, | 12046 CompileTimeErrorCode.MIXIN_OF_NON_CLASS, |
| 12047 CompileTimeErrorCode.MIXIN_OF_ENUM, | 12047 CompileTimeErrorCode.MIXIN_OF_ENUM, |
| 12048 CompileTimeErrorCode.MIXIN_OF_NON_CLASS); | 12048 CompileTimeErrorCode.MIXIN_OF_NON_CLASS); |
| 12049 if (classElement != null) { | 12049 if (classElement != null) { |
| 12050 classElement.mixins = mixinTypes; | 12050 classElement.mixins = mixinTypes; |
| 12051 classElement.withClauseRange = | |
| 12052 new SourceRange(withClause.offset, withClause.length); | |
| 12053 } | 12051 } |
| 12054 } | 12052 } |
| 12055 if (implementsClause != null) { | 12053 if (implementsClause != null) { |
| 12056 NodeList<TypeName> interfaces = implementsClause.interfaces; | 12054 NodeList<TypeName> interfaces = implementsClause.interfaces; |
| 12057 List<InterfaceType> interfaceTypes = _resolveTypes( | 12055 List<InterfaceType> interfaceTypes = _resolveTypes( |
| 12058 interfaces, | 12056 interfaces, |
| 12059 CompileTimeErrorCode.IMPLEMENTS_NON_CLASS, | 12057 CompileTimeErrorCode.IMPLEMENTS_NON_CLASS, |
| 12060 CompileTimeErrorCode.IMPLEMENTS_ENUM, | 12058 CompileTimeErrorCode.IMPLEMENTS_ENUM, |
| 12061 CompileTimeErrorCode.IMPLEMENTS_DYNAMIC); | 12059 CompileTimeErrorCode.IMPLEMENTS_DYNAMIC); |
| 12062 if (classElement != null) { | 12060 if (classElement != null) { |
| (...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12802 nonFields.add(node); | 12800 nonFields.add(node); |
| 12803 return null; | 12801 return null; |
| 12804 } | 12802 } |
| 12805 | 12803 |
| 12806 @override | 12804 @override |
| 12807 Object visitNode(AstNode node) => node.accept(TypeResolverVisitor_this); | 12805 Object visitNode(AstNode node) => node.accept(TypeResolverVisitor_this); |
| 12808 | 12806 |
| 12809 @override | 12807 @override |
| 12810 Object visitWithClause(WithClause node) => null; | 12808 Object visitWithClause(WithClause node) => null; |
| 12811 } | 12809 } |
| OLD | NEW |