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

Unified Diff: pkg/analysis_server/test/abstract_context.dart

Issue 1075773002: Use file/offset/kind triplet as elements id. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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
Index: pkg/analysis_server/test/abstract_context.dart
diff --git a/pkg/analysis_server/test/abstract_context.dart b/pkg/analysis_server/test/abstract_context.dart
index 423d8d7a6eb4ddb91daf06ecec255c733577c008..bb9a85aa812fec7b3800a90f880b1addad1ad67c 100644
--- a/pkg/analysis_server/test/abstract_context.dart
+++ b/pkg/analysis_server/test/abstract_context.dart
@@ -44,9 +44,9 @@ class AbstractContextTest {
UriResolver resourceResolver;
AnalysisContext context;
- Source addSource(String path, String content) {
+ Source addSource(String path, String content, [Uri uri]) {
File file = provider.newFile(path, content);
- Source source = file.createSource();
+ Source source = file.createSource(uri);
ChangeSet changeSet = new ChangeSet();
changeSet.addedSource(source);
context.applyChanges(changeSet);

Powered by Google App Engine
This is Rietveld 408576698