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

Issue 9290015: Add type refinement to code completion as an experimental option. (Closed)

Created:
8 years, 11 months ago by messick
Modified:
8 years, 11 months ago
Reviewers:
danrubel
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add type refinement to code completion as an experimental option. Fixes 855, 502. To enable, add this to your .options file: com.google.dart.tools.core/debug/RefineTypes = true Type refinement provides useful type info for q and x in the following code: void main() { var x = new List(), y = x.length(); var q = [0], z = q.length; x.isEmpty(); q.isEmpty(); if (x is List) { x.add(3); } } Committed: https://code.google.com/p/dart/source/detail?r=3610

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Patch Set 3 : '' #

Messages

Total messages: 5 (0 generated)
messick
8 years, 11 months ago (2012-01-25 19:04:19 UTC) #1
danrubel
Nice! LGTM... http://codereview.chromium.org/9290015/diff/1/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/CompletionEngine.java File editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/CompletionEngine.java (right): http://codereview.chromium.org/9290015/diff/1/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/CompletionEngine.java#newcode876 editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/CompletionEngine.java:876: public static final boolean DEBUG_REFINE = "true".equalsIgnoreCase(Platform.getDebugOption("com.google.dart.tools.ui/debug/RefineTypes")); ...
8 years, 11 months ago (2012-01-25 20:12:30 UTC) #2
messick
PTAL Note that the name of the option has changed. http://codereview.chromium.org/9290015/diff/1/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/CompletionEngine.java File editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/CompletionEngine.java (right): http://codereview.chromium.org/9290015/diff/1/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/CompletionEngine.java#newcode876 ...
8 years, 11 months ago (2012-01-25 21:58:48 UTC) #3
messick
PTAL Note that the name of the option has changed.
8 years, 11 months ago (2012-01-25 22:27:45 UTC) #4
danrubel
8 years, 11 months ago (2012-01-25 23:08:33 UTC) #5
lgtm

Powered by Google App Engine
This is Rietveld 408576698