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

Unified Diff: compiler/java/com/google/dart/compiler/LibraryDepsVisitor.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/LibraryDepsVisitor.java
diff --git a/compiler/java/com/google/dart/compiler/LibraryDepsVisitor.java b/compiler/java/com/google/dart/compiler/LibraryDepsVisitor.java
index ccf39455e564395954b875df058608852000eea6..da143a640fba8cee80ec216e6384e99a60c479c4 100644
--- a/compiler/java/com/google/dart/compiler/LibraryDepsVisitor.java
+++ b/compiler/java/com/google/dart/compiler/LibraryDepsVisitor.java
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler;
@@ -136,7 +136,7 @@ public class LibraryDepsVisitor extends ASTVisitor<Void> {
private void addElementDependency(Element elem) {
DartNode node = elem.getNode();
if (node != null) {
- DartSource unitSource = (DartSource) node.getSource();
+ DartSource unitSource = (DartSource) node.getSourceInfo().getSource();
URI libUri = unitSource.getLibrary().getUri();
LibraryDeps.Dependency dep =
new LibraryDeps.Dependency(libUri, unitSource.getName(), unitSource.getLastModified());
« no previous file with comments | « compiler/java/com/google/dart/compiler/LibraryDeps.java ('k') | compiler/java/com/google/dart/compiler/ast/DartComment.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698