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

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

Issue 1069473002: Provide access to list of types that cannot be subtyped (issue 23125) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 | Annotate | Revision Log
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: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/static_type_analyzer.dart'; 10 import 'package:analyzer/src/generated/static_type_analyzer.dart';
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 this._hasExtUri = _currentLibrary.hasExtUri; 263 this._hasExtUri = _currentLibrary.hasExtUri;
264 _isEnclosingConstructorConst = false; 264 _isEnclosingConstructorConst = false;
265 _isInCatchClause = false; 265 _isInCatchClause = false;
266 _isInStaticVariableDeclaration = false; 266 _isInStaticVariableDeclaration = false;
267 _isInInstanceVariableDeclaration = false; 267 _isInInstanceVariableDeclaration = false;
268 _isInInstanceVariableInitializer = false; 268 _isInInstanceVariableInitializer = false;
269 _isInConstructorInitializer = false; 269 _isInConstructorInitializer = false;
270 _isInStaticMethod = false; 270 _isInStaticMethod = false;
271 _boolType = _typeProvider.boolType; 271 _boolType = _typeProvider.boolType;
272 _intType = _typeProvider.intType; 272 _intType = _typeProvider.intType;
273 _DISALLOWED_TYPES_TO_EXTEND_OR_IMPLEMENT = <InterfaceType>[ 273 _DISALLOWED_TYPES_TO_EXTEND_OR_IMPLEMENT = _typeProvider.nonSubtypableTypes;
274 _typeProvider.nullType,
275 _typeProvider.numType,
276 _intType,
277 _typeProvider.doubleType,
278 _boolType,
279 _typeProvider.stringType
280 ];
281 } 274 }
282 275
283 @override 276 @override
284 Object visitAnnotation(Annotation node) { 277 Object visitAnnotation(Annotation node) {
285 _checkForInvalidAnnotationFromDeferredLibrary(node); 278 _checkForInvalidAnnotationFromDeferredLibrary(node);
286 return super.visitAnnotation(node); 279 return super.visitAnnotation(node);
287 } 280 }
288 281
289 @override 282 @override
290 Object visitArgumentList(ArgumentList node) { 283 Object visitArgumentList(ArgumentList node) {
(...skipping 5687 matching lines...) Expand 10 before | Expand all | Expand 10 after
5978 toCheck.add(type.element); 5971 toCheck.add(type.element);
5979 // type arguments 5972 // type arguments
5980 if (type is InterfaceType) { 5973 if (type is InterfaceType) {
5981 InterfaceType interfaceType = type; 5974 InterfaceType interfaceType = type;
5982 for (DartType typeArgument in interfaceType.typeArguments) { 5975 for (DartType typeArgument in interfaceType.typeArguments) {
5983 _addTypeToCheck(typeArgument); 5976 _addTypeToCheck(typeArgument);
5984 } 5977 }
5985 } 5978 }
5986 } 5979 }
5987 } 5980 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | pkg/analyzer/lib/src/generated/resolver.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698