| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 part of type_graph_inferrer; | 5 part of type_graph_inferrer; |
| 6 | 6 |
| 7 // A set of selectors we know do not escape the elements inside the | 7 // A set of selectors we know do not escape the elements inside the |
| 8 // list. | 8 // list. |
| 9 Set<String> doesNotEscapeListSet = new Set<String>.from( | 9 Set<String> doesNotEscapeListSet = new Set<String>.from( |
| 10 const <String>[ | 10 const <String>[ |
| 11 // From Object. | 11 // From Object. |
| 12 '==', | 12 '==', |
| 13 'hashCode', | 13 'hashCode', |
| 14 'toString', | 14 'toString', |
| 15 'noSuchMethod', | 15 'noSuchMethod', |
| 16 'runtimeType', | 16 'runtimeType', |
| 17 | 17 |
| 18 // From Iterable. | 18 // From Iterable. |
| 19 'isEmpty', | 19 'isEmpty', |
| 20 'isNotEmpty', | 20 'isNotEmpty', |
| 21 'length', | 21 'length', |
| 22 'any', | |
| 23 'contains', | 22 'contains', |
| 24 'every', | |
| 25 'join', | 23 'join', |
| 26 | 24 |
| 27 // From List. | 25 // From List. |
| 28 'add', | 26 'add', |
| 29 'addAll', | 27 'addAll', |
| 30 'clear', | 28 'clear', |
| 31 'fillRange', | 29 'fillRange', |
| 32 'indexOf', | 30 'indexOf', |
| 33 'insert', | 31 'insert', |
| 34 'insertAll', | 32 'insertAll', |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 } | 387 } |
| 390 if (isParameterOfListAddingMethod(info.element) || | 388 if (isParameterOfListAddingMethod(info.element) || |
| 391 isParameterOfMapAddingMethod(info.element)) { | 389 isParameterOfMapAddingMethod(info.element)) { |
| 392 // These elements are being handled in | 390 // These elements are being handled in |
| 393 // [visitDynamicCallSiteTypeInformation]. | 391 // [visitDynamicCallSiteTypeInformation]. |
| 394 return; | 392 return; |
| 395 } | 393 } |
| 396 addNewEscapeInformation(info); | 394 addNewEscapeInformation(info); |
| 397 } | 395 } |
| 398 } | 396 } |
| OLD | NEW |