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

Issue 10913168: Issue 5004. Type inference with 'is!' and 'continue'. (Closed)

Created:
8 years, 3 months ago by scheglov
Modified:
8 years, 3 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 5

Patch Set 2 : Tweaks comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -4 lines) Patch
M compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java View 1 4 chunks +55 lines, -4 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java View 1 chunk +36 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
scheglov
8 years, 3 months ago (2012-09-10 14:17:47 UTC) #1
Brian Wilkerson
https://chromiumcodereview.appspot.com/10913168/diff/1/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java File compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java (right): https://chromiumcodereview.appspot.com/10913168/diff/1/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java#newcode835 compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java:835: return true; Does "L: while(...) { continue L; }" ...
8 years, 3 months ago (2012-09-10 15:27:06 UTC) #2
scheglov
https://chromiumcodereview.appspot.com/10913168/diff/1/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java File compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java (right): https://chromiumcodereview.appspot.com/10913168/diff/1/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java#newcode835 compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java:835: return true; On 2012/09/10 15:27:06, Brian Wilkerson wrote: > ...
8 years, 3 months ago (2012-09-10 15:38:11 UTC) #3
Brian Wilkerson
8 years, 3 months ago (2012-09-10 15:42:50 UTC) #4
LGTM

https://chromiumcodereview.appspot.com/10913168/diff/1/compiler/java/com/goog...
File compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java (right):

https://chromiumcodereview.appspot.com/10913168/diff/1/compiler/java/com/goog...
compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java:838: return true;
> This looks safe for me, we will not infer anything more by not handling
switch.

Never mind. I understand now. We're not looking inside switch statements, so
there's no possibility of confusion.

Powered by Google App Engine
This is Rietveld 408576698