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

Side by Side Diff: pkg/analysis_server/lib/src/services/correction/levenshtein.dart

Issue 484733003: Import analysis_services.dart into analysis_server.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 library levenshtein; 1 library levenshtein;
2 2
3 import 'dart:math' as math; 3 import 'dart:math' as math;
4 4
5 /** 5 /**
6 * The value returned by [levenshtein] if the distance is determined 6 * The value returned by [levenshtein] if the distance is determined
7 * to be over the specified threshold. 7 * to be over the specified threshold.
8 */ 8 */
9 const int LEVENSHTEIN_MAX = 1 << 20; 9 const int LEVENSHTEIN_MAX = 1 << 20;
10 10
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 } 122 }
123 123
124 return LEVENSHTEIN_MAX; 124 return LEVENSHTEIN_MAX;
125 } 125 }
126 126
127 void _setRange(List<int> a, int start, int end, int value) { 127 void _setRange(List<int> a, int start, int end, int value) {
128 for (int i = start; i < end; i++) { 128 for (int i = start; i < end; i++) {
129 a[i] = value; 129 a[i] = value;
130 } 130 }
131 } 131 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698