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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java

Issue 9148026: Recompile unit with potential conflict/dependency on some top-level symbol. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase and merge Created 8 years, 11 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/ast/DartToSourceVisitor.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java b/compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java
index 60778ad42df811f5d34466bf4365fd51d2fdbd5e..f92c52519e0daf9d20d213f7a89c768927e0966b 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java
@@ -25,8 +25,6 @@ public class DartToSourceVisitor extends DartVisitor {
private List<SourceMapping> mappings = Lists.newArrayList();
private final boolean isDiet;
- private final boolean calculateHash;
-
public DartToSourceVisitor(TextOutput out) {
this(out, false);
}
@@ -34,13 +32,6 @@ public class DartToSourceVisitor extends DartVisitor {
public DartToSourceVisitor(TextOutput out, boolean isDiet) {
this.out = out;
this.isDiet = isDiet;
- this.calculateHash = false;
- }
-
- public DartToSourceVisitor(TextOutput out, boolean isDiet, boolean calculateHash) {
- this.out = out;
- this.isDiet = isDiet;
- this.calculateHash = calculateHash;
}
public void generateSourceMap(boolean generate) {
@@ -132,11 +123,6 @@ public class DartToSourceVisitor extends DartVisitor {
@Override
public boolean visit(DartClass x, DartContext ctx) {
- int start = 0;
- if (calculateHash == true) {
- start = out.getPosition();
- }
-
if (x.isInterface()) {
p("interface ");
} else {
@@ -185,9 +171,6 @@ public class DartToSourceVisitor extends DartVisitor {
outdent();
p("}");
- if (calculateHash == true) {
- x.setHash(out.toString().substring(start, out.getPosition()).hashCode());
- }
nl();
nl();
return false;
« no previous file with comments | « compiler/java/com/google/dart/compiler/ast/DartNode.java ('k') | compiler/java/com/google/dart/compiler/ast/DartUnit.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698