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

Unified Diff: compiler/javatests/com/google/dart/compiler/CompilerTestCase.java

Issue 10581024: Issue 2382. Using a variable in a scope before its declared that shadows another variable (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/javatests/com/google/dart/compiler/CompilerTestCase.java
diff --git a/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java b/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
index a067e7e62062662343dda5bceec7159ba903b220..d47f7145978dd86f8aa2c78b8c6384da662c2d51 100644
--- a/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
+++ b/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
@@ -171,6 +171,10 @@ public abstract class CompilerTestCase extends TestCase {
compilerConfiguration = CHECK_ONLY_CONFIGURATION;
}
+ protected AnalyzeLibraryResult analyzeLibrary(String... lines) throws Exception {
+ return analyzeLibrary(getName(), makeCode(lines));
+ }
+
/**
* Simulate running {@code analyzeLibrary} the way the IDE will.
* <p>

Powered by Google App Engine
This is Rietveld 408576698