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

Unified Diff: compiler/java/com/google/dart/compiler/LibraryDeps.java

Issue 9651004: Make SourceInfo a class, rename its menthods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweak for formatting, lazily create LainesInfo Created 8 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
Index: compiler/java/com/google/dart/compiler/LibraryDeps.java
diff --git a/compiler/java/com/google/dart/compiler/LibraryDeps.java b/compiler/java/com/google/dart/compiler/LibraryDeps.java
index 38fdf10b41a93a25450edf3f07f71e2878cf8bb8..bcdf2e46aca1c26af89ef7adbbf6246b8df24f68 100644
--- a/compiler/java/com/google/dart/compiler/LibraryDeps.java
+++ b/compiler/java/com/google/dart/compiler/LibraryDeps.java
@@ -137,7 +137,7 @@ public class LibraryDeps {
public void addAllSymbol(String symbol) {
allSymbols.add(symbol);
}
-
+
/**
* Adds new hole for {@link #getHoles()}.
*/
@@ -243,7 +243,8 @@ public class LibraryDeps {
*/
public void update(DartCompilerMainContext context, DartUnit unit) {
Source source = new Source();
- String relPath = unit.getSource().getRelativePath();
+ DartSource unitSource = (DartSource) unit.getSourceInfo().getSource();
+ String relPath = unitSource.getRelativePath();
putSource(relPath, source);
// Remember dependencies.
LibraryDepsVisitor.exec(unit, source);
@@ -255,7 +256,7 @@ public class LibraryDeps {
source.addTopSymbol(name);
}
// Analyze errors and see if any of them should force recompilation.
- List<DartCompilationError> sourceErrors = context.getSourceErrors(unit.getSource());
+ List<DartCompilationError> sourceErrors = context.getSourceErrors(unitSource);
for (DartCompilationError error : sourceErrors) {
if (error.getErrorCode().needsRecompilation()) {
source.shouldRecompileOnAnyTopLevelChange = true;

Powered by Google App Engine
This is Rietveld 408576698