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

Unified Diff: pkg/analysis_server/lib/src/get_handler.dart

Issue 983183003: Convert content cache to use file paths (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | « no previous file | pkg/analyzer/lib/src/generated/source.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/get_handler.dart
diff --git a/pkg/analysis_server/lib/src/get_handler.dart b/pkg/analysis_server/lib/src/get_handler.dart
index aa4c2a2d2e7a4f79e22f607681f9c4d4bc3c950b..d4f6a7aff6ba4ddbf81d990d3fb85a4aa2afc181 100644
--- a/pkg/analysis_server/lib/src/get_handler.dart
+++ b/pkg/analysis_server/lib/src/get_handler.dart
@@ -686,8 +686,8 @@ class GetHandler {
implicitNames.sort();
_overlayContents.clear();
- context.visitContentCache((Source source, int stamp, String contents) {
- _overlayContents[source.fullName] = contents;
+ context.visitContentCache((String fullName, int stamp, String contents) {
+ _overlayContents[fullName] = contents;
});
void _writeFiles(
@@ -887,14 +887,13 @@ class GetHandler {
buffer.write('<table border="1">');
_overlayContents.clear();
ContentCache overlayState = analysisServer.overlayState;
- overlayState.accept((Source source, int stamp, String contents) {
- String fileName = source.fullName;
+ overlayState.accept((String fullName, int stamp, String contents) {
buffer.write('<tr>');
String link =
- makeLink(OVERLAY_PATH, {PATH_PARAM: fileName}, fileName);
+ makeLink(OVERLAY_PATH, {PATH_PARAM: fullName}, fullName);
DateTime time = new DateTime.fromMillisecondsSinceEpoch(stamp);
_writeRow(buffer, [link, time]);
- _overlayContents[fileName] = contents;
+ _overlayContents[fullName] = contents;
});
int count = _overlayContents.length;
buffer.write('<tr><td colspan="2">Total: $count entries.</td></tr>');
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698