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