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

Unified Diff: pkg/analyzer/lib/src/generated/source.dart

Issue 192363003: Translate Java's @Override into Dart's @override. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/sdk_io.dart ('k') | pkg/analyzer/lib/src/generated/source_io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/source.dart
diff --git a/pkg/analyzer/lib/src/generated/source.dart b/pkg/analyzer/lib/src/generated/source.dart
index 30d09f58af54812067feb4cf2314f2fcce6778e2..288677b0cc0e23c199b85fe373f2031b5c94f831 100644
--- a/pkg/analyzer/lib/src/generated/source.dart
+++ b/pkg/analyzer/lib/src/generated/source.dart
@@ -42,14 +42,17 @@ abstract class LocalSourcePredicate {
}
class LocalSourcePredicate_FALSE implements LocalSourcePredicate {
+ @override
bool isLocal(Source source) => false;
}
class LocalSourcePredicate_TRUE implements LocalSourcePredicate {
+ @override
bool isLocal(Source source) => true;
}
class LocalSourcePredicate_NOT_SDK implements LocalSourcePredicate {
+ @override
bool isLocal(Source source) => source.uriKind != UriKind.DART_URI;
}
@@ -283,6 +286,7 @@ abstract class Source {
* this source
* @see Object#equals(Object)
*/
+ @override
bool operator ==(Object object);
/**
@@ -365,6 +369,7 @@ abstract class Source {
* @return a hash code for this source
* @see Object#hashCode()
*/
+ @override
int get hashCode;
/**
@@ -558,6 +563,7 @@ class SourceRange {
return otherRange.contains(thisEnd);
}
+ @override
bool operator ==(Object obj) {
if (obj is! SourceRange) {
return false;
@@ -587,6 +593,7 @@ class SourceRange {
*/
SourceRange getTranslated(int delta) => new SourceRange(offset + delta, length);
+ @override
int get hashCode => 31 * offset + length;
/**
@@ -610,6 +617,7 @@ class SourceRange {
*/
bool startsIn(SourceRange otherRange) => otherRange.contains(offset);
+ @override
String toString() {
JavaStringBuilder builder = new JavaStringBuilder();
builder.append("[offset=");
@@ -671,6 +679,7 @@ class DartUriResolver extends UriResolver {
this._sdk = sdk;
}
+ @override
Source fromEncoding(UriKind kind, Uri uri) {
if (identical(kind, UriKind.DART_URI)) {
return _sdk.fromEncoding(kind, uri);
@@ -685,6 +694,7 @@ class DartUriResolver extends UriResolver {
*/
DartSdk get dartSdk => _sdk;
+ @override
Source resolveAbsolute(Uri uri) {
if (!isDartUri(uri)) {
return null;
« no previous file with comments | « pkg/analyzer/lib/src/generated/sdk_io.dart ('k') | pkg/analyzer/lib/src/generated/source_io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698