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

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

Issue 1355773002: Make type system changes backwards compatible (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
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 engine.resolver.error_verifier; 5 library engine.resolver.error_verifier;
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/static_type_analyzer.dart'; 10 import 'package:analyzer/src/generated/static_type_analyzer.dart';
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 /** 262 /**
263 * If `true`, mixins are allowed to inherit from types other than Object, and 263 * If `true`, mixins are allowed to inherit from types other than Object, and
264 * are allowed to reference `super`. 264 * are allowed to reference `super`.
265 */ 265 */
266 final bool enableSuperMixins; 266 final bool enableSuperMixins;
267 267
268 /** 268 /**
269 * Initialize a newly created error verifier. 269 * Initialize a newly created error verifier.
270 */ 270 */
271 ErrorVerifier(this._errorReporter, this._currentLibrary, this._typeProvider, 271 ErrorVerifier(this._errorReporter, this._currentLibrary, this._typeProvider,
272 this._typeSystem, this._inheritanceManager, this.enableSuperMixins) { 272 this._inheritanceManager, this.enableSuperMixins) {
273 this._isInSystemLibrary = _currentLibrary.source.isInSystemLibrary; 273 this._isInSystemLibrary = _currentLibrary.source.isInSystemLibrary;
274 this._hasExtUri = _currentLibrary.hasExtUri; 274 this._hasExtUri = _currentLibrary.hasExtUri;
275 _isEnclosingConstructorConst = false; 275 _isEnclosingConstructorConst = false;
276 _isInCatchClause = false; 276 _isInCatchClause = false;
277 _isInStaticVariableDeclaration = false; 277 _isInStaticVariableDeclaration = false;
278 _isInInstanceVariableDeclaration = false; 278 _isInInstanceVariableDeclaration = false;
279 _isInInstanceVariableInitializer = false; 279 _isInInstanceVariableInitializer = false;
280 _isInConstructorInitializer = false; 280 _isInConstructorInitializer = false;
281 _isInStaticMethod = false; 281 _isInStaticMethod = false;
282 _boolType = _typeProvider.boolType; 282 _boolType = _typeProvider.boolType;
283 _intType = _typeProvider.intType; 283 _intType = _typeProvider.intType;
284 _DISALLOWED_TYPES_TO_EXTEND_OR_IMPLEMENT = _typeProvider.nonSubtypableTypes; 284 _DISALLOWED_TYPES_TO_EXTEND_OR_IMPLEMENT = _typeProvider.nonSubtypableTypes;
285 _typeSystem = _currentLibrary.context.typeSystem;
285 } 286 }
286 287
287 @override 288 @override
288 Object visitAnnotation(Annotation node) { 289 Object visitAnnotation(Annotation node) {
289 _checkForInvalidAnnotationFromDeferredLibrary(node); 290 _checkForInvalidAnnotationFromDeferredLibrary(node);
290 return super.visitAnnotation(node); 291 return super.visitAnnotation(node);
291 } 292 }
292 293
293 @override 294 @override
294 Object visitArgumentList(ArgumentList node) { 295 Object visitArgumentList(ArgumentList node) {
(...skipping 5776 matching lines...) Expand 10 before | Expand all | Expand 10 after
6071 toCheck.add(type.element); 6072 toCheck.add(type.element);
6072 // type arguments 6073 // type arguments
6073 if (type is InterfaceType) { 6074 if (type is InterfaceType) {
6074 InterfaceType interfaceType = type; 6075 InterfaceType interfaceType = type;
6075 for (DartType typeArgument in interfaceType.typeArguments) { 6076 for (DartType typeArgument in interfaceType.typeArguments) {
6076 _addTypeToCheck(typeArgument); 6077 _addTypeToCheck(typeArgument);
6077 } 6078 }
6078 } 6079 }
6079 } 6080 }
6080 } 6081 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698