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

Side by Side Diff: pkg/analyzer/lib/src/generated/java_engine.dart

Issue 186153005: New analzyer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use meaningful name instead of '_' in predicate. Created 6 years, 9 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 java.engine; 1 library java.engine;
2 2
3 import 'java_core.dart'; 3 import 'java_core.dart';
4 4
5 /**
6 * A predicate is a one-argument function that returns a boolean value.
7 */
8 typedef bool Predicate<E>(E argument);
9
5 class StringUtilities { 10 class StringUtilities {
6 static const String EMPTY = ''; 11 static const String EMPTY = '';
7 static const List<String> EMPTY_ARRAY = const <String>[]; 12 static const List<String> EMPTY_ARRAY = const <String>[];
8 static String intern(String s) => s; 13 static String intern(String s) => s;
9 static bool isTagName(String s) { 14 static bool isTagName(String s) {
10 if (s == null || s.length == 0) { 15 if (s == null || s.length == 0) {
11 return false; 16 return false;
12 } 17 }
13 int sz = s.length; 18 int sz = s.length;
14 for (int i = 0; i < sz; i++) { 19 for (int i = 0; i < sz; i++) {
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 static int combineHashCodes(int first, int second) => first * 31 + second; 185 static int combineHashCodes(int first, int second) => first * 31 + second;
181 } 186 }
182 187
183 class UUID { 188 class UUID {
184 static int __nextId = 0; 189 static int __nextId = 0;
185 final String id; 190 final String id;
186 UUID(this.id); 191 UUID(this.id);
187 String toString() => id; 192 String toString() => id;
188 static UUID randomUUID() => new UUID((__nextId).toString()); 193 static UUID randomUUID() => new UUID((__nextId).toString());
189 } 194 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/java_core.dart ('k') | pkg/analyzer/lib/src/generated/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698