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

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

Issue 10516006: Issue 3268. Support for replacing 'assert' statement with 'assert' function (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes for review comments Created 8 years, 6 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 092297d5f4965dfb76113b5fd826636807dae1b1..e506c5491af221f95eabf20ebfa3cc0588b7baed 100644
--- a/compiler/java/com/google/dart/compiler/LibraryDepsVisitor.java
+++ b/compiler/java/com/google/dart/compiler/LibraryDepsVisitor.java
@@ -57,6 +57,8 @@ public class LibraryDepsVisitor extends ASTVisitor<Void> {
// Add dependency on the computed type of identifiers.
switch (kind) {
case NONE:
+ source.addHole(node.getName());
+ break;
case DYNAMIC:
break;
default: {
« no previous file with comments | « compiler/java/com/google/dart/compiler/DartCompiler.java ('k') | compiler/java/com/google/dart/compiler/ast/ASTVisitor.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698