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

Side by Side Diff: pkg/analyzer/lib/src/string_source.dart

Issue 1831133005: Consolidate duplicate code for resloving URIs. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Sort Created 4 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analyzer.src.string_source; 5 library analyzer.src.string_source;
6 6
7 import 'package:analyzer/src/generated/engine.dart' show TimestampedData; 7 import 'package:analyzer/src/generated/engine.dart' show TimestampedData;
8 import 'package:analyzer/src/generated/source.dart'; 8 import 'package:analyzer/src/generated/source.dart';
9 9
10 /** 10 /**
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 bool operator ==(Object object) { 57 bool operator ==(Object object) {
58 return object is StringSource && 58 return object is StringSource &&
59 object._contents == _contents && 59 object._contents == _contents &&
60 object.fullName == fullName; 60 object.fullName == fullName;
61 } 61 }
62 62
63 @override 63 @override
64 bool exists() => true; 64 bool exists() => true;
65 65
66 @override 66 @override
67 Uri resolveRelativeUri(Uri relativeUri) => uri.resolveUri(relativeUri);
68
69 @override
70 String toString() => 'StringSource ($fullName)'; 67 String toString() => 'StringSource ($fullName)';
71 } 68 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698