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

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

Issue 1709723002: Remove ClassElementImpl.withClauseRange. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | no next file » | 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 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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698