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

Unified Diff: editor/util/plugins/com.google.dart.java2dart/resources/test_support_include.dart

Issue 243263004: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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
Index: editor/util/plugins/com.google.dart.java2dart/resources/test_support_include.dart
diff --git a/editor/util/plugins/com.google.dart.java2dart/resources/test_support_include.dart b/editor/util/plugins/com.google.dart.java2dart/resources/test_support_include.dart
index 92adff79591670ef8f2aeba925e8745f3ca2db2b..446273fa7135120d2980b25889e56caf7d7b7aa2 100644
--- a/editor/util/plugins/com.google.dart.java2dart/resources/test_support_include.dart
+++ b/editor/util/plugins/com.google.dart.java2dart/resources/test_support_include.dart
@@ -1,6 +1,8 @@
class TestSource implements Source {
+ String _name;
+ TestSource([this._name = '/test.dart']);
int get hashCode => 0;
bool operator ==(Object object) {
return object is TestSource;
@@ -12,10 +14,10 @@ class TestSource implements Source {
throw new UnsupportedOperationException();
}
String get fullName {
- throw new UnsupportedOperationException();
+ return _name;
}
String get shortName {
- throw new UnsupportedOperationException();
+ return _name;
}
String get encoding {
throw new UnsupportedOperationException();

Powered by Google App Engine
This is Rietveld 408576698