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

Unified Diff: pkg/analyzer/test/generated/test_support.dart

Issue 1322513004: Reformat code to reduce churn (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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/analyzer/lib/task/model.dart ('k') | pkg/analyzer/test/instrumentation/instrumentation_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/test_support.dart
diff --git a/pkg/analyzer/test/generated/test_support.dart b/pkg/analyzer/test/generated/test_support.dart
index 6c1b066f4cc47a61c55fd6779606f37258a9131f..20cc0e2633937cf63bf8b7beb51ac0a9090b6df7 100644
--- a/pkg/analyzer/test/generated/test_support.dart
+++ b/pkg/analyzer/test/generated/test_support.dart
@@ -558,7 +558,8 @@ class TestSource extends Source {
bool generateExceptionOnRead = false;
@override
- int get modificationStamp => generateExceptionOnRead ? -1 : _modificationStamp;
+ int get modificationStamp =>
+ generateExceptionOnRead ? -1 : _modificationStamp;
/**
* The number of times that the contents of this source have been requested.
@@ -575,46 +576,58 @@ class TestSource extends Source {
}
return new TimestampedData<String>(0, _contents);
}
+
String get encoding {
throw new UnsupportedOperationException();
}
+
String get fullName {
return _name;
}
+
int get hashCode => 0;
bool get isInSystemLibrary {
return false;
}
+
String get shortName {
return _name;
}
+
Uri get uri {
throw new UnsupportedOperationException();
}
+
UriKind get uriKind {
throw new UnsupportedOperationException();
}
+
bool operator ==(Object other) {
if (other is TestSource) {
return other._name == _name;
}
return false;
}
+
bool exists() => exists2;
void getContentsToReceiver(Source_ContentReceiver receiver) {
throw new UnsupportedOperationException();
}
+
Source resolve(String uri) {
throw new UnsupportedOperationException();
}
+
Uri resolveRelativeUri(Uri uri) {
return new Uri(scheme: 'file', path: _name).resolveUri(uri);
}
+
void setContents(String value) {
generateExceptionOnRead = false;
_modificationStamp = new DateTime.now().millisecondsSinceEpoch;
_contents = value;
}
+
@override
String toString() => '$_name';
}
« no previous file with comments | « pkg/analyzer/lib/task/model.dart ('k') | pkg/analyzer/test/instrumentation/instrumentation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698