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

Side by Side Diff: pkg/analyzer/lib/src/generated/source.dart

Issue 1147733002: Use short names in 'Create File' Quick Fix messages. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/fix_internal.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.source; 8 library engine.source;
9 9
10 import 'dart:collection';
10 import "dart:math" as math; 11 import "dart:math" as math;
11 import 'dart:collection';
12 12
13 import 'package:analyzer/file_system/file_system.dart'; 13 import 'package:analyzer/file_system/file_system.dart';
14 import 'package:analyzer/source/package_map_resolver.dart'; 14 import 'package:analyzer/source/package_map_resolver.dart';
15 import 'package:analyzer/task/model.dart'; 15 import 'package:analyzer/task/model.dart';
16 import 'package:path/path.dart' as pathos;
16 17
17 import 'engine.dart'; 18 import 'engine.dart';
18 import 'java_core.dart'; 19 import 'java_core.dart';
19 import 'java_engine.dart'; 20 import 'java_engine.dart';
20 import 'java_io.dart' show JavaFile; 21 import 'java_io.dart' show JavaFile;
21 import 'sdk.dart' show DartSdk; 22 import 'sdk.dart' show DartSdk;
22 import 'source_io.dart' show FileBasedSource; 23 import 'source_io.dart' show FileBasedSource;
23 24
24 /** 25 /**
25 * A function that is used to visit [ContentCache] entries. 26 * A function that is used to visit [ContentCache] entries.
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 @override 347 @override
347 int get hashCode => fullName.hashCode; 348 int get hashCode => fullName.hashCode;
348 349
349 @override 350 @override
350 bool get isInSystemLibrary => false; 351 bool get isInSystemLibrary => false;
351 352
352 @override 353 @override
353 int get modificationStamp => -1; 354 int get modificationStamp => -1;
354 355
355 @override 356 @override
356 String get shortName => fullName; 357 String get shortName => pathos.basename(fullName);
357 358
358 @override 359 @override
359 bool operator ==(Object obj) { 360 bool operator ==(Object other) {
360 if (obj is NonExistingSource) { 361 if (other is NonExistingSource) {
361 NonExistingSource other = obj;
362 return other.uriKind == uriKind && other.fullName == fullName; 362 return other.uriKind == uriKind && other.fullName == fullName;
363 } 363 }
364 return false; 364 return false;
365 } 365 }
366 366
367 @override 367 @override
368 bool exists() => false; 368 bool exists() => false;
369 369
370 @override 370 @override
371 Uri resolveRelativeUri(Uri relativeUri) { 371 Uri resolveRelativeUri(Uri relativeUri) {
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 999
1000 /** 1000 /**
1001 * Return an absolute URI that represents the given source, or `null` if a val id URI cannot 1001 * Return an absolute URI that represents the given source, or `null` if a val id URI cannot
1002 * be computed. 1002 * be computed.
1003 * 1003 *
1004 * @param source the source to get URI for 1004 * @param source the source to get URI for
1005 * @return the absolute URI representing the given source 1005 * @return the absolute URI representing the given source
1006 */ 1006 */
1007 Uri restoreAbsolute(Source source) => null; 1007 Uri restoreAbsolute(Source source) => null;
1008 } 1008 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/fix_internal.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698