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

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

Issue 1762723002: Cleanup 1: split parts into their own libraries, remove unused imports (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
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 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698