| OLD | NEW |
| 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 import '../js/js.dart' as js; | 5 import '../js/js.dart' as js; |
| 6 import '../universe/side_effects.dart' show SideEffects; | 6 import '../universe/side_effects.dart' show SideEffects; |
| 7 | |
| 8 import 'behavior.dart'; | 7 import 'behavior.dart'; |
| 9 | 8 |
| 10 class HasCapturedPlaceholders extends js.BaseVisitor { | 9 class HasCapturedPlaceholders extends js.BaseVisitor { |
| 11 HasCapturedPlaceholders._(); | 10 HasCapturedPlaceholders._(); |
| 12 | 11 |
| 13 static bool check(js.Node node) { | 12 static bool check(js.Node node) { |
| 14 HasCapturedPlaceholders visitor = new HasCapturedPlaceholders._(); | 13 HasCapturedPlaceholders visitor = new HasCapturedPlaceholders._(); |
| 15 node.accept(visitor); | 14 node.accept(visitor); |
| 16 return visitor.found; | 15 return visitor.found; |
| 17 } | 16 } |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 receiver.isPositional && | 287 receiver.isPositional && |
| 289 receiver.nameOrPosition == 0) { | 288 receiver.nameOrPosition == 0) { |
| 290 first = NativeThrowBehavior.MAY_THROW_ONLY_ON_FIRST_ARGUMENT_ACCESS; | 289 first = NativeThrowBehavior.MAY_THROW_ONLY_ON_FIRST_ARGUMENT_ACCESS; |
| 291 } else { | 290 } else { |
| 292 first = NativeThrowBehavior.MAY; | 291 first = NativeThrowBehavior.MAY; |
| 293 } | 292 } |
| 294 | 293 |
| 295 return sequence(first, second); | 294 return sequence(first, second); |
| 296 } | 295 } |
| 297 } | 296 } |
| OLD | NEW |