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

Unified Diff: pkg/analysis_services/lib/src/generated/util.dart

Issue 263213007: New analysis_server snapshot and completion.dart in analysis_services. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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
« no previous file with comments | « pkg/analysis_services/lib/src/generated/stubs.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_services/lib/src/generated/util.dart
diff --git a/pkg/analysis_services/lib/src/generated/util.dart b/pkg/analysis_services/lib/src/generated/util.dart
index 49c5394d5415b6d48fc0bbbe0f2134a309f22977..fdfb01bf22d2ef7318a3fdf39c7333b189ad952f 100644
--- a/pkg/analysis_services/lib/src/generated/util.dart
+++ b/pkg/analysis_services/lib/src/generated/util.dart
@@ -1256,7 +1256,7 @@ class CorrectionUtils {
*/
int getLineNext(int index) {
int length = _buffer.length;
- // skip whitespace characters
+ // skip to the end of the line
while (index < length) {
int c = _buffer.codeUnitAt(index);
if (c == 0xD || c == 0xA) {
@@ -1444,7 +1444,7 @@ class CorrectionUtils {
if (expression == null) {
return null;
}
- DartType type = expression.staticType;
+ DartType type = expression.bestType;
String typeSource = getTypeSource2(type);
if ("dynamic" == typeSource) {
return null;
« no previous file with comments | « pkg/analysis_services/lib/src/generated/stubs.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698