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

Side by Side Diff: editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart

Issue 384093002: Resolve names in combinators for PropertyInducingElements instead of PropertyAccessorElements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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.core; 1 library java.core;
2 2
3 import "dart:math" as math; 3 import "dart:math" as math;
4 4
5 final Stopwatch nanoTimeStopwatch = new Stopwatch(); 5 final Stopwatch nanoTimeStopwatch = new Stopwatch();
6 6
7 class JavaSystem { 7 class JavaSystem {
8 static int currentTimeMillis() { 8 static int currentTimeMillis() {
9 return (new DateTime.now()).millisecondsSinceEpoch; 9 return (new DateTime.now()).millisecondsSinceEpoch;
10 } 10 }
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 String toString() => name; 504 String toString() => name;
505 int compareTo(E other) => ordinal - other.ordinal; 505 int compareTo(E other) => ordinal - other.ordinal;
506 } 506 }
507 507
508 class JavaPatternMatcher { 508 class JavaPatternMatcher {
509 Iterator<Match> _matches; 509 Iterator<Match> _matches;
510 Match _match; 510 Match _match;
511 JavaPatternMatcher(RegExp re, String input) { 511 JavaPatternMatcher(RegExp re, String input) {
512 _matches = re.allMatches(input).iterator; 512 _matches = re.allMatches(input).iterator;
513 } 513 }
514 bool matches() => find();
514 bool find() { 515 bool find() {
515 if (!_matches.moveNext()) { 516 if (!_matches.moveNext()) {
516 return false; 517 return false;
517 } 518 }
518 _match = _matches.current; 519 _match = _matches.current;
519 return true; 520 return true;
520 } 521 }
521 String group(int i) => _match[i]; 522 String group(int i) => _match[i];
522 int start() => _match.start; 523 int start() => _match.start;
523 int end() => _match.end; 524 int end() => _match.end;
524 } 525 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698