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

Unified Diff: pkg/compiler/lib/src/resolution/members.dart

Issue 1311403003: dart2js cps: Track existence of try statements in resolution instead of traversing AST/IR nodes to … (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/resolution/members.dart
diff --git a/pkg/compiler/lib/src/resolution/members.dart b/pkg/compiler/lib/src/resolution/members.dart
index 5b7558bf9d8e2a43efcf39503ffb8b74a12573f9..c3b3461e2f7996839ec19bba273afa66ebce9e8a 100644
--- a/pkg/compiler/lib/src/resolution/members.dart
+++ b/pkg/compiler/lib/src/resolution/members.dart
@@ -4563,6 +4563,10 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> {
}
ResolutionResult visitTryStatement(TryStatement node) {
+ // TODO(karlklose): also track the information about mutated variables, catch, and
Kevin Millikin (Google) 2015/09/07 09:11:17 I guess that's a long line.
+ // finally-block.
+ elements.hasTryStatement = true;
+
visit(node.tryBlock);
if (node.catchBlocks.isEmpty && node.finallyBlock == null) {
error(node.getEndToken().next, MessageKind.NO_CATCH_NOR_FINALLY);

Powered by Google App Engine
This is Rietveld 408576698