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

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

Issue 1036723002: Move "null2" getter from ConstantVisitor to TypeProvider. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 13154 matching lines...) Expand 10 before | Expand all | Expand 10 after
13165 InterfaceType get listType; 13165 InterfaceType get listType;
13166 13166
13167 /** 13167 /**
13168 * Return the type representing the built-in type 'Map'. 13168 * Return the type representing the built-in type 'Map'.
13169 * 13169 *
13170 * @return the type representing the built-in type 'Map' 13170 * @return the type representing the built-in type 'Map'
13171 */ 13171 */
13172 InterfaceType get mapType; 13172 InterfaceType get mapType;
13173 13173
13174 /** 13174 /**
13175 * Return a [DartObjectImpl] representing the `null` object.
13176 */
13177 DartObjectImpl get nullObject;
13178
13179 /**
13175 * Return the type representing the built-in type 'Null'. 13180 * Return the type representing the built-in type 'Null'.
13176 * 13181 *
13177 * @return the type representing the built-in type 'null' 13182 * @return the type representing the built-in type 'null'
13178 */ 13183 */
13179 InterfaceType get nullType; 13184 InterfaceType get nullType;
13180 13185
13181 /** 13186 /**
13182 * Return the type representing the built-in type 'num'. 13187 * Return the type representing the built-in type 'num'.
13183 * 13188 *
13184 * @return the type representing the built-in type 'num' 13189 * @return the type representing the built-in type 'num'
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
13305 * The type representing the built-in type 'List'. 13310 * The type representing the built-in type 'List'.
13306 */ 13311 */
13307 InterfaceType _listType; 13312 InterfaceType _listType;
13308 13313
13309 /** 13314 /**
13310 * The type representing the built-in type 'Map'. 13315 * The type representing the built-in type 'Map'.
13311 */ 13316 */
13312 InterfaceType _mapType; 13317 InterfaceType _mapType;
13313 13318
13314 /** 13319 /**
13320 * An shared object representing the value 'null'.
13321 */
13322 DartObjectImpl _nullObject;
13323
13324 /**
13315 * The type representing the type 'Null'. 13325 * The type representing the type 'Null'.
13316 */ 13326 */
13317 InterfaceType _nullType; 13327 InterfaceType _nullType;
13318 13328
13319 /** 13329 /**
13320 * The type representing the built-in type 'num'. 13330 * The type representing the built-in type 'num'.
13321 */ 13331 */
13322 InterfaceType _numType; 13332 InterfaceType _numType;
13323 13333
13324 /** 13334 /**
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
13418 @override 13428 @override
13419 InterfaceType get iterableType => _iterableType; 13429 InterfaceType get iterableType => _iterableType;
13420 13430
13421 @override 13431 @override
13422 InterfaceType get listType => _listType; 13432 InterfaceType get listType => _listType;
13423 13433
13424 @override 13434 @override
13425 InterfaceType get mapType => _mapType; 13435 InterfaceType get mapType => _mapType;
13426 13436
13427 @override 13437 @override
13438 DartObjectImpl get nullObject {
13439 if (_nullObject == null) {
13440 _nullObject = new DartObjectImpl(nullType, NullState.NULL_STATE);
13441 }
13442 return _nullObject;
13443 }
13444
13445 @override
13428 InterfaceType get nullType => _nullType; 13446 InterfaceType get nullType => _nullType;
13429 13447
13430 @override 13448 @override
13431 InterfaceType get numType => _numType; 13449 InterfaceType get numType => _numType;
13432 13450
13433 @override 13451 @override
13434 InterfaceType get objectType => _objectType; 13452 InterfaceType get objectType => _objectType;
13435 13453
13436 @override 13454 @override
13437 InterfaceType get stackTraceType => _stackTraceType; 13455 InterfaceType get stackTraceType => _stackTraceType;
(...skipping 1950 matching lines...) Expand 10 before | Expand all | Expand 10 after
15388 } 15406 }
15389 15407
15390 bool isCatchException(LocalVariableElement element) { 15408 bool isCatchException(LocalVariableElement element) {
15391 return catchExceptionElements.contains(element); 15409 return catchExceptionElements.contains(element);
15392 } 15410 }
15393 15411
15394 bool isCatchStackTrace(LocalVariableElement element) { 15412 bool isCatchStackTrace(LocalVariableElement element) {
15395 return catchStackTraceElements.contains(element); 15413 return catchStackTraceElements.contains(element);
15396 } 15414 }
15397 } 15415 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/constant.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