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

Side by Side Diff: pkg/compiler/lib/src/js_backend/no_such_method_registry.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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 '../common.dart'; 5 import '../common.dart';
6 import '../common/names.dart' show Identifiers, Names, Selectors, Uris; 6 import '../common/names.dart' show Identifiers, Names, Selectors, Uris;
7 import '../compiler.dart' show Compiler; 7 import '../compiler.dart' show Compiler;
8 import '../elements/elements.dart'; 8 import '../elements/elements.dart';
9 import '../tree/tree.dart'; 9 import '../tree/tree.dart';
10 import '../types/types.dart'; 10 import '../types/types.dart';
11
12 import 'backend.dart'; 11 import 'backend.dart';
13 12
14 /** 13 /**
15 * Categorizes `noSuchMethod` implementations. 14 * Categorizes `noSuchMethod` implementations.
16 * 15 *
17 * If user code includes `noSuchMethod` implementations, type inference is 16 * If user code includes `noSuchMethod` implementations, type inference is
18 * hindered because (for instance) any selector where the type of the 17 * hindered because (for instance) any selector where the type of the
19 * receiver is not known all implementations of `noSuchMethod` must be taken 18 * receiver is not known all implementations of `noSuchMethod` must be taken
20 * into account when inferring the return type. 19 * into account when inferring the return type.
21 * 20 *
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 if (body.statements.nodes.head is ExpressionStatement) { 264 if (body.statements.nodes.head is ExpressionStatement) {
266 ExpressionStatement stmt = body.statements.nodes.head; 265 ExpressionStatement stmt = body.statements.nodes.head;
267 return stmt.expression is Throw; 266 return stmt.expression is Throw;
268 } 267 }
269 } 268 }
270 return false; 269 return false;
271 } 270 }
272 } 271 }
273 272
274 enum NsmCategory { DEFAULT, THROWING, NOT_APPLICABLE, OTHER, } 273 enum NsmCategory { DEFAULT, THROWING, NOT_APPLICABLE, OTHER, }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698