Chromium Code Reviews
DescriptionAdd 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)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||