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

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

Issue 897673003: Implement new return type checking rules in analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reformat and sort class members. Created 5 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 | 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; 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 13392 matching lines...) Expand 10 before | Expand all | Expand 10 after
13403 DartType get dynamicType; 13403 DartType get dynamicType;
13404 13404
13405 /** 13405 /**
13406 * Return the type representing the built-in type 'Function'. 13406 * Return the type representing the built-in type 'Function'.
13407 * 13407 *
13408 * @return the type representing the built-in type 'Function' 13408 * @return the type representing the built-in type 'Function'
13409 */ 13409 */
13410 InterfaceType get functionType; 13410 InterfaceType get functionType;
13411 13411
13412 /** 13412 /**
13413 * Return the type representing 'Future<dynamic>'.
13414 */
13415 InterfaceType get futureDynamicType;
13416
13417 /**
13413 * Return the type representing 'Future<Null>'. 13418 * Return the type representing 'Future<Null>'.
13414 */ 13419 */
13415 InterfaceType get futureNullType; 13420 InterfaceType get futureNullType;
13416 13421
13417 /** 13422 /**
13418 * Return the type representing the built-in type 'Future'. 13423 * Return the type representing the built-in type 'Future'.
13419 */ 13424 */
13420 InterfaceType get futureType; 13425 InterfaceType get futureType;
13421 13426
13422 /** 13427 /**
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
13544 * The type representing the built-in type 'dynamic'. 13549 * The type representing the built-in type 'dynamic'.
13545 */ 13550 */
13546 DartType _dynamicType; 13551 DartType _dynamicType;
13547 13552
13548 /** 13553 /**
13549 * The type representing the built-in type 'Function'. 13554 * The type representing the built-in type 'Function'.
13550 */ 13555 */
13551 InterfaceType _functionType; 13556 InterfaceType _functionType;
13552 13557
13553 /** 13558 /**
13559 * The type representing 'Future<dynamic>'.
13560 */
13561 InterfaceType _futureDynamicType;
13562
13563 /**
13554 * The type representing 'Future<Null>'. 13564 * The type representing 'Future<Null>'.
13555 */ 13565 */
13556 InterfaceType _futureNullType; 13566 InterfaceType _futureNullType;
13557 13567
13558 /** 13568 /**
13559 * The type representing the built-in type 'Future'. 13569 * The type representing the built-in type 'Future'.
13560 */ 13570 */
13561 InterfaceType _futureType; 13571 InterfaceType _futureType;
13562 13572
13563 /** 13573 /**
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
13656 @override 13666 @override
13657 InterfaceType get doubleType => _doubleType; 13667 InterfaceType get doubleType => _doubleType;
13658 13668
13659 @override 13669 @override
13660 DartType get dynamicType => _dynamicType; 13670 DartType get dynamicType => _dynamicType;
13661 13671
13662 @override 13672 @override
13663 InterfaceType get functionType => _functionType; 13673 InterfaceType get functionType => _functionType;
13664 13674
13665 @override 13675 @override
13676 InterfaceType get futureDynamicType => _futureDynamicType;
13677
13678 @override
13666 InterfaceType get futureNullType => _futureNullType; 13679 InterfaceType get futureNullType => _futureNullType;
13667 13680
13668 @override 13681 @override
13669 InterfaceType get futureType => _futureType; 13682 InterfaceType get futureType => _futureType;
13670 13683
13671 @override 13684 @override
13672 InterfaceType get intType => _intType; 13685 InterfaceType get intType => _intType;
13673 13686
13674 @override 13687 @override
13675 InterfaceType get iterableDynamicType => _iterableDynamicType; 13688 InterfaceType get iterableDynamicType => _iterableDynamicType;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
13755 _mapType = _getType(coreNamespace, "Map"); 13768 _mapType = _getType(coreNamespace, "Map");
13756 _nullType = _getType(coreNamespace, "Null"); 13769 _nullType = _getType(coreNamespace, "Null");
13757 _numType = _getType(coreNamespace, "num"); 13770 _numType = _getType(coreNamespace, "num");
13758 _objectType = _getType(coreNamespace, "Object"); 13771 _objectType = _getType(coreNamespace, "Object");
13759 _stackTraceType = _getType(coreNamespace, "StackTrace"); 13772 _stackTraceType = _getType(coreNamespace, "StackTrace");
13760 _streamType = _getType(asyncNamespace, "Stream"); 13773 _streamType = _getType(asyncNamespace, "Stream");
13761 _stringType = _getType(coreNamespace, "String"); 13774 _stringType = _getType(coreNamespace, "String");
13762 _symbolType = _getType(coreNamespace, "Symbol"); 13775 _symbolType = _getType(coreNamespace, "Symbol");
13763 _typeType = _getType(coreNamespace, "Type"); 13776 _typeType = _getType(coreNamespace, "Type");
13764 _undefinedType = UndefinedTypeImpl.instance; 13777 _undefinedType = UndefinedTypeImpl.instance;
13778 _futureDynamicType = _futureType.substitute4(<DartType>[_dynamicType]);
13765 _futureNullType = _futureType.substitute4(<DartType>[_nullType]); 13779 _futureNullType = _futureType.substitute4(<DartType>[_nullType]);
13766 _iterableDynamicType = _iterableType.substitute4(<DartType>[_dynamicType]); 13780 _iterableDynamicType = _iterableType.substitute4(<DartType>[_dynamicType]);
13767 _streamDynamicType = _streamType.substitute4(<DartType>[_dynamicType]); 13781 _streamDynamicType = _streamType.substitute4(<DartType>[_dynamicType]);
13768 } 13782 }
13769 } 13783 }
13770 13784
13771 /** 13785 /**
13772 * Instances of the class `TypeResolverVisitor` are used to resolve the types as sociated with 13786 * Instances of the class `TypeResolverVisitor` are used to resolve the types as sociated with
13773 * the elements in the element model. This includes the types of superclasses, m ixins, interfaces, 13787 * the elements in the element model. This includes the types of superclasses, m ixins, interfaces,
13774 * fields, methods, parameters, and local variables. As a side-effect, this also finishes building 13788 * fields, methods, parameters, and local variables. As a side-effect, this also finishes building
(...skipping 1882 matching lines...) Expand 10 before | Expand all | Expand 10 after
15657 * library. 15671 * library.
15658 */ 15672 */
15659 final HashSet<String> members = new HashSet<String>(); 15673 final HashSet<String> members = new HashSet<String>();
15660 15674
15661 /** 15675 /**
15662 * Names of resolved or unresolved class members that are read in the 15676 * Names of resolved or unresolved class members that are read in the
15663 * library. 15677 * library.
15664 */ 15678 */
15665 final HashSet<String> readMembers = new HashSet<String>(); 15679 final HashSet<String> readMembers = new HashSet<String>();
15666 } 15680 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/error_verifier.dart ('k') | pkg/analyzer/lib/src/generated/testing/test_type_provider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698