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

Side by Side Diff: pkg/compiler/lib/src/js_backend/no_such_method_registry.dart

Issue 2324213003: build kernel for the entire program after resolution (Closed)
Patch Set: Created 4 years, 3 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; 6 import '../common/names.dart' show Identifiers, Names, Selectors;
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';
11 import 'backend.dart'; 10 import 'backend.dart';
12 11
13 /** 12 /**
14 * Categorizes `noSuchMethod` implementations. 13 * Categorizes `noSuchMethod` implementations.
15 * 14 *
16 * If user code includes `noSuchMethod` implementations, type inference is 15 * If user code includes `noSuchMethod` implementations, type inference is
17 * hindered because (for instance) any selector where the type of the 16 * hindered because (for instance) any selector where the type of the
18 * receiver is not known all implementations of `noSuchMethod` must be taken 17 * receiver is not known all implementations of `noSuchMethod` must be taken
19 * into account when inferring the return type. 18 * into account when inferring the return type.
20 * 19 *
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 if (body.statements.nodes.head is ExpressionStatement) { 261 if (body.statements.nodes.head is ExpressionStatement) {
263 ExpressionStatement stmt = body.statements.nodes.head; 262 ExpressionStatement stmt = body.statements.nodes.head;
264 return stmt.expression is Throw; 263 return stmt.expression is Throw;
265 } 264 }
266 } 265 }
267 return false; 266 return false;
268 } 267 }
269 } 268 }
270 269
271 enum NsmCategory { DEFAULT, THROWING, NOT_APPLICABLE, OTHER, } 270 enum NsmCategory { DEFAULT, THROWING, NOT_APPLICABLE, OTHER, }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698