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

Side by Side Diff: pkg/compiler/lib/src/native/js.dart

Issue 2221893003: pkg/compiler: fix imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « pkg/compiler/lib/src/native/behavior.dart ('k') | pkg/compiler/lib/src/native/scanner.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/native/behavior.dart ('k') | pkg/compiler/lib/src/native/scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698